@diaryx/wasm-node 1.4.0-dev.771786b → 1.4.0-dev.8410f59
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.d.ts +3 -3
- package/diaryx_wasm.js +7 -7
- package/diaryx_wasm_bg.wasm +0 -0
- package/diaryx_wasm_bg.wasm.d.ts +3 -3
- 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.d.ts
CHANGED
|
@@ -307,9 +307,9 @@ export interface InitOutput {
|
|
|
307
307
|
readonly today_formatted: (a: number, b: number) => [number, number];
|
|
308
308
|
readonly init: () => void;
|
|
309
309
|
readonly diaryxbackend_isCrdtEnabled: (a: number) => number;
|
|
310
|
-
readonly
|
|
311
|
-
readonly
|
|
312
|
-
readonly
|
|
310
|
+
readonly wasm_bindgen__closure__destroy__hc0ecfed3f77ea255: (a: number, b: number) => void;
|
|
311
|
+
readonly wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e: (a: number, b: number, c: any) => [number, number];
|
|
312
|
+
readonly wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930: (a: number, b: number, c: any, d: any) => void;
|
|
313
313
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
314
314
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
315
315
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/diaryx_wasm.js
CHANGED
|
@@ -607,7 +607,7 @@ function __wbg_get_imports() {
|
|
|
607
607
|
const a = state0.a;
|
|
608
608
|
state0.a = 0;
|
|
609
609
|
try {
|
|
610
|
-
return
|
|
610
|
+
return wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930(a, state0.b, arg0, arg1);
|
|
611
611
|
} finally {
|
|
612
612
|
state0.a = a;
|
|
613
613
|
}
|
|
@@ -697,8 +697,8 @@ 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:
|
|
701
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
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
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hc0ecfed3f77ea255, wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e);
|
|
702
702
|
return ret;
|
|
703
703
|
},
|
|
704
704
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -737,15 +737,15 @@ function __wbg_get_imports() {
|
|
|
737
737
|
};
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
-
function
|
|
741
|
-
const ret = wasm.
|
|
740
|
+
function wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e(arg0, arg1, arg2) {
|
|
741
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e(arg0, arg1, arg2);
|
|
742
742
|
if (ret[1]) {
|
|
743
743
|
throw takeFromExternrefTable0(ret[0]);
|
|
744
744
|
}
|
|
745
745
|
}
|
|
746
746
|
|
|
747
|
-
function
|
|
748
|
-
wasm.
|
|
747
|
+
function wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930(arg0, arg1, arg2, arg3) {
|
|
748
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930(arg0, arg1, arg2, arg3);
|
|
749
749
|
}
|
|
750
750
|
|
|
751
751
|
const DiaryxBackendFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/diaryx_wasm_bg.wasm
CHANGED
|
Binary file
|
package/diaryx_wasm_bg.wasm.d.ts
CHANGED
|
@@ -22,9 +22,9 @@ export const now_timestamp: () => [number, number];
|
|
|
22
22
|
export const today_formatted: (a: number, b: number) => [number, number];
|
|
23
23
|
export const init: () => void;
|
|
24
24
|
export const diaryxbackend_isCrdtEnabled: (a: number) => number;
|
|
25
|
-
export const
|
|
26
|
-
export const
|
|
27
|
-
export const
|
|
25
|
+
export const wasm_bindgen__closure__destroy__hc0ecfed3f77ea255: (a: number, b: number) => void;
|
|
26
|
+
export const wasm_bindgen__convert__closures_____invoke__h2b2515b80a4dcf5e: (a: number, b: number, c: any) => [number, number];
|
|
27
|
+
export const wasm_bindgen__convert__closures_____invoke__h229fb34ceaba2930: (a: number, b: number, c: any, d: any) => void;
|
|
28
28
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
29
29
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
30
30
|
export const __wbindgen_exn_store: (a: number) => void;
|
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.8410f59",
|
|
6
6
|
"license": "SEE LICENSE IN ../../LICENSE.md",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|