crudjt 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +15 -0
- package/.github/workflows/build.yml +42 -0
- package/CHANGELOG.md +12 -0
- package/Cache.js +82 -0
- package/Cargo.lock +176 -0
- package/Cargo.toml +16 -0
- package/LICENSE.txt +21 -0
- package/README.md +215 -0
- package/cargo.log +30 -0
- package/crudjt-1.0.0-beta.0.tgz +0 -0
- package/errors/internal_error.js +12 -0
- package/errors/invalid_state.js +12 -0
- package/errors.js +13 -0
- package/index.js +440 -0
- package/index.node +0 -0
- package/logos/buy_me_a_coffee_orange.svg +1 -0
- package/logos/crud_jt_logo.png +0 -0
- package/logos/crud_jt_logo_black.png +0 -0
- package/logos/crud_jt_logo_favicon_black.png +0 -0
- package/logos/crud_jt_logo_favicon_black_160.png +0 -0
- package/logos/crud_jt_logo_favicon_white.png +0 -0
- package/logos/crud_jt_logo_favicon_white_160.png +0 -0
- package/logos/crudjt_favicon_160x160_dark_on_white.svg +18 -0
- package/logos/crudjt_favicon_160x160_white.png +0 -0
- package/logos/crudjt_favicon_160x160_white_on_dark.svg +18 -0
- package/logos/crudjt_favicon_white_on_dark.png +0 -0
- package/logos/crudjt_logo_dark.png +0 -0
- package/logos/crudjt_logo_dark_on_white.svg +19 -0
- package/logos/crudjt_logo_white_on_dark.svg +26 -0
- package/native/linux/store_jt_arm64.so +0 -0
- package/native/linux/store_jt_x86_64.so +0 -0
- package/native/macos/store_jt_arm64.dylib +0 -0
- package/native/macos/store_jt_x86_64.dylib +0 -0
- package/native/windows/store_jt_arm64.dll +0 -0
- package/native/windows/store_jt_x86_64.dll +0 -0
- package/package/.github/workflows/build.yml +43 -0
- package/package/Cache.js +78 -0
- package/package/Cargo.lock +217 -0
- package/package/Cargo.toml +16 -0
- package/package/README.md +90 -0
- package/package/Validation.js +26 -0
- package/package/cargo.log +24 -0
- package/package/index.js +197 -0
- package/package/index.node +0 -0
- package/package/native/linux/store_jt_arm64.so +0 -0
- package/package/native/linux/store_jt_x86_64.so +0 -0
- package/package/native/macos/store_jt_arm64.dylib +0 -0
- package/package/native/macos/store_jt_x86_64.dylib +0 -0
- package/package/native/windows/store_jt_arm64.dll +0 -0
- package/package/native/windows/store_jt_x86_64.dll +0 -0
- package/package/package.json +26 -0
- package/package/src/lib.rs +190 -0
- package/package/test-neon-package/package-lock.json +942 -0
- package/package/test-neon-package/package.json +15 -0
- package/package/test-neon-package/test.js +178 -0
- package/package/test.js +202 -0
- package/package.json +41 -0
- package/src/lib.rs +288 -0
- package/test-neon-package/package-lock.json +1135 -0
- package/test-neon-package/package.json +15 -0
- package/test-neon-package/test.js +198 -0
- package/token_service.proto +47 -0
- package/token_service_client.js +33 -0
- package/validation.js +72 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 241.53 47.66">
|
|
3
|
+
<rect x="0" y="0" width="100%" height="100%" fill="#fff"/>
|
|
4
|
+
<g transform="scale(0.8, 0.8) translate(30,5)">
|
|
5
|
+
<path class="cls-1" d="M25.64,19.45c-.63-1.05-.97-2.27-.97-3.56h-1.68c0,1.29-.34,2.51-.97,3.56-.62,1.07-1.49,1.95-2.56,2.57-1.04.62-2.27.97-3.58.97v1.68c1.3,0,2.53.36,3.58.96,1.07.63,1.94,1.5,2.56,2.57.63,1.05.97,2.27.97,3.58h1.68c0-1.3.34-2.52.97-3.58.62-1.07,1.49-1.94,2.56-2.57,1.04-.6,2.27-.96,3.58-.96v-1.68c-1.3,0-2.53-.36-3.58-.97-1.07-.62-1.94-1.5-2.56-2.57Z"/>
|
|
6
|
+
<path class="cls-1" d="M.47,15.89h5.01c.26,0,.47-.21.47-.47V5.95h9.45c.26,0,.47-.21.47-.47V.47c0-.26-.21-.47-.47-.47h0C6.9,0,0,6.9,0,15.41h0c0,.26.21.47.47.47Z"/>
|
|
7
|
+
<path class="cls-1" d="M32.24,0h0c-.26,0-.47.21-.47.47v5c0,.26.21.47.47.47h9.45v9.46c0,.26.21.47.47.47h5.01c.26,0,.47-.21.47-.47h0c0-8.51-6.9-15.41-15.41-15.41Z"/>
|
|
8
|
+
<path class="cls-1" d="M15.41,41.71H5.96v-9.46c0-.26-.21-.47-.47-.47H.47c-.26,0-.47.21-.47.47h0c0,8.51,6.9,15.41,15.41,15.41h0c.26,0,.47-.21.47-.47v-5c0-.26-.21-.47-.47-.47Z"/>
|
|
9
|
+
<path class="cls-1" d="M47.18,31.77h-5.01c-.26,0-.47.21-.47.47v9.46h-9.45c-.26,0-.47.21-.47.47v5c0,.26.21.47.47.47h0c8.51,0,15.41-6.9,15.41-15.41h0c0-.26-.21-.47-.47-.47Z"/>
|
|
10
|
+
</g>
|
|
11
|
+
<g transform="scale(0.8, 0.8) translate(30,5)">
|
|
12
|
+
<path class="cls-1" d="M74.56,32.52c-2.2-1.97-3.29-4.78-3.29-8.43s1.1-6.58,3.29-8.71c2.2-2.13,5.61-3.2,10.25-3.2,6.48,0,10.82,2.23,13.02,6.68-1.85.64-4.01,1.59-6.49,2.86-.6-1.15-1.53-2-2.82-2.55-1.28-.55-2.59-.83-3.92-.83-1.97,0-3.44.52-4.4,1.55-.96,1.04-1.45,2.31-1.45,3.83,0,1.64.52,2.98,1.55,4.02,1.04,1.04,2.62,1.55,4.75,1.55,1.7,0,3.06-.28,4.06-.85,1-.56,1.74-1.46,2.22-2.69,1.68.9,3.84,1.92,6.46,3.05-1.03,2.48-2.74,4.22-5.14,5.2-2.4.98-5.02,1.48-7.85,1.48-4.64,0-8.05-.98-10.25-2.95Z"/>
|
|
13
|
+
<path class="cls-1" d="M124.93,24.8c-.87,1.23-2.37,2.12-4.48,2.68.25.33.42.58.52.77l4.99,6.93h-8.37c-.9-1.68-2.33-4.06-4.28-7.14h-4.52v7.14h-7.26c.16-3.98.25-7.7.25-11.17s-.08-7.19-.25-11.17h7.26v.03h6.31c4.14,0,7.04.67,8.68,2,1.64,1.33,2.46,3.14,2.46,5.42,0,1.78-.44,3.29-1.31,4.52ZM108.79,18.77v3.51h4.16c1.74,0,3.06-.06,3.95-.17.89-.11,1.51-.29,1.86-.54.35-.25.52-.6.52-1.08s-.16-.8-.49-1.05-.94-.42-1.85-.52c-.9-.1-2.24-.15-4-.15h-4.16Z"/>
|
|
14
|
+
<path class="cls-1" d="M148.15,12.79h7.63v12.25c-.04,3.02-1.07,5.51-3.09,7.48s-5.42,2.95-10.2,2.95-8.16-.94-9.94-2.82c-1.78-1.88-2.66-4.34-2.62-7.4v-12.47h7.63v11.97c0,.9.07,1.64.2,2.2.13.56.56,1.09,1.29,1.59s1.9.74,3.52.74c1.76,0,3.06-.25,3.88-.75.82-.5,1.31-1.06,1.46-1.68.15-.62.23-1.41.23-2.37v-11.7Z"/>
|
|
15
|
+
<path class="cls-1" d="M178.47,13.89c2.24.93,3.8,2.23,4.69,3.88.89,1.65,1.34,3.68,1.34,6.08,0,2.28-.51,4.27-1.54,5.97-1.03,1.7-2.57,3.02-4.62,3.95-2.05.93-4.58,1.4-7.57,1.4h-5.57c-1.89,0-3.8,0-5.72-.03.16-4.04.25-7.81.25-11.3s-.08-7.21-.25-11.05c2.44-.21,5.72-.31,9.85-.31,3.86,0,6.91.47,9.14,1.4ZM171.64,29.05c1.91,0,3.18-.46,3.82-1.39.64-.92.95-2.2.95-3.82s-.33-2.82-1-3.79c-.67-.96-1.92-1.45-3.77-1.45-1.99,0-3.48.06-4.46.18v10.25h4.46Z"/>
|
|
16
|
+
<path class="cls-1" d="M211.39,12.79v10.86c0,3.84-.99,6.77-2.97,8.79-1.98,2.02-5.11,3.03-9.4,3.03-2.46,0-4.74-.36-6.82-1.08-2.08-.72-3.94-1.65-5.56-2.8.39-1.27.71-2.49.95-3.66.25-1.17.43-2.45.55-3.85,2.11,1.7,4.06,2.88,5.85,3.54,1.78.66,3.49.98,5.11.98s2.88-.38,3.6-1.14c.72-.76,1.09-2.06,1.11-3.91v-2.34c0-3.32-.09-6.14-.28-8.43h7.85Z"/>
|
|
17
|
+
<path class="cls-1" d="M241.53,19.29c-3.22-.1-6.35-.16-9.39-.18v16.07h-7.69v-16.07c-3.06.02-6.18.08-9.36.18v-6.46h26.44v6.46Z"/>
|
|
18
|
+
</g>
|
|
19
|
+
</svg>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 241.53 47.66">
|
|
3
|
+
<defs>
|
|
4
|
+
<style>
|
|
5
|
+
.cls-1 {
|
|
6
|
+
fill: #fff;
|
|
7
|
+
}
|
|
8
|
+
</style>
|
|
9
|
+
</defs>
|
|
10
|
+
<rect x="0" y="0" width="100%" height="100%" fill="#0D1117"/>
|
|
11
|
+
<g transform="scale(0.8, 0.8) translate(30,5)">
|
|
12
|
+
<path class="cls-1" d="M25.64,19.45c-.63-1.05-.97-2.27-.97-3.56h-1.68c0,1.29-.34,2.51-.97,3.56-.62,1.07-1.49,1.95-2.56,2.57-1.04.62-2.27.97-3.58.97v1.68c1.3,0,2.53.36,3.58.96,1.07.63,1.94,1.5,2.56,2.57.63,1.05.97,2.27.97,3.58h1.68c0-1.3.34-2.52.97-3.58.62-1.07,1.49-1.94,2.56-2.57,1.04-.6,2.27-.96,3.58-.96v-1.68c-1.3,0-2.53-.36-3.58-.97-1.07-.62-1.94-1.5-2.56-2.57Z"/>
|
|
13
|
+
<path class="cls-1" d="M.47,15.89h5.01c.26,0,.47-.21.47-.47V5.95h9.45c.26,0,.47-.21.47-.47V.47c0-.26-.21-.47-.47-.47h0C6.9,0,0,6.9,0,15.41h0c0,.26.21.47.47.47Z"/>
|
|
14
|
+
<path class="cls-1" d="M32.24,0h0c-.26,0-.47.21-.47.47v5c0,.26.21.47.47.47h9.45v9.46c0,.26.21.47.47.47h5.01c.26,0,.47-.21.47-.47h0c0-8.51-6.9-15.41-15.41-15.41Z"/>
|
|
15
|
+
<path class="cls-1" d="M15.41,41.71H5.96v-9.46c0-.26-.21-.47-.47-.47H.47c-.26,0-.47.21-.47.47h0c0,8.51,6.9,15.41,15.41,15.41h0c.26,0,.47-.21.47-.47v-5c0-.26-.21-.47-.47-.47Z"/>
|
|
16
|
+
<path class="cls-1" d="M47.18,31.77h-5.01c-.26,0-.47.21-.47.47v9.46h-9.45c-.26,0-.47.21-.47.47v5c0,.26.21.47.47.47h0c8.51,0,15.41-6.9,15.41-15.41h0c0-.26-.21-.47-.47-.47Z"/>
|
|
17
|
+
</g>
|
|
18
|
+
<g transform="scale(0.8, 0.8) translate(30,5)">
|
|
19
|
+
<path class="cls-1" d="M74.56,32.52c-2.2-1.97-3.29-4.78-3.29-8.43s1.1-6.58,3.29-8.71c2.2-2.13,5.61-3.2,10.25-3.2,6.48,0,10.82,2.23,13.02,6.68-1.85.64-4.01,1.59-6.49,2.86-.6-1.15-1.53-2-2.82-2.55-1.28-.55-2.59-.83-3.92-.83-1.97,0-3.44.52-4.4,1.55-.96,1.04-1.45,2.31-1.45,3.83,0,1.64.52,2.98,1.55,4.02,1.04,1.04,2.62,1.55,4.75,1.55,1.7,0,3.06-.28,4.06-.85,1-.56,1.74-1.46,2.22-2.69,1.68.9,3.84,1.92,6.46,3.05-1.03,2.48-2.74,4.22-5.14,5.2-2.4.98-5.02,1.48-7.85,1.48-4.64,0-8.05-.98-10.25-2.95Z"/>
|
|
20
|
+
<path class="cls-1" d="M124.93,24.8c-.87,1.23-2.37,2.12-4.48,2.68.25.33.42.58.52.77l4.99,6.93h-8.37c-.9-1.68-2.33-4.06-4.28-7.14h-4.52v7.14h-7.26c.16-3.98.25-7.7.25-11.17s-.08-7.19-.25-11.17h7.26v.03h6.31c4.14,0,7.04.67,8.68,2,1.64,1.33,2.46,3.14,2.46,5.42,0,1.78-.44,3.29-1.31,4.52ZM108.79,18.77v3.51h4.16c1.74,0,3.06-.06,3.95-.17.89-.11,1.51-.29,1.86-.54.35-.25.52-.6.52-1.08s-.16-.8-.49-1.05-.94-.42-1.85-.52c-.9-.1-2.24-.15-4-.15h-4.16Z"/>
|
|
21
|
+
<path class="cls-1" d="M148.15,12.79h7.63v12.25c-.04,3.02-1.07,5.51-3.09,7.48s-5.42,2.95-10.2,2.95-8.16-.94-9.94-2.82c-1.78-1.88-2.66-4.34-2.62-7.4v-12.47h7.63v11.97c0,.9.07,1.64.2,2.2.13.56.56,1.09,1.29,1.59s1.9.74,3.52.74c1.76,0,3.06-.25,3.88-.75.82-.5,1.31-1.06,1.46-1.68.15-.62.23-1.41.23-2.37v-11.7Z"/>
|
|
22
|
+
<path class="cls-1" d="M178.47,13.89c2.24.93,3.8,2.23,4.69,3.88.89,1.65,1.34,3.68,1.34,6.08,0,2.28-.51,4.27-1.54,5.97-1.03,1.7-2.57,3.02-4.62,3.95-2.05.93-4.58,1.4-7.57,1.4h-5.57c-1.89,0-3.8,0-5.72-.03.16-4.04.25-7.81.25-11.3s-.08-7.21-.25-11.05c2.44-.21,5.72-.31,9.85-.31,3.86,0,6.91.47,9.14,1.4ZM171.64,29.05c1.91,0,3.18-.46,3.82-1.39.64-.92.95-2.2.95-3.82s-.33-2.82-1-3.79c-.67-.96-1.92-1.45-3.77-1.45-1.99,0-3.48.06-4.46.18v10.25h4.46Z"/>
|
|
23
|
+
<path class="cls-1" d="M211.39,12.79v10.86c0,3.84-.99,6.77-2.97,8.79-1.98,2.02-5.11,3.03-9.4,3.03-2.46,0-4.74-.36-6.82-1.08-2.08-.72-3.94-1.65-5.56-2.8.39-1.27.71-2.49.95-3.66.25-1.17.43-2.45.55-3.85,2.11,1.7,4.06,2.88,5.85,3.54,1.78.66,3.49.98,5.11.98s2.88-.38,3.6-1.14c.72-.76,1.09-2.06,1.11-3.91v-2.34c0-3.32-.09-6.14-.28-8.43h7.85Z"/>
|
|
24
|
+
<path class="cls-1" d="M241.53,19.29c-3.22-.1-6.35-.16-9.39-.18v16.07h-7.69v-16.07c-3.06.02-6.18.08-9.36.18v-6.46h26.44v6.46Z"/>
|
|
25
|
+
</g>
|
|
26
|
+
</svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
name: Build and Test Node.js Library
|
|
2
|
+
|
|
3
|
+
on: [push, pull_request]
|
|
4
|
+
|
|
5
|
+
jobs:
|
|
6
|
+
build-and-test:
|
|
7
|
+
strategy:
|
|
8
|
+
matrix:
|
|
9
|
+
include:
|
|
10
|
+
- os: ubuntu-latest
|
|
11
|
+
arch: x86_64
|
|
12
|
+
- os: macos-latest
|
|
13
|
+
arch: aarch64
|
|
14
|
+
- os: windows-latest
|
|
15
|
+
arch: x86_64
|
|
16
|
+
|
|
17
|
+
runs-on: ${{ matrix.os }}
|
|
18
|
+
|
|
19
|
+
steps:
|
|
20
|
+
# Крок для отримання коду з репозиторію
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
# Налаштування Node.js
|
|
24
|
+
- name: Set up Node.js
|
|
25
|
+
uses: actions/setup-node@v3
|
|
26
|
+
with:
|
|
27
|
+
node-version: '20'
|
|
28
|
+
|
|
29
|
+
# Встановлення залежностей
|
|
30
|
+
- name: Install dependencies
|
|
31
|
+
run: |
|
|
32
|
+
npm install
|
|
33
|
+
npm run cargo-build -- --release
|
|
34
|
+
|
|
35
|
+
- name: Create package 'crud_jt'
|
|
36
|
+
run: npm pack
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
- name: Run Node.js test
|
|
40
|
+
working-directory: ./test-neon-package
|
|
41
|
+
run: |
|
|
42
|
+
npm install ../crud_jt-0.1.0.tgz
|
|
43
|
+
node test.js
|
package/package/Cache.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
const { LRUCache } = require('lru-cache')
|
|
2
|
+
const CACHE_CAPACITY = 40_000;
|
|
3
|
+
|
|
4
|
+
class Cache {
|
|
5
|
+
constructor(readFunc) {
|
|
6
|
+
this.cache = new LRUCache({
|
|
7
|
+
max: CACHE_CAPACITY,
|
|
8
|
+
updateAgeOnGet: true,
|
|
9
|
+
});
|
|
10
|
+
this.readFunc = readFunc;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
get(token) {
|
|
14
|
+
let cachedValue = this.cache.get(token);
|
|
15
|
+
|
|
16
|
+
if (cachedValue) {
|
|
17
|
+
this.cache.set(token, cachedValue);
|
|
18
|
+
|
|
19
|
+
const output = {};
|
|
20
|
+
const metadata = cachedValue['metadata'] || {};
|
|
21
|
+
|
|
22
|
+
if (metadata['ttl']) {
|
|
23
|
+
const ttl = Math.ceil((new Date(metadata['ttl']).getTime() - Date.now()) / 1000);
|
|
24
|
+
if (ttl <= 0) {
|
|
25
|
+
this.cache.delete(token);
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
output['metadata'] = { ttl };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
let silence_read = undefined;
|
|
32
|
+
if (cachedValue['metadata']) {
|
|
33
|
+
if (cachedValue['metadata']['silence_read']) {
|
|
34
|
+
silence_read = cachedValue['metadata']['silence_read'];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
if (silence_read) {
|
|
39
|
+
silence_read = (cachedValue['metadata']['silence_read'] -= 1)
|
|
40
|
+
output['metadata'] ||= {};
|
|
41
|
+
output['metadata']['silence_read'] = silence_read;
|
|
42
|
+
|
|
43
|
+
if (silence_read <= 0) {
|
|
44
|
+
this.cache.delete(token);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
this.readFunc(token);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
output['data'] = cachedValue['data'];
|
|
51
|
+
return output;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
insert(key, token, ttl, silence_read) {
|
|
56
|
+
const hash = { data: token, metadata: {} };
|
|
57
|
+
|
|
58
|
+
if (ttl > 0) {
|
|
59
|
+
hash['metadata']['ttl'] = new Date(Date.now() + ttl * 1000).toISOString();
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
if (silence_read > 0) {
|
|
63
|
+
hash['metadata']['silence_read'] = silence_read;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
this.cache.set(key, hash);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
forceInsert(token, hash) {
|
|
70
|
+
this.cache.set(token, hash);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
delete(token) {
|
|
74
|
+
this.cache.delete(token);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
module.exports = Cache;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "cfg-if"
|
|
7
|
+
version = "1.0.0"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "crud_jt"
|
|
13
|
+
version = "0.1.0"
|
|
14
|
+
dependencies = [
|
|
15
|
+
"lazy_static",
|
|
16
|
+
"libloading",
|
|
17
|
+
"neon",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "getrandom"
|
|
22
|
+
version = "0.2.15"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
|
|
25
|
+
dependencies = [
|
|
26
|
+
"cfg-if",
|
|
27
|
+
"libc",
|
|
28
|
+
"wasi",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[[package]]
|
|
32
|
+
name = "lazy_static"
|
|
33
|
+
version = "1.5.0"
|
|
34
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
35
|
+
checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
|
|
36
|
+
|
|
37
|
+
[[package]]
|
|
38
|
+
name = "libc"
|
|
39
|
+
version = "0.2.164"
|
|
40
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
41
|
+
checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f"
|
|
42
|
+
|
|
43
|
+
[[package]]
|
|
44
|
+
name = "libloading"
|
|
45
|
+
version = "0.8.5"
|
|
46
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
47
|
+
checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4"
|
|
48
|
+
dependencies = [
|
|
49
|
+
"cfg-if",
|
|
50
|
+
"windows-targets",
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
[[package]]
|
|
54
|
+
name = "neon"
|
|
55
|
+
version = "1.0.0"
|
|
56
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
57
|
+
checksum = "7d75440242411c87dc39847b0e33e961ec1f10326a9d8ecf9c1ea64a3b3c13dc"
|
|
58
|
+
dependencies = [
|
|
59
|
+
"getrandom",
|
|
60
|
+
"libloading",
|
|
61
|
+
"neon-macros",
|
|
62
|
+
"once_cell",
|
|
63
|
+
"semver",
|
|
64
|
+
"send_wrapper",
|
|
65
|
+
"smallvec",
|
|
66
|
+
]
|
|
67
|
+
|
|
68
|
+
[[package]]
|
|
69
|
+
name = "neon-macros"
|
|
70
|
+
version = "1.0.0"
|
|
71
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
72
|
+
checksum = "c6813fde79b646e47e7ad75f480aa80ef76a5d9599e2717407961531169ee38b"
|
|
73
|
+
dependencies = [
|
|
74
|
+
"quote",
|
|
75
|
+
"syn",
|
|
76
|
+
"syn-mid",
|
|
77
|
+
]
|
|
78
|
+
|
|
79
|
+
[[package]]
|
|
80
|
+
name = "once_cell"
|
|
81
|
+
version = "1.20.2"
|
|
82
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
83
|
+
checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
|
|
84
|
+
|
|
85
|
+
[[package]]
|
|
86
|
+
name = "proc-macro2"
|
|
87
|
+
version = "1.0.91"
|
|
88
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
89
|
+
checksum = "307e3004becf10f5a6e0d59d20f3cd28231b0e0827a96cd3e0ce6d14bc1e4bb3"
|
|
90
|
+
dependencies = [
|
|
91
|
+
"unicode-ident",
|
|
92
|
+
]
|
|
93
|
+
|
|
94
|
+
[[package]]
|
|
95
|
+
name = "quote"
|
|
96
|
+
version = "1.0.37"
|
|
97
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
98
|
+
checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
|
|
99
|
+
dependencies = [
|
|
100
|
+
"proc-macro2",
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
[[package]]
|
|
104
|
+
name = "semver"
|
|
105
|
+
version = "1.0.23"
|
|
106
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
107
|
+
checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b"
|
|
108
|
+
|
|
109
|
+
[[package]]
|
|
110
|
+
name = "send_wrapper"
|
|
111
|
+
version = "0.6.0"
|
|
112
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
113
|
+
checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73"
|
|
114
|
+
|
|
115
|
+
[[package]]
|
|
116
|
+
name = "smallvec"
|
|
117
|
+
version = "1.13.2"
|
|
118
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
119
|
+
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
|
|
120
|
+
|
|
121
|
+
[[package]]
|
|
122
|
+
name = "syn"
|
|
123
|
+
version = "2.0.89"
|
|
124
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
125
|
+
checksum = "44d46482f1c1c87acd84dea20c1bf5ebff4c757009ed6bf19cfd36fb10e92c4e"
|
|
126
|
+
dependencies = [
|
|
127
|
+
"proc-macro2",
|
|
128
|
+
"quote",
|
|
129
|
+
"unicode-ident",
|
|
130
|
+
]
|
|
131
|
+
|
|
132
|
+
[[package]]
|
|
133
|
+
name = "syn-mid"
|
|
134
|
+
version = "0.6.0"
|
|
135
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
136
|
+
checksum = "b5dc35bb08dd1ca3dfb09dce91fd2d13294d6711c88897d9a9d60acf39bce049"
|
|
137
|
+
dependencies = [
|
|
138
|
+
"proc-macro2",
|
|
139
|
+
"quote",
|
|
140
|
+
"syn",
|
|
141
|
+
]
|
|
142
|
+
|
|
143
|
+
[[package]]
|
|
144
|
+
name = "unicode-ident"
|
|
145
|
+
version = "1.0.14"
|
|
146
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
+
checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83"
|
|
148
|
+
|
|
149
|
+
[[package]]
|
|
150
|
+
name = "wasi"
|
|
151
|
+
version = "0.11.0+wasi-snapshot-preview1"
|
|
152
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
153
|
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
|
154
|
+
|
|
155
|
+
[[package]]
|
|
156
|
+
name = "windows-targets"
|
|
157
|
+
version = "0.52.6"
|
|
158
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
159
|
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
|
160
|
+
dependencies = [
|
|
161
|
+
"windows_aarch64_gnullvm",
|
|
162
|
+
"windows_aarch64_msvc",
|
|
163
|
+
"windows_i686_gnu",
|
|
164
|
+
"windows_i686_gnullvm",
|
|
165
|
+
"windows_i686_msvc",
|
|
166
|
+
"windows_x86_64_gnu",
|
|
167
|
+
"windows_x86_64_gnullvm",
|
|
168
|
+
"windows_x86_64_msvc",
|
|
169
|
+
]
|
|
170
|
+
|
|
171
|
+
[[package]]
|
|
172
|
+
name = "windows_aarch64_gnullvm"
|
|
173
|
+
version = "0.52.6"
|
|
174
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
175
|
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
|
176
|
+
|
|
177
|
+
[[package]]
|
|
178
|
+
name = "windows_aarch64_msvc"
|
|
179
|
+
version = "0.52.6"
|
|
180
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
|
182
|
+
|
|
183
|
+
[[package]]
|
|
184
|
+
name = "windows_i686_gnu"
|
|
185
|
+
version = "0.52.6"
|
|
186
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
187
|
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
|
188
|
+
|
|
189
|
+
[[package]]
|
|
190
|
+
name = "windows_i686_gnullvm"
|
|
191
|
+
version = "0.52.6"
|
|
192
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
193
|
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
|
194
|
+
|
|
195
|
+
[[package]]
|
|
196
|
+
name = "windows_i686_msvc"
|
|
197
|
+
version = "0.52.6"
|
|
198
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
199
|
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
|
200
|
+
|
|
201
|
+
[[package]]
|
|
202
|
+
name = "windows_x86_64_gnu"
|
|
203
|
+
version = "0.52.6"
|
|
204
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
205
|
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
|
206
|
+
|
|
207
|
+
[[package]]
|
|
208
|
+
name = "windows_x86_64_gnullvm"
|
|
209
|
+
version = "0.52.6"
|
|
210
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
211
|
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
|
212
|
+
|
|
213
|
+
[[package]]
|
|
214
|
+
name = "windows_x86_64_msvc"
|
|
215
|
+
version = "0.52.6"
|
|
216
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
217
|
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "crud_jt"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
license = "MIT"
|
|
5
|
+
edition = "2021"
|
|
6
|
+
exclude = ["index.node"]
|
|
7
|
+
|
|
8
|
+
[lib]
|
|
9
|
+
crate-type = ["cdylib"]
|
|
10
|
+
|
|
11
|
+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
12
|
+
|
|
13
|
+
[dependencies]
|
|
14
|
+
lazy_static = "1.5.0"
|
|
15
|
+
libloading = "0.8.5"
|
|
16
|
+
neon = "1"
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# my-project
|
|
2
|
+
|
|
3
|
+
This project was bootstrapped by [create-neon](https://www.npmjs.com/package/create-neon).
|
|
4
|
+
|
|
5
|
+
## Building my-project
|
|
6
|
+
|
|
7
|
+
Building my-project requires a [supported version of Node and Rust](https://github.com/neon-bindings/neon#platform-support).
|
|
8
|
+
|
|
9
|
+
To run the build, run:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
$ npm run build
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This command uses the [@neon-rs/cli](https://www.npmjs.com/package/@neon-rs/cli) utility to assemble the binary Node addon from the output of `cargo`.
|
|
16
|
+
|
|
17
|
+
## Exploring my-project
|
|
18
|
+
|
|
19
|
+
After building my-project, you can explore its exports at the Node console:
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
$ npm i
|
|
23
|
+
$ npm run build
|
|
24
|
+
$ node
|
|
25
|
+
> require('.').hello()
|
|
26
|
+
'hello node'
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Available Scripts
|
|
30
|
+
|
|
31
|
+
In the project directory, you can run:
|
|
32
|
+
|
|
33
|
+
#### `npm install`
|
|
34
|
+
|
|
35
|
+
Installs the project, including running `npm run build`.
|
|
36
|
+
|
|
37
|
+
#### `npm run build`
|
|
38
|
+
|
|
39
|
+
Builds the Node addon (`index.node`) from source, generating a release build with `cargo --release`.
|
|
40
|
+
|
|
41
|
+
Additional [`cargo build`](https://doc.rust-lang.org/cargo/commands/cargo-build.html) arguments may be passed to `npm run build` and similar commands. For example, to enable a [cargo feature](https://doc.rust-lang.org/cargo/reference/features.html):
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
npm run build -- --feature=beetle
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
#### `npm run debug`
|
|
48
|
+
|
|
49
|
+
Similar to `npm run build` but generates a debug build with `cargo`.
|
|
50
|
+
|
|
51
|
+
#### `npm run cross`
|
|
52
|
+
|
|
53
|
+
Similar to `npm run build` but uses [cross-rs](https://github.com/cross-rs/cross) to cross-compile for another platform. Use the [`CARGO_BUILD_TARGET`](https://doc.rust-lang.org/cargo/reference/config.html#buildtarget) environment variable to select the build target.
|
|
54
|
+
|
|
55
|
+
#### `npm test`
|
|
56
|
+
|
|
57
|
+
Runs the unit tests by calling `cargo test`. You can learn more about [adding tests to your Rust code](https://doc.rust-lang.org/book/ch11-01-writing-tests.html) from the [Rust book](https://doc.rust-lang.org/book/).
|
|
58
|
+
|
|
59
|
+
## Project Layout
|
|
60
|
+
|
|
61
|
+
The directory structure of this project is:
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
my-project/
|
|
65
|
+
├── Cargo.toml
|
|
66
|
+
├── README.md
|
|
67
|
+
├── src/
|
|
68
|
+
| └── lib.rs
|
|
69
|
+
├── index.node
|
|
70
|
+
├── package.json
|
|
71
|
+
└── target/
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
| Entry | Purpose |
|
|
75
|
+
|----------------|------------------------------------------------------------------------------------------------------------------------------------------|
|
|
76
|
+
| `Cargo.toml` | The Cargo [manifest file](https://doc.rust-lang.org/cargo/reference/manifest.html), which informs the `cargo` command. |
|
|
77
|
+
| `README.md` | This file. |
|
|
78
|
+
| `src/` | The directory tree containing the Rust source code for the project. |
|
|
79
|
+
| `lib.rs` | Entry point for the Rust source code. |
|
|
80
|
+
| `index.node` | The main module, a [Node addon](https://nodejs.org/api/addons.html) generated by the build and pointed to by `"main"` in `package.json`. |
|
|
81
|
+
| `package.json` | The npm [manifest file](https://docs.npmjs.com/cli/v7/configuring-npm/package-json), which informs the `npm` command. |
|
|
82
|
+
| `target/` | Binary artifacts generated by the Rust build. |
|
|
83
|
+
|
|
84
|
+
## Learn More
|
|
85
|
+
|
|
86
|
+
Learn more about:
|
|
87
|
+
|
|
88
|
+
- [Neon](https://neon-bindings.com).
|
|
89
|
+
- [Rust](https://www.rust-lang.org).
|
|
90
|
+
- [Node](https://nodejs.org).
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
const U64_MAX = BigInt(2) ** BigInt(64) - BigInt(1);
|
|
2
|
+
|
|
3
|
+
class Validation {
|
|
4
|
+
static validateInsertion(hash, ttl, silence_read) {
|
|
5
|
+
if (typeof hash !== 'object' || hash === null || Array.isArray(hash)) {
|
|
6
|
+
throw new Error("Must be a Hash (Object)");
|
|
7
|
+
}
|
|
8
|
+
if (ttl != -1 && !(BigInt(ttl) > 0 && BigInt(ttl) <= U64_MAX)) {
|
|
9
|
+
throw new Error("ttl should be greater than 0 and less than 2^64");
|
|
10
|
+
}
|
|
11
|
+
if (silence_read !== -1 && !(BigInt(silence_read) > 0 && BigInt(silence_read) <= U64_MAX)) {
|
|
12
|
+
throw new Error("silence_read should be greater than 0 and less than 2^64");
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
static validateToken(token) {
|
|
17
|
+
if (typeof token !== 'string') {
|
|
18
|
+
throw new Error("token must be a String");
|
|
19
|
+
}
|
|
20
|
+
if (token.length < 1) {
|
|
21
|
+
throw new Error("token can't be blank");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
module.exports = Validation;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{"reason":"compiler-artifact","package_id":"proc-macro2 1.0.91 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.91/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.91/build.rs","edition":"2021","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":["proc-macro"],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/build/proc-macro2-e5deb1f1736cda56/build-script-build"],"executable":null,"fresh":true}
|
|
2
|
+
{"reason":"build-script-executed","package_id":"proc-macro2 1.0.91 (registry+https://github.com/rust-lang/crates.io-index)","linked_libs":[],"linked_paths":[],"cfgs":["no_literal_byte_character","no_literal_c_string","wrap_proc_macro"],"env":[],"out_dir":"/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/build/proc-macro2-44b3f40dd27d0204/out"}
|
|
3
|
+
{"reason":"compiler-artifact","package_id":"unicode-ident 1.0.14 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-ident-1.0.14/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"unicode_ident","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-ident-1.0.14/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libunicode_ident-e34f244c3b30c125.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libunicode_ident-e34f244c3b30c125.rmeta"],"executable":null,"fresh":true}
|
|
4
|
+
{"reason":"compiler-artifact","package_id":"libc 0.2.164 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.164/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.164/build.rs","edition":"2015","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/build/libc-6b750a7bf0144944/build-script-build"],"executable":null,"fresh":true}
|
|
5
|
+
{"reason":"compiler-artifact","package_id":"cfg-if 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cfg-if-1.0.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"cfg-if","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cfg-if-1.0.0/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libcfg_if-d8e3a6ca30cba1da.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libcfg_if-d8e3a6ca30cba1da.rmeta"],"executable":null,"fresh":true}
|
|
6
|
+
{"reason":"compiler-artifact","package_id":"proc-macro2 1.0.91 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.91/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"proc_macro2","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.91/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":["proc-macro"],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libproc_macro2-8556991c6218a8a2.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libproc_macro2-8556991c6218a8a2.rmeta"],"executable":null,"fresh":true}
|
|
7
|
+
{"reason":"build-script-executed","package_id":"libc 0.2.164 (registry+https://github.com/rust-lang/crates.io-index)","linked_libs":[],"linked_paths":[],"cfgs":["freebsd11","libc_priv_mod_use","libc_union","libc_const_size_of","libc_align","libc_int128","libc_core_cvoid","libc_packedN","libc_cfg_target_vendor","libc_non_exhaustive","libc_long_array","libc_ptr_addr_of","libc_underscore_const_names","libc_const_extern_fn"],"env":[],"out_dir":"/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/build/libc-dbfb4117c8520e44/out"}
|
|
8
|
+
{"reason":"compiler-artifact","package_id":"semver 1.0.23 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.23/Cargo.toml","target":{"kind":["custom-build"],"crate_types":["bin"],"name":"build-script-build","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.23/build.rs","edition":"2018","doc":false,"doctest":false,"test":false},"profile":{"opt_level":"0","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":["default","std"],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/build/semver-bf10c33e078ad375/build-script-build"],"executable":null,"fresh":true}
|
|
9
|
+
{"reason":"compiler-artifact","package_id":"libloading 0.8.5 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libloading-0.8.5/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"libloading","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libloading-0.8.5/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/liblibloading-a10ca03c7b86e08e.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/liblibloading-a10ca03c7b86e08e.rmeta"],"executable":null,"fresh":true}
|
|
10
|
+
{"reason":"compiler-artifact","package_id":"quote 1.0.37 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/quote-1.0.37/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"quote","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/quote-1.0.37/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":["default","proc-macro"],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libquote-d998cb5c9cc2fbca.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libquote-d998cb5c9cc2fbca.rmeta"],"executable":null,"fresh":true}
|
|
11
|
+
{"reason":"build-script-executed","package_id":"semver 1.0.23 (registry+https://github.com/rust-lang/crates.io-index)","linked_libs":[],"linked_paths":[],"cfgs":[],"env":[],"out_dir":"/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/build/semver-840b143a6d44fc55/out"}
|
|
12
|
+
{"reason":"compiler-artifact","package_id":"libc 0.2.164 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.164/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"libc","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.164/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/liblibc-6ce53fbe0237444a.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/liblibc-6ce53fbe0237444a.rmeta"],"executable":null,"fresh":true}
|
|
13
|
+
{"reason":"compiler-artifact","package_id":"once_cell 1.20.2 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.20.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"once_cell","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/once_cell-1.20.2/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":["alloc","default","race","std"],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libonce_cell-76399aa11f3bbb8c.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libonce_cell-76399aa11f3bbb8c.rmeta"],"executable":null,"fresh":true}
|
|
14
|
+
{"reason":"compiler-artifact","package_id":"syn 2.0.89 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.89/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"syn","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-2.0.89/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":["clone-impls","default","derive","parsing","printing","proc-macro"],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsyn-963c4641e798f7f5.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsyn-963c4641e798f7f5.rmeta"],"executable":null,"fresh":true}
|
|
15
|
+
{"reason":"compiler-artifact","package_id":"semver 1.0.23 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.23/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"semver","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/semver-1.0.23/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":["default","std"],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsemver-806ec6deab98d75b.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsemver-806ec6deab98d75b.rmeta"],"executable":null,"fresh":true}
|
|
16
|
+
{"reason":"compiler-artifact","package_id":"getrandom 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/getrandom-0.2.15/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"getrandom","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/getrandom-0.2.15/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libgetrandom-78cd6978807d83d6.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libgetrandom-78cd6978807d83d6.rmeta"],"executable":null,"fresh":true}
|
|
17
|
+
{"reason":"compiler-artifact","package_id":"send_wrapper 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/send_wrapper-0.6.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"send_wrapper","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/send_wrapper-0.6.0/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsend_wrapper-d77865b4bb85cdca.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsend_wrapper-d77865b4bb85cdca.rmeta"],"executable":null,"fresh":true}
|
|
18
|
+
{"reason":"compiler-artifact","package_id":"syn-mid 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-mid-0.6.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"syn-mid","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/syn-mid-0.6.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsyn_mid-9c27481b79dd1a3e.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsyn_mid-9c27481b79dd1a3e.rmeta"],"executable":null,"fresh":true}
|
|
19
|
+
{"reason":"compiler-artifact","package_id":"smallvec 1.13.2 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.2/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"smallvec","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/smallvec-1.13.2/src/lib.rs","edition":"2018","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsmallvec-085001c5fef9560c.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libsmallvec-085001c5fef9560c.rmeta"],"executable":null,"fresh":true}
|
|
20
|
+
{"reason":"compiler-artifact","package_id":"lazy_static 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lazy_static-1.5.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"lazy_static","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/lazy_static-1.5.0/src/lib.rs","edition":"2015","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/liblazy_static-a821af283138ea1a.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/liblazy_static-a821af283138ea1a.rmeta"],"executable":null,"fresh":true}
|
|
21
|
+
{"reason":"compiler-artifact","package_id":"neon-macros 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/neon-macros-1.0.0/Cargo.toml","target":{"kind":["proc-macro"],"crate_types":["proc-macro"],"name":"neon-macros","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/neon-macros-1.0.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"0","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libneon_macros-f963b76e3a86d020.dylib"],"executable":null,"fresh":true}
|
|
22
|
+
{"reason":"compiler-artifact","package_id":"neon 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)","manifest_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/neon-1.0.0/Cargo.toml","target":{"kind":["lib"],"crate_types":["lib"],"name":"neon","src_path":"/Users/macintosh/.cargo/registry/src/index.crates.io-6f17d22bba15001f/neon-1.0.0/src/lib.rs","edition":"2021","doc":true,"doctest":true,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":["default","getrandom","napi-1","napi-2","napi-3","napi-4","napi-5","napi-6","napi-7","napi-8"],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libneon-88deb50ea272b62a.rlib","/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/deps/libneon-88deb50ea272b62a.rmeta"],"executable":null,"fresh":true}
|
|
23
|
+
{"reason":"compiler-artifact","package_id":"crud_jt 0.1.0 (path+file:///Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript)","manifest_path":"/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/Cargo.toml","target":{"kind":["cdylib"],"crate_types":["cdylib"],"name":"crud_jt","src_path":"/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/src/lib.rs","edition":"2021","doc":true,"doctest":false,"test":true},"profile":{"opt_level":"3","debuginfo":null,"debug_assertions":false,"overflow_checks":false,"test":false},"features":[],"filenames":["/Users/macintosh/Applications/crud_jt-libs/javascript/crud_jt-javascript/target/release/libcrud_jt.dylib"],"executable":null,"fresh":false}
|
|
24
|
+
{"reason":"build-finished","success":true}
|