minigraf 1.1.0 → 1.2.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/workflows/ci.yml +36 -0
- package/.github/workflows/release.yml +211 -0
- package/Cargo.lock +648 -0
- package/Cargo.toml +4 -4
- package/package.json +2 -2
- package/packages/@minigraf/darwin-universal/package.json +1 -1
- package/packages/@minigraf/linux-arm64-gnu/package.json +1 -1
- package/packages/@minigraf/linux-x64-gnu/package.json +1 -1
- package/packages/@minigraf/win32-x64-msvc/package.json +1 -1
- package/README.md +0 -65
- package/minigraf.darwin-universal.node +0 -0
- package/minigraf.linux-arm64-gnu.node +0 -0
- package/minigraf.linux-x64-gnu.node +0 -0
- package/minigraf.win32-x64-msvc.node +0 -0
- package/packages/@minigraf/darwin-universal/minigraf.darwin-universal.node +0 -0
- package/packages/@minigraf/linux-arm64-gnu/minigraf.linux-arm64-gnu.node +0 -0
- package/packages/@minigraf/linux-x64-gnu/minigraf.linux-x64-gnu.node +0 -0
- package/packages/@minigraf/win32-x64-msvc/minigraf.win32-x64-msvc.node +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
name: Node.js CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
name: Node.js tests (${{ matrix.os }})
|
|
12
|
+
runs-on: ${{ matrix.os }}
|
|
13
|
+
strategy:
|
|
14
|
+
fail-fast: false
|
|
15
|
+
matrix:
|
|
16
|
+
os: [ubuntu-latest, ubuntu-24.04-arm, macos-14, windows-latest]
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Install Rust toolchain
|
|
22
|
+
uses: dtolnay/rust-toolchain@stable
|
|
23
|
+
|
|
24
|
+
- name: Set up Node.js
|
|
25
|
+
uses: actions/setup-node@v4
|
|
26
|
+
with:
|
|
27
|
+
node-version: '20'
|
|
28
|
+
|
|
29
|
+
- name: Install npm dependencies
|
|
30
|
+
run: npm install
|
|
31
|
+
|
|
32
|
+
- name: Build native addon
|
|
33
|
+
run: npx napi build --platform --release
|
|
34
|
+
|
|
35
|
+
- name: Run tests
|
|
36
|
+
run: node --test test/basic.test.mjs
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
name: Node.js Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
repository_dispatch:
|
|
5
|
+
types: [core-release]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
inputs:
|
|
8
|
+
version:
|
|
9
|
+
description: 'Version to release (e.g. v1.2.0)'
|
|
10
|
+
required: true
|
|
11
|
+
type: string
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
prepare:
|
|
15
|
+
name: Pin version, commit, tag
|
|
16
|
+
runs-on: ubuntu-latest
|
|
17
|
+
outputs:
|
|
18
|
+
tag: ${{ steps.ver.outputs.tag }}
|
|
19
|
+
semver: ${{ steps.ver.outputs.semver }}
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
with:
|
|
23
|
+
token: ${{ secrets.MINIGRAF_RELEASE_TOKEN }}
|
|
24
|
+
|
|
25
|
+
- id: ver
|
|
26
|
+
run: |
|
|
27
|
+
V="${{ github.event.client_payload.version || github.event.inputs.version }}"
|
|
28
|
+
echo "tag=$V" >> "$GITHUB_OUTPUT"
|
|
29
|
+
echo "semver=${V#v}" >> "$GITHUB_OUTPUT"
|
|
30
|
+
|
|
31
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
32
|
+
|
|
33
|
+
- name: Wait for minigraf ${{ steps.ver.outputs.semver }} on crates.io
|
|
34
|
+
run: |
|
|
35
|
+
SEMVER="${{ steps.ver.outputs.semver }}"
|
|
36
|
+
echo "Waiting for minigraf@$SEMVER on crates.io..."
|
|
37
|
+
for i in $(seq 1 20); do
|
|
38
|
+
STATUS=$(curl -s "https://crates.io/api/v1/crates/minigraf/$SEMVER" \
|
|
39
|
+
-H "User-Agent: minigraf-binding/1.0" | python3 -c \
|
|
40
|
+
"import sys,json; d=json.load(sys.stdin); print(d.get('version',{}).get('num',''))" 2>/dev/null || echo "")
|
|
41
|
+
if [ "$STATUS" = "$SEMVER" ]; then
|
|
42
|
+
echo "minigraf@$SEMVER is live (attempt $i)"
|
|
43
|
+
exit 0
|
|
44
|
+
fi
|
|
45
|
+
echo "Attempt $i/20: not yet available, waiting 15s..."
|
|
46
|
+
sleep 15
|
|
47
|
+
done
|
|
48
|
+
echo "ERROR: minigraf@$SEMVER not found on crates.io after 5 minutes" >&2
|
|
49
|
+
exit 1
|
|
50
|
+
- name: Pin minigraf version in Cargo.toml
|
|
51
|
+
run: |
|
|
52
|
+
sed -i 's/^minigraf = "[^"]*"/minigraf = "=${{ steps.ver.outputs.semver }}"/' Cargo.toml
|
|
53
|
+
sed -i 's/\(minigraf = {[^}]*version = \"\)[^\"]*/\1=${{ steps.ver.outputs.semver }}/' Cargo.toml
|
|
54
|
+
|
|
55
|
+
- name: Update Cargo.lock
|
|
56
|
+
run: cargo update --precise "${{ steps.ver.outputs.semver }}" minigraf
|
|
57
|
+
|
|
58
|
+
- name: Commit and push tag
|
|
59
|
+
run: |
|
|
60
|
+
git config user.name "github-actions[bot]"
|
|
61
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
62
|
+
git add Cargo.toml Cargo.lock
|
|
63
|
+
if ! git diff --cached --quiet; then
|
|
64
|
+
git commit -m "chore: release ${{ steps.ver.outputs.tag }}"
|
|
65
|
+
else
|
|
66
|
+
echo "Cargo.toml already pinned, skipping commit"
|
|
67
|
+
fi
|
|
68
|
+
if ! git rev-parse "${{ steps.ver.outputs.tag }}" >/dev/null 2>&1; then
|
|
69
|
+
git tag "${{ steps.ver.outputs.tag }}"
|
|
70
|
+
else
|
|
71
|
+
echo "Tag ${{ steps.ver.outputs.tag }} already exists, skipping"
|
|
72
|
+
fi
|
|
73
|
+
git push origin main
|
|
74
|
+
git push origin "${{ steps.ver.outputs.tag }}" || true
|
|
75
|
+
|
|
76
|
+
build:
|
|
77
|
+
name: Build .node binary (${{ matrix.settings.host }})
|
|
78
|
+
needs: prepare
|
|
79
|
+
runs-on: ${{ matrix.settings.host }}
|
|
80
|
+
strategy:
|
|
81
|
+
fail-fast: false
|
|
82
|
+
matrix:
|
|
83
|
+
settings:
|
|
84
|
+
- host: ubuntu-latest
|
|
85
|
+
target: x86_64-unknown-linux-gnu
|
|
86
|
+
artifact-name: minigraf-linux-x64-gnu
|
|
87
|
+
rust_targets: x86_64-unknown-linux-gnu
|
|
88
|
+
- host: ubuntu-24.04-arm
|
|
89
|
+
target: aarch64-unknown-linux-gnu
|
|
90
|
+
artifact-name: minigraf-linux-arm64-gnu
|
|
91
|
+
rust_targets: aarch64-unknown-linux-gnu
|
|
92
|
+
- host: macos-14
|
|
93
|
+
target: universal-apple-darwin
|
|
94
|
+
artifact-name: minigraf-darwin-universal
|
|
95
|
+
rust_targets: aarch64-apple-darwin x86_64-apple-darwin
|
|
96
|
+
- host: windows-latest
|
|
97
|
+
target: x86_64-pc-windows-msvc
|
|
98
|
+
artifact-name: minigraf-win32-x64-msvc
|
|
99
|
+
rust_targets: x86_64-pc-windows-msvc
|
|
100
|
+
|
|
101
|
+
steps:
|
|
102
|
+
- uses: actions/checkout@v4
|
|
103
|
+
with:
|
|
104
|
+
ref: ${{ needs.prepare.outputs.tag }}
|
|
105
|
+
|
|
106
|
+
- name: Install Rust toolchain
|
|
107
|
+
uses: dtolnay/rust-toolchain@stable
|
|
108
|
+
with:
|
|
109
|
+
targets: ${{ matrix.settings.rust_targets }}
|
|
110
|
+
|
|
111
|
+
- name: Set up Node.js
|
|
112
|
+
uses: actions/setup-node@v4
|
|
113
|
+
with:
|
|
114
|
+
node-version: '20'
|
|
115
|
+
registry-url: 'https://registry.npmjs.org'
|
|
116
|
+
|
|
117
|
+
- name: Install npm dependencies
|
|
118
|
+
run: npm install
|
|
119
|
+
|
|
120
|
+
- name: Build native addon
|
|
121
|
+
shell: bash
|
|
122
|
+
run: |
|
|
123
|
+
if [ "${{ matrix.settings.target }}" = "universal-apple-darwin" ]; then
|
|
124
|
+
npx napi build --platform --release --target aarch64-apple-darwin
|
|
125
|
+
npx napi build --platform --release --target x86_64-apple-darwin
|
|
126
|
+
lipo -create -output minigraf.darwin-universal.node \
|
|
127
|
+
minigraf.darwin-arm64.node minigraf.darwin-x64.node
|
|
128
|
+
rm minigraf.darwin-arm64.node minigraf.darwin-x64.node
|
|
129
|
+
else
|
|
130
|
+
npx napi build --platform --release --target "${{ matrix.settings.target }}"
|
|
131
|
+
fi
|
|
132
|
+
|
|
133
|
+
- name: Upload .node binary
|
|
134
|
+
uses: actions/upload-artifact@v4
|
|
135
|
+
with:
|
|
136
|
+
name: ${{ matrix.settings.artifact-name }}
|
|
137
|
+
path: "*.node"
|
|
138
|
+
|
|
139
|
+
publish:
|
|
140
|
+
name: Publish to npm
|
|
141
|
+
needs: [prepare, build]
|
|
142
|
+
runs-on: ubuntu-latest
|
|
143
|
+
environment:
|
|
144
|
+
name: npm
|
|
145
|
+
url: https://www.npmjs.com/package/minigraf
|
|
146
|
+
permissions:
|
|
147
|
+
id-token: write
|
|
148
|
+
contents: read
|
|
149
|
+
|
|
150
|
+
steps:
|
|
151
|
+
- uses: actions/checkout@v4
|
|
152
|
+
with:
|
|
153
|
+
ref: ${{ needs.prepare.outputs.tag }}
|
|
154
|
+
|
|
155
|
+
- name: Set up Node.js
|
|
156
|
+
uses: actions/setup-node@v6
|
|
157
|
+
with:
|
|
158
|
+
node-version: '24'
|
|
159
|
+
registry-url: 'https://registry.npmjs.org'
|
|
160
|
+
|
|
161
|
+
- name: Stamp version into package.json
|
|
162
|
+
run: |
|
|
163
|
+
VERSION="${{ needs.prepare.outputs.semver }}"
|
|
164
|
+
node -e "
|
|
165
|
+
const fs = require('fs');
|
|
166
|
+
const p = 'package.json';
|
|
167
|
+
const pkg = JSON.parse(fs.readFileSync(p, 'utf8'));
|
|
168
|
+
pkg.version = '${VERSION}';
|
|
169
|
+
fs.writeFileSync(p, JSON.stringify(pkg, null, 2) + '\n');
|
|
170
|
+
"
|
|
171
|
+
|
|
172
|
+
- name: Install npm dependencies
|
|
173
|
+
run: npm install
|
|
174
|
+
|
|
175
|
+
- name: Download all binaries
|
|
176
|
+
uses: actions/download-artifact@v4
|
|
177
|
+
with:
|
|
178
|
+
pattern: minigraf-*
|
|
179
|
+
path: .
|
|
180
|
+
merge-multiple: true
|
|
181
|
+
|
|
182
|
+
- name: Distribute .node binaries to platform packages
|
|
183
|
+
run: |
|
|
184
|
+
cp minigraf.linux-x64-gnu.node packages/@minigraf/linux-x64-gnu/
|
|
185
|
+
cp minigraf.linux-arm64-gnu.node packages/@minigraf/linux-arm64-gnu/
|
|
186
|
+
cp minigraf.darwin-universal.node packages/@minigraf/darwin-universal/
|
|
187
|
+
cp minigraf.win32-x64-msvc.node packages/@minigraf/win32-x64-msvc/
|
|
188
|
+
|
|
189
|
+
- name: Sync platform package versions
|
|
190
|
+
run: |
|
|
191
|
+
VERSION="${{ needs.prepare.outputs.semver }}"
|
|
192
|
+
for dir in packages/@minigraf/*/; do
|
|
193
|
+
node -e "
|
|
194
|
+
const fs = require('fs');
|
|
195
|
+
const pkg = JSON.parse(fs.readFileSync('${dir}package.json', 'utf8'));
|
|
196
|
+
pkg.version = '${VERSION}';
|
|
197
|
+
fs.writeFileSync('${dir}package.json', JSON.stringify(pkg, null, 2) + '\n');
|
|
198
|
+
"
|
|
199
|
+
done
|
|
200
|
+
|
|
201
|
+
- name: Publish platform packages
|
|
202
|
+
run: |
|
|
203
|
+
for dir in packages/@minigraf/*/; do
|
|
204
|
+
npm publish "$dir" --access public || echo "Skipping $dir (already published or error)"
|
|
205
|
+
done
|
|
206
|
+
|
|
207
|
+
- name: Publish main minigraf package
|
|
208
|
+
run: npm publish --access public
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
package/Cargo.lock
ADDED
|
@@ -0,0 +1,648 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "anyhow"
|
|
7
|
+
version = "1.0.103"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "2a4385e2e34eb35d6b3efe798b9eb88096925d87726c0798709bf56d9ed84af3"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "atomic-polyfill"
|
|
13
|
+
version = "1.0.3"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "8cf2bce30dfe09ef0bfaef228b9d414faaf7e563035494d7fe092dba54b300f4"
|
|
16
|
+
dependencies = [
|
|
17
|
+
"critical-section",
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "autocfg"
|
|
22
|
+
version = "1.5.1"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "bitflags"
|
|
28
|
+
version = "2.13.0"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
|
|
31
|
+
|
|
32
|
+
[[package]]
|
|
33
|
+
name = "bumpalo"
|
|
34
|
+
version = "3.20.3"
|
|
35
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
36
|
+
checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
|
|
37
|
+
|
|
38
|
+
[[package]]
|
|
39
|
+
name = "byteorder"
|
|
40
|
+
version = "1.5.0"
|
|
41
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
+
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
|
43
|
+
|
|
44
|
+
[[package]]
|
|
45
|
+
name = "cfg-if"
|
|
46
|
+
version = "1.0.4"
|
|
47
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
48
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
49
|
+
|
|
50
|
+
[[package]]
|
|
51
|
+
name = "chrono"
|
|
52
|
+
version = "0.4.45"
|
|
53
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
+
checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
|
|
55
|
+
dependencies = [
|
|
56
|
+
"num-traits",
|
|
57
|
+
"serde",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "cobs"
|
|
62
|
+
version = "0.3.0"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "0fa961b519f0b462e3a3b4a34b64d119eeaca1d59af726fe450bbba07a9fc0a1"
|
|
65
|
+
dependencies = [
|
|
66
|
+
"thiserror",
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
[[package]]
|
|
70
|
+
name = "convert_case"
|
|
71
|
+
version = "0.11.0"
|
|
72
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
+
checksum = "affbf0190ed2caf063e3def54ff444b449371d55c58e513a95ab98eca50adb49"
|
|
74
|
+
dependencies = [
|
|
75
|
+
"unicode-segmentation",
|
|
76
|
+
]
|
|
77
|
+
|
|
78
|
+
[[package]]
|
|
79
|
+
name = "crc32fast"
|
|
80
|
+
version = "1.5.0"
|
|
81
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
82
|
+
checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
|
|
83
|
+
dependencies = [
|
|
84
|
+
"cfg-if",
|
|
85
|
+
]
|
|
86
|
+
|
|
87
|
+
[[package]]
|
|
88
|
+
name = "critical-section"
|
|
89
|
+
version = "1.2.0"
|
|
90
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
91
|
+
checksum = "790eea4361631c5e7d22598ecd5723ff611904e3344ce8720784c93e3d83d40b"
|
|
92
|
+
|
|
93
|
+
[[package]]
|
|
94
|
+
name = "ctor"
|
|
95
|
+
version = "1.0.7"
|
|
96
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
97
|
+
checksum = "01334b89b69ff726750c5ce5073fc8bd860e99aa9a8fc5ca11b04730e3aee97a"
|
|
98
|
+
|
|
99
|
+
[[package]]
|
|
100
|
+
name = "embedded-io"
|
|
101
|
+
version = "0.4.0"
|
|
102
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
103
|
+
checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced"
|
|
104
|
+
|
|
105
|
+
[[package]]
|
|
106
|
+
name = "embedded-io"
|
|
107
|
+
version = "0.6.1"
|
|
108
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
109
|
+
checksum = "edd0f118536f44f5ccd48bcb8b111bdc3de888b58c74639dfb034a357d0f206d"
|
|
110
|
+
|
|
111
|
+
[[package]]
|
|
112
|
+
name = "futures"
|
|
113
|
+
version = "0.3.32"
|
|
114
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
115
|
+
checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d"
|
|
116
|
+
dependencies = [
|
|
117
|
+
"futures-channel",
|
|
118
|
+
"futures-core",
|
|
119
|
+
"futures-executor",
|
|
120
|
+
"futures-io",
|
|
121
|
+
"futures-sink",
|
|
122
|
+
"futures-task",
|
|
123
|
+
"futures-util",
|
|
124
|
+
]
|
|
125
|
+
|
|
126
|
+
[[package]]
|
|
127
|
+
name = "futures-channel"
|
|
128
|
+
version = "0.3.32"
|
|
129
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
130
|
+
checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
|
|
131
|
+
dependencies = [
|
|
132
|
+
"futures-core",
|
|
133
|
+
"futures-sink",
|
|
134
|
+
]
|
|
135
|
+
|
|
136
|
+
[[package]]
|
|
137
|
+
name = "futures-core"
|
|
138
|
+
version = "0.3.32"
|
|
139
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
140
|
+
checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
|
|
141
|
+
|
|
142
|
+
[[package]]
|
|
143
|
+
name = "futures-executor"
|
|
144
|
+
version = "0.3.32"
|
|
145
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
146
|
+
checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d"
|
|
147
|
+
dependencies = [
|
|
148
|
+
"futures-core",
|
|
149
|
+
"futures-task",
|
|
150
|
+
"futures-util",
|
|
151
|
+
]
|
|
152
|
+
|
|
153
|
+
[[package]]
|
|
154
|
+
name = "futures-io"
|
|
155
|
+
version = "0.3.32"
|
|
156
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
157
|
+
checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"
|
|
158
|
+
|
|
159
|
+
[[package]]
|
|
160
|
+
name = "futures-macro"
|
|
161
|
+
version = "0.3.32"
|
|
162
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
163
|
+
checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"
|
|
164
|
+
dependencies = [
|
|
165
|
+
"proc-macro2",
|
|
166
|
+
"quote",
|
|
167
|
+
"syn",
|
|
168
|
+
]
|
|
169
|
+
|
|
170
|
+
[[package]]
|
|
171
|
+
name = "futures-sink"
|
|
172
|
+
version = "0.3.32"
|
|
173
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
+
checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "futures-task"
|
|
178
|
+
version = "0.3.32"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
|
|
181
|
+
|
|
182
|
+
[[package]]
|
|
183
|
+
name = "futures-util"
|
|
184
|
+
version = "0.3.32"
|
|
185
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
+
checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
|
|
187
|
+
dependencies = [
|
|
188
|
+
"futures-channel",
|
|
189
|
+
"futures-core",
|
|
190
|
+
"futures-io",
|
|
191
|
+
"futures-macro",
|
|
192
|
+
"futures-sink",
|
|
193
|
+
"futures-task",
|
|
194
|
+
"memchr",
|
|
195
|
+
"pin-project-lite",
|
|
196
|
+
"slab",
|
|
197
|
+
]
|
|
198
|
+
|
|
199
|
+
[[package]]
|
|
200
|
+
name = "getrandom"
|
|
201
|
+
version = "0.4.3"
|
|
202
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
203
|
+
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
|
204
|
+
dependencies = [
|
|
205
|
+
"cfg-if",
|
|
206
|
+
"libc",
|
|
207
|
+
"r-efi",
|
|
208
|
+
]
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "hash32"
|
|
212
|
+
version = "0.2.1"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "b0c35f58762feb77d74ebe43bdbc3210f09be9fe6742234d573bacc26ed92b67"
|
|
215
|
+
dependencies = [
|
|
216
|
+
"byteorder",
|
|
217
|
+
]
|
|
218
|
+
|
|
219
|
+
[[package]]
|
|
220
|
+
name = "heapless"
|
|
221
|
+
version = "0.7.17"
|
|
222
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
223
|
+
checksum = "cdc6457c0eb62c71aac4bc17216026d8410337c4126773b9c5daba343f17964f"
|
|
224
|
+
dependencies = [
|
|
225
|
+
"atomic-polyfill",
|
|
226
|
+
"hash32",
|
|
227
|
+
"rustc_version",
|
|
228
|
+
"serde",
|
|
229
|
+
"spin",
|
|
230
|
+
"stable_deref_trait",
|
|
231
|
+
]
|
|
232
|
+
|
|
233
|
+
[[package]]
|
|
234
|
+
name = "itoa"
|
|
235
|
+
version = "1.0.18"
|
|
236
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
237
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
238
|
+
|
|
239
|
+
[[package]]
|
|
240
|
+
name = "js-sys"
|
|
241
|
+
version = "0.3.103"
|
|
242
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
243
|
+
checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102"
|
|
244
|
+
dependencies = [
|
|
245
|
+
"cfg-if",
|
|
246
|
+
"futures-util",
|
|
247
|
+
"wasm-bindgen",
|
|
248
|
+
]
|
|
249
|
+
|
|
250
|
+
[[package]]
|
|
251
|
+
name = "libc"
|
|
252
|
+
version = "0.2.186"
|
|
253
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
254
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
255
|
+
|
|
256
|
+
[[package]]
|
|
257
|
+
name = "libloading"
|
|
258
|
+
version = "0.9.0"
|
|
259
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
260
|
+
checksum = "754ca22de805bb5744484a5b151a9e1a8e837d5dc232c2d7d8c2e3492edc8b60"
|
|
261
|
+
dependencies = [
|
|
262
|
+
"cfg-if",
|
|
263
|
+
"windows-link",
|
|
264
|
+
]
|
|
265
|
+
|
|
266
|
+
[[package]]
|
|
267
|
+
name = "lock_api"
|
|
268
|
+
version = "0.4.14"
|
|
269
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
270
|
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
|
271
|
+
dependencies = [
|
|
272
|
+
"scopeguard",
|
|
273
|
+
]
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "memchr"
|
|
277
|
+
version = "2.8.2"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "88904434abc2901f197fe8cc55f0445e7ded921dba5911dad2e2b39b48e663c4"
|
|
280
|
+
|
|
281
|
+
[[package]]
|
|
282
|
+
name = "minigraf"
|
|
283
|
+
version = "1.2.0"
|
|
284
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
285
|
+
checksum = "60140ac1a95499f88e3cb91c2abaa708efa7efb3beceba299e703a2783309135"
|
|
286
|
+
dependencies = [
|
|
287
|
+
"anyhow",
|
|
288
|
+
"chrono",
|
|
289
|
+
"crc32fast",
|
|
290
|
+
"postcard",
|
|
291
|
+
"regex-lite",
|
|
292
|
+
"serde",
|
|
293
|
+
"uuid",
|
|
294
|
+
]
|
|
295
|
+
|
|
296
|
+
[[package]]
|
|
297
|
+
name = "minigraf-node"
|
|
298
|
+
version = "1.1.1"
|
|
299
|
+
dependencies = [
|
|
300
|
+
"minigraf",
|
|
301
|
+
"napi",
|
|
302
|
+
"napi-build",
|
|
303
|
+
"napi-derive",
|
|
304
|
+
"serde_json",
|
|
305
|
+
]
|
|
306
|
+
|
|
307
|
+
[[package]]
|
|
308
|
+
name = "napi"
|
|
309
|
+
version = "3.9.4"
|
|
310
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
311
|
+
checksum = "b41bda2ac390efb5e8d22025d925ccc3f3807d8c1bea6d19b36127247c4b8f83"
|
|
312
|
+
dependencies = [
|
|
313
|
+
"bitflags",
|
|
314
|
+
"ctor",
|
|
315
|
+
"futures",
|
|
316
|
+
"napi-build",
|
|
317
|
+
"napi-sys",
|
|
318
|
+
"nohash-hasher",
|
|
319
|
+
"rustc-hash",
|
|
320
|
+
]
|
|
321
|
+
|
|
322
|
+
[[package]]
|
|
323
|
+
name = "napi-build"
|
|
324
|
+
version = "2.3.2"
|
|
325
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
326
|
+
checksum = "c9c366d2c8c60b86fa632df75f745509b52f9128f91a6bad4c796e44abb505e1"
|
|
327
|
+
|
|
328
|
+
[[package]]
|
|
329
|
+
name = "napi-derive"
|
|
330
|
+
version = "3.5.7"
|
|
331
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
332
|
+
checksum = "61d66f70256ad5aef58659966064471d0ad90e2897bc36a5a5e0389c85aabc1e"
|
|
333
|
+
dependencies = [
|
|
334
|
+
"convert_case",
|
|
335
|
+
"ctor",
|
|
336
|
+
"napi-derive-backend",
|
|
337
|
+
"proc-macro2",
|
|
338
|
+
"quote",
|
|
339
|
+
"syn",
|
|
340
|
+
]
|
|
341
|
+
|
|
342
|
+
[[package]]
|
|
343
|
+
name = "napi-derive-backend"
|
|
344
|
+
version = "5.0.5"
|
|
345
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
346
|
+
checksum = "81b4b08f15eed7a2a20c3f4c6314013fc3ac890a3afa9892b594485299ebdb2d"
|
|
347
|
+
dependencies = [
|
|
348
|
+
"convert_case",
|
|
349
|
+
"proc-macro2",
|
|
350
|
+
"quote",
|
|
351
|
+
"semver",
|
|
352
|
+
"syn",
|
|
353
|
+
]
|
|
354
|
+
|
|
355
|
+
[[package]]
|
|
356
|
+
name = "napi-sys"
|
|
357
|
+
version = "3.2.2"
|
|
358
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
359
|
+
checksum = "1f5bcdf71abd3a50d00b49c1c2c75251cb3c913777d6139cd37dabc093a5e400"
|
|
360
|
+
dependencies = [
|
|
361
|
+
"libloading",
|
|
362
|
+
]
|
|
363
|
+
|
|
364
|
+
[[package]]
|
|
365
|
+
name = "nohash-hasher"
|
|
366
|
+
version = "0.2.0"
|
|
367
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
368
|
+
checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
|
|
369
|
+
|
|
370
|
+
[[package]]
|
|
371
|
+
name = "num-traits"
|
|
372
|
+
version = "0.2.19"
|
|
373
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
374
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
375
|
+
dependencies = [
|
|
376
|
+
"autocfg",
|
|
377
|
+
]
|
|
378
|
+
|
|
379
|
+
[[package]]
|
|
380
|
+
name = "once_cell"
|
|
381
|
+
version = "1.21.4"
|
|
382
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
383
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
384
|
+
|
|
385
|
+
[[package]]
|
|
386
|
+
name = "pin-project-lite"
|
|
387
|
+
version = "0.2.17"
|
|
388
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
389
|
+
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
|
390
|
+
|
|
391
|
+
[[package]]
|
|
392
|
+
name = "postcard"
|
|
393
|
+
version = "1.1.3"
|
|
394
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
395
|
+
checksum = "6764c3b5dd454e283a30e6dfe78e9b31096d9e32036b5d1eaac7a6119ccb9a24"
|
|
396
|
+
dependencies = [
|
|
397
|
+
"cobs",
|
|
398
|
+
"embedded-io 0.4.0",
|
|
399
|
+
"embedded-io 0.6.1",
|
|
400
|
+
"heapless",
|
|
401
|
+
"serde",
|
|
402
|
+
]
|
|
403
|
+
|
|
404
|
+
[[package]]
|
|
405
|
+
name = "proc-macro2"
|
|
406
|
+
version = "1.0.106"
|
|
407
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
408
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
409
|
+
dependencies = [
|
|
410
|
+
"unicode-ident",
|
|
411
|
+
]
|
|
412
|
+
|
|
413
|
+
[[package]]
|
|
414
|
+
name = "quote"
|
|
415
|
+
version = "1.0.46"
|
|
416
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
417
|
+
checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
|
|
418
|
+
dependencies = [
|
|
419
|
+
"proc-macro2",
|
|
420
|
+
]
|
|
421
|
+
|
|
422
|
+
[[package]]
|
|
423
|
+
name = "r-efi"
|
|
424
|
+
version = "6.0.0"
|
|
425
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
426
|
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
427
|
+
|
|
428
|
+
[[package]]
|
|
429
|
+
name = "regex-lite"
|
|
430
|
+
version = "0.1.9"
|
|
431
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
432
|
+
checksum = "cab834c73d247e67f4fae452806d17d3c7501756d98c8808d7c9c7aa7d18f973"
|
|
433
|
+
|
|
434
|
+
[[package]]
|
|
435
|
+
name = "rustc-hash"
|
|
436
|
+
version = "2.1.2"
|
|
437
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
438
|
+
checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
|
|
439
|
+
|
|
440
|
+
[[package]]
|
|
441
|
+
name = "rustc_version"
|
|
442
|
+
version = "0.4.1"
|
|
443
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
444
|
+
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
|
|
445
|
+
dependencies = [
|
|
446
|
+
"semver",
|
|
447
|
+
]
|
|
448
|
+
|
|
449
|
+
[[package]]
|
|
450
|
+
name = "rustversion"
|
|
451
|
+
version = "1.0.22"
|
|
452
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
453
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
454
|
+
|
|
455
|
+
[[package]]
|
|
456
|
+
name = "scopeguard"
|
|
457
|
+
version = "1.2.0"
|
|
458
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
459
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
460
|
+
|
|
461
|
+
[[package]]
|
|
462
|
+
name = "semver"
|
|
463
|
+
version = "1.0.28"
|
|
464
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
465
|
+
checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
|
|
466
|
+
|
|
467
|
+
[[package]]
|
|
468
|
+
name = "serde"
|
|
469
|
+
version = "1.0.228"
|
|
470
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
471
|
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
|
472
|
+
dependencies = [
|
|
473
|
+
"serde_core",
|
|
474
|
+
"serde_derive",
|
|
475
|
+
]
|
|
476
|
+
|
|
477
|
+
[[package]]
|
|
478
|
+
name = "serde_core"
|
|
479
|
+
version = "1.0.228"
|
|
480
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
481
|
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
|
482
|
+
dependencies = [
|
|
483
|
+
"serde_derive",
|
|
484
|
+
]
|
|
485
|
+
|
|
486
|
+
[[package]]
|
|
487
|
+
name = "serde_derive"
|
|
488
|
+
version = "1.0.228"
|
|
489
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
490
|
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
|
491
|
+
dependencies = [
|
|
492
|
+
"proc-macro2",
|
|
493
|
+
"quote",
|
|
494
|
+
"syn",
|
|
495
|
+
]
|
|
496
|
+
|
|
497
|
+
[[package]]
|
|
498
|
+
name = "serde_json"
|
|
499
|
+
version = "1.0.150"
|
|
500
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
501
|
+
checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
|
|
502
|
+
dependencies = [
|
|
503
|
+
"itoa",
|
|
504
|
+
"memchr",
|
|
505
|
+
"serde",
|
|
506
|
+
"serde_core",
|
|
507
|
+
"zmij",
|
|
508
|
+
]
|
|
509
|
+
|
|
510
|
+
[[package]]
|
|
511
|
+
name = "sha1_smol"
|
|
512
|
+
version = "1.0.1"
|
|
513
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
514
|
+
checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d"
|
|
515
|
+
|
|
516
|
+
[[package]]
|
|
517
|
+
name = "slab"
|
|
518
|
+
version = "0.4.12"
|
|
519
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
520
|
+
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
521
|
+
|
|
522
|
+
[[package]]
|
|
523
|
+
name = "spin"
|
|
524
|
+
version = "0.9.8"
|
|
525
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
526
|
+
checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
|
|
527
|
+
dependencies = [
|
|
528
|
+
"lock_api",
|
|
529
|
+
]
|
|
530
|
+
|
|
531
|
+
[[package]]
|
|
532
|
+
name = "stable_deref_trait"
|
|
533
|
+
version = "1.2.1"
|
|
534
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
535
|
+
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
|
|
536
|
+
|
|
537
|
+
[[package]]
|
|
538
|
+
name = "syn"
|
|
539
|
+
version = "2.0.118"
|
|
540
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
541
|
+
checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
|
|
542
|
+
dependencies = [
|
|
543
|
+
"proc-macro2",
|
|
544
|
+
"quote",
|
|
545
|
+
"unicode-ident",
|
|
546
|
+
]
|
|
547
|
+
|
|
548
|
+
[[package]]
|
|
549
|
+
name = "thiserror"
|
|
550
|
+
version = "2.0.18"
|
|
551
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
552
|
+
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
|
|
553
|
+
dependencies = [
|
|
554
|
+
"thiserror-impl",
|
|
555
|
+
]
|
|
556
|
+
|
|
557
|
+
[[package]]
|
|
558
|
+
name = "thiserror-impl"
|
|
559
|
+
version = "2.0.18"
|
|
560
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
561
|
+
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
|
|
562
|
+
dependencies = [
|
|
563
|
+
"proc-macro2",
|
|
564
|
+
"quote",
|
|
565
|
+
"syn",
|
|
566
|
+
]
|
|
567
|
+
|
|
568
|
+
[[package]]
|
|
569
|
+
name = "unicode-ident"
|
|
570
|
+
version = "1.0.24"
|
|
571
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
572
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
573
|
+
|
|
574
|
+
[[package]]
|
|
575
|
+
name = "unicode-segmentation"
|
|
576
|
+
version = "1.13.3"
|
|
577
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
578
|
+
checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"
|
|
579
|
+
|
|
580
|
+
[[package]]
|
|
581
|
+
name = "uuid"
|
|
582
|
+
version = "1.23.4"
|
|
583
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
584
|
+
checksum = "bf80a72845275afea99e7f2b434723d3bc7e38470fcd1c7ed39a599c73319a53"
|
|
585
|
+
dependencies = [
|
|
586
|
+
"getrandom",
|
|
587
|
+
"js-sys",
|
|
588
|
+
"serde_core",
|
|
589
|
+
"sha1_smol",
|
|
590
|
+
"wasm-bindgen",
|
|
591
|
+
]
|
|
592
|
+
|
|
593
|
+
[[package]]
|
|
594
|
+
name = "wasm-bindgen"
|
|
595
|
+
version = "0.2.126"
|
|
596
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
597
|
+
checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4"
|
|
598
|
+
dependencies = [
|
|
599
|
+
"cfg-if",
|
|
600
|
+
"once_cell",
|
|
601
|
+
"rustversion",
|
|
602
|
+
"wasm-bindgen-macro",
|
|
603
|
+
"wasm-bindgen-shared",
|
|
604
|
+
]
|
|
605
|
+
|
|
606
|
+
[[package]]
|
|
607
|
+
name = "wasm-bindgen-macro"
|
|
608
|
+
version = "0.2.126"
|
|
609
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
610
|
+
checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1"
|
|
611
|
+
dependencies = [
|
|
612
|
+
"quote",
|
|
613
|
+
"wasm-bindgen-macro-support",
|
|
614
|
+
]
|
|
615
|
+
|
|
616
|
+
[[package]]
|
|
617
|
+
name = "wasm-bindgen-macro-support"
|
|
618
|
+
version = "0.2.126"
|
|
619
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
620
|
+
checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e"
|
|
621
|
+
dependencies = [
|
|
622
|
+
"bumpalo",
|
|
623
|
+
"proc-macro2",
|
|
624
|
+
"quote",
|
|
625
|
+
"syn",
|
|
626
|
+
"wasm-bindgen-shared",
|
|
627
|
+
]
|
|
628
|
+
|
|
629
|
+
[[package]]
|
|
630
|
+
name = "wasm-bindgen-shared"
|
|
631
|
+
version = "0.2.126"
|
|
632
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
633
|
+
checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24"
|
|
634
|
+
dependencies = [
|
|
635
|
+
"unicode-ident",
|
|
636
|
+
]
|
|
637
|
+
|
|
638
|
+
[[package]]
|
|
639
|
+
name = "windows-link"
|
|
640
|
+
version = "0.2.1"
|
|
641
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
642
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
643
|
+
|
|
644
|
+
[[package]]
|
|
645
|
+
name = "zmij"
|
|
646
|
+
version = "1.0.21"
|
|
647
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
648
|
+
checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
|
package/Cargo.toml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[package]
|
|
2
2
|
name = "minigraf-node"
|
|
3
|
-
version = "1.1.
|
|
3
|
+
version = "1.1.1"
|
|
4
4
|
edition = "2024"
|
|
5
5
|
publish = false
|
|
6
6
|
|
|
@@ -10,11 +10,11 @@ crate-type = ["cdylib"]
|
|
|
10
10
|
[dependencies]
|
|
11
11
|
napi = { version = "3.8", features = ["napi6"] }
|
|
12
12
|
napi-derive = "3"
|
|
13
|
-
minigraf = {
|
|
13
|
+
minigraf = { version = "=1.2.0" }
|
|
14
14
|
serde_json = "1.0"
|
|
15
15
|
|
|
16
16
|
[build-dependencies]
|
|
17
17
|
napi-build = "2.1"
|
|
18
18
|
|
|
19
|
-
[
|
|
20
|
-
|
|
19
|
+
[workspace]
|
|
20
|
+
members = ["."]
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "minigraf",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Zero-config, single-file, embedded graph database with bi-temporal Datalog queries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
7
7
|
"license": "MIT OR Apache-2.0",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "https://github.com/project-minigraf/minigraf.git"
|
|
10
|
+
"url": "https://github.com/project-minigraf/minigraf-node.git"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"graph",
|
package/README.md
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# minigraf (Node.js)
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/minigraf)
|
|
4
|
-
[](https://github.com/project-minigraf/minigraf#license)
|
|
5
|
-
|
|
6
|
-
> Embedded bi-temporal graph database for Node.js — Datalog queries, time travel, native addon
|
|
7
|
-
|
|
8
|
-
Minigraf for Node.js: a native addon (no WASM, full file I/O) with pre-built binaries for Linux x86_64/aarch64, macOS universal2, and Windows x86_64. No build step required.
|
|
9
|
-
|
|
10
|
-
## Install
|
|
11
|
-
|
|
12
|
-
```sh
|
|
13
|
-
npm install minigraf
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Quick start
|
|
17
|
-
|
|
18
|
-
```typescript
|
|
19
|
-
import { MiniGrafDb } from 'minigraf';
|
|
20
|
-
|
|
21
|
-
// File-backed database
|
|
22
|
-
const db = new MiniGrafDb('myapp.graph');
|
|
23
|
-
|
|
24
|
-
// In-memory database (ephemeral / testing)
|
|
25
|
-
const mem = MiniGrafDb.inMemory();
|
|
26
|
-
|
|
27
|
-
// Transact facts
|
|
28
|
-
const r = JSON.parse(db.execute(
|
|
29
|
-
'(transact [[:alice :person/name "Alice"] [:alice :person/age 30]])'
|
|
30
|
-
));
|
|
31
|
-
// { "transacted": 1 }
|
|
32
|
-
|
|
33
|
-
// Query with Datalog
|
|
34
|
-
const q = JSON.parse(db.execute(
|
|
35
|
-
'(query [:find ?name ?age :where [?e :person/name ?name] [?e :person/age ?age]])'
|
|
36
|
-
));
|
|
37
|
-
// { "variables": ["?name", "?age"], "results": [["Alice", 30]] }
|
|
38
|
-
|
|
39
|
-
// Time travel — state as of transaction 1
|
|
40
|
-
const snap = JSON.parse(db.execute(
|
|
41
|
-
'(query [:find ?age :as-of 1 :where [:alice :person/age ?age]])'
|
|
42
|
-
));
|
|
43
|
-
|
|
44
|
-
// Flush dirty pages to disk
|
|
45
|
-
db.checkpoint();
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
## Response shapes
|
|
49
|
-
|
|
50
|
-
| Command | JSON |
|
|
51
|
-
|---|---|
|
|
52
|
-
| `transact` | `{"transacted": <tx_count>}` |
|
|
53
|
-
| `retract` | `{"retracted": <tx_count>}` |
|
|
54
|
-
| `query` | `{"variables": [...], "results": [[...]]}` |
|
|
55
|
-
| `rule` | `{"ok": true}` |
|
|
56
|
-
|
|
57
|
-
## Links
|
|
58
|
-
|
|
59
|
-
- [Full Node.js integration guide](https://github.com/project-minigraf/minigraf/wiki/Use-Cases#nodejs--typescript)
|
|
60
|
-
- [Repository](https://github.com/project-minigraf/minigraf)
|
|
61
|
-
- [Datalog Reference](https://github.com/project-minigraf/minigraf/wiki/Datalog-Reference)
|
|
62
|
-
|
|
63
|
-
## License
|
|
64
|
-
|
|
65
|
-
MIT OR Apache-2.0
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|