@thingd/native 0.86.0 → 0.86.2
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 +3 -1
- package/index.js +9 -2
- package/package.json +1 -1
- package/prebuilds/darwin-arm64/thingd_native.node +0 -0
- package/prebuilds/darwin-x64/thingd_native.node +0 -0
- package/prebuilds/linux-arm64/thingd_native.node +0 -0
- package/prebuilds/linux-x64/thingd_native.node +0 -0
- package/prebuilds/win32-x64/thingd_native.node +0 -0
package/README.md
CHANGED
|
@@ -9,7 +9,9 @@ This package is an internal dependency of `@thingd/sdk` and provides the native
|
|
|
9
9
|
The addon uses ThingDB RAM for `:memory:` and empty-path operation without
|
|
10
10
|
creating temporary files. Real filesystem paths use the RocksDB durable backend
|
|
11
11
|
by default; set `THINGD_STORAGE_BACKEND=thingdb` to opt into the experimental
|
|
12
|
-
Rust-native durable backend.
|
|
12
|
+
Rust-native durable backend. Published packages include prebuilt native
|
|
13
|
+
artifacts for supported targets, so consumers normally do not install LLVM,
|
|
14
|
+
Clang, or RocksDB locally. The public SDK store contract remains unchanged.
|
|
13
15
|
|
|
14
16
|
The native open boundary accepts an optional 64-character hexadecimal key for
|
|
15
17
|
authenticated encrypted storage. The key is validated before opening the Rust
|
package/index.js
CHANGED
|
@@ -21,8 +21,15 @@ function resolveBinding() {
|
|
|
21
21
|
return { binding: require(prebuiltPath), path: prebuiltPath };
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
//
|
|
25
|
-
|
|
24
|
+
// A source build is intentionally not attempted at runtime. Published
|
|
25
|
+
// packages carry prebuilds; falling back to a native compilation here would
|
|
26
|
+
// produce opaque libclang/RocksDB failures for consumers.
|
|
27
|
+
const message =
|
|
28
|
+
`No prebuilt @thingd/native binary is available for ${platform}-${arch}. ` +
|
|
29
|
+
"Install a supported package target or build the native addon with the Thingd native toolchain.";
|
|
30
|
+
const error = new Error(message);
|
|
31
|
+
error.code = "THINGD_NATIVE_PREBUILD_MISSING";
|
|
32
|
+
throw error;
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
const { binding, path } = resolveBinding();
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|