@flowscripter/template-bun-rust-library 1.2.60 → 1.3.1
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/README.md +2 -0
- package/dist/package.json +3 -3
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +1 -0
- package/package.json +3 -3
- package/src/lib.ts +1 -0
package/README.md
CHANGED
|
@@ -78,6 +78,8 @@ classDiagram
|
|
|
78
78
|
|
|
79
79
|
If none works it throws a `LibraryNotFoundError` listing the candidates it tried. The release workflow updates `ffiLibBaseUri` to point at the release assets.
|
|
80
80
|
|
|
81
|
+
`src/lib.ts` also sets `verifySha256: true`, so the downloaded library is verified. The release workflow publishes a `<asset>.shasum` (sha256) next to each native library asset. A download is checked against it before it is installed, and its digest is stored beside the installed copy in `~/.flowscripter/lib` as a `.shasum` file. After that check the loader writes a `.verified` stamp with the file's size, mtime and inode, and later starts only compare the file with the stamp; the installed copy is hashed again only when the stamp is missing or differs. If that check fails, the library is downloaded again once, and if that download also fails verification the loader throws instead of loading an unverified file. The stamp catches re-installs, partial writes and corruption, not a deliberate edit that restores the mtime. The local `target/release` build is not verified.
|
|
82
|
+
|
|
81
83
|
### API
|
|
82
84
|
|
|
83
85
|
Link to auto-generated API docs:
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowscripter/template-bun-rust-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Project template for a Rust library with Bun FFI bindings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"build": "tsc -p tsconfig.build.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@flowscripter/bun-ffi-loader": "^1.
|
|
44
|
+
"@flowscripter/bun-ffi-loader": "^1.2.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/bun": "^1.4.5",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"typescript": "^7.0.2"
|
|
53
53
|
},
|
|
54
|
-
"ffiLibBaseUri": "https://github.com/flowscripter/template-bun-rust-library/releases/download/v1.
|
|
54
|
+
"ffiLibBaseUri": "https://github.com/flowscripter/template-bun-rust-library/releases/download/v1.3.0",
|
|
55
55
|
"typedocOptions": {
|
|
56
56
|
"readme": "none",
|
|
57
57
|
"exclude": [
|
package/dist/src/lib.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lib.d.ts","sourceRoot":"","sources":["../../src/lib.ts"],"names":[],"mappings":"AAsBA;;GAEG;AACH,wBAAgB,KAAK,IAAI,IAAI,CAE5B"}
|
package/dist/src/lib.js
CHANGED
|
@@ -10,6 +10,7 @@ const { symbols: { add }, } = await loadLibrary("flowscripter_template_bun_rust_
|
|
|
10
10
|
}, {
|
|
11
11
|
baseUri: packageJson.ffiLibBaseUri,
|
|
12
12
|
releaseDir: path.join(import.meta.dir, "..", "target", "release"),
|
|
13
|
+
verifySha256: true,
|
|
13
14
|
});
|
|
14
15
|
/**
|
|
15
16
|
* Adds 2 and 2 and logs the result as "World 4"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowscripter/template-bun-rust-library",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Project template for a Rust library with Bun FFI bindings",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bun",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"build": "tsc -p tsconfig.build.json"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@flowscripter/bun-ffi-loader": "^1.
|
|
44
|
+
"@flowscripter/bun-ffi-loader": "^1.2.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/bun": "^1.4.5",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"typescript": "^7.0.2"
|
|
53
53
|
},
|
|
54
|
-
"ffiLibBaseUri": "https://github.com/flowscripter/template-bun-rust-library/releases/download/v1.
|
|
54
|
+
"ffiLibBaseUri": "https://github.com/flowscripter/template-bun-rust-library/releases/download/v1.3.1",
|
|
55
55
|
"typedocOptions": {
|
|
56
56
|
"readme": "none",
|
|
57
57
|
"exclude": [
|