@diaryx/wasm-node 1.4.0-dev.1c45c8d → 1.4.0-dev.588debc
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 +13 -5
- package/diaryx_wasm.js +1 -1
- package/diaryx_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,11 +4,7 @@ description: WASM bindings for diaryx_core
|
|
|
4
4
|
part_of: '[README](/crates/README.md)'
|
|
5
5
|
audience:
|
|
6
6
|
- developers
|
|
7
|
-
contents:
|
|
8
|
-
- '[README](/crates/diaryx_wasm/src/README.md)'
|
|
9
|
-
attachments:
|
|
10
|
-
- '[Cargo.toml](/crates/diaryx_wasm/Cargo.toml)'
|
|
11
|
-
- '[build.rs](/crates/diaryx_wasm/build.rs)'
|
|
7
|
+
contents: []
|
|
12
8
|
exclude:
|
|
13
9
|
- '*.lock'
|
|
14
10
|
- '*.db'
|
|
@@ -51,6 +47,18 @@ Current filesystem test suites live in:
|
|
|
51
47
|
which provides a unified command API (`execute()`/`executeJs()`) backed by native
|
|
52
48
|
browser storage (OPFS, IndexedDB, File System Access API).
|
|
53
49
|
|
|
50
|
+
The crate's `build.rs` is intentionally self-contained and does not link
|
|
51
|
+
`diaryx_core` as a native build-dependency; it only strips frontmatter from the
|
|
52
|
+
crate README before embedding it. That keeps `wasm-pack` host-tool builds
|
|
53
|
+
lighter and avoids pulling the full core crate into the native build-script
|
|
54
|
+
link step.
|
|
55
|
+
|
|
56
|
+
On macOS, the surrounding build should also prefer the Xcode host linker
|
|
57
|
+
(`/usr/bin/cc`) for native build scripts and proc-macro helpers. Mixing Rust's
|
|
58
|
+
host artifacts with a Nix cc-wrapper / Nix-provided libiconv without the
|
|
59
|
+
matching Apple SDK can break even third-party build scripts before wasm
|
|
60
|
+
compilation starts.
|
|
61
|
+
|
|
54
62
|
Sync and publish functionality are provided by Extism guest plugins
|
|
55
63
|
(`diaryx_sync.wasm`, `diaryx_publish.wasm`) loaded at runtime by the browser
|
|
56
64
|
plugin manager. CRDT commands are routed to the sync plugin via the frontend
|
package/diaryx_wasm.js
CHANGED
|
@@ -697,7 +697,7 @@ function __wbg_get_imports() {
|
|
|
697
697
|
console.warn(arg0, arg1, arg2, arg3);
|
|
698
698
|
},
|
|
699
699
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
700
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
700
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 439, function: Function { arguments: [Externref], shim_idx: 440, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
701
701
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc0ecfed3f77ea255, wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e);
|
|
702
702
|
return ret;
|
|
703
703
|
},
|
package/diaryx_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@diaryx/wasm-node",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "WebAssembly bindings for Diaryx core functionality",
|
|
5
|
-
"version": "1.4.0-dev.
|
|
5
|
+
"version": "1.4.0-dev.588debc",
|
|
6
6
|
"license": "SEE LICENSE IN ../../LICENSE.md",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|