@anvailabs/sandhi 0.5.1 → 0.6.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/contracts.d.ts +2 -1
- package/index.d.ts +4 -0
- package/package.json +18 -3
- package/Cargo.lock +0 -1625
- package/Cargo.toml +0 -38
- package/__test__/gateway.test.mjs +0 -860
- package/__test__/typed_error.test.mjs +0 -48
- package/artifacts/sandhi.darwin-arm64.node +0 -0
- package/artifacts/sandhi.linux-x64-gnu.node +0 -0
- package/build.rs +0 -3
- package/npm/darwin-arm64/package.json +0 -19
- package/npm/darwin-arm64/sandhi.darwin-arm64.node +0 -0
- package/npm/linux-x64-gnu/package.json +0 -22
- package/npm/linux-x64-gnu/sandhi.linux-x64-gnu.node +0 -0
- package/src/lib.rs +0 -834
package/Cargo.toml
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
[package]
|
|
2
|
-
name = "sandhi-node"
|
|
3
|
-
description = "napi binding for Sandhi (published to npm as @anvai-labs/sandhi)."
|
|
4
|
-
version = "0.0.0"
|
|
5
|
-
edition = "2021"
|
|
6
|
-
license = "Apache-2.0"
|
|
7
|
-
repository = "https://github.com/anvai-labs/sandhi"
|
|
8
|
-
publish = false
|
|
9
|
-
|
|
10
|
-
[lib]
|
|
11
|
-
crate-type = ["cdylib"]
|
|
12
|
-
|
|
13
|
-
[dependencies]
|
|
14
|
-
# tokio_rt: lets `#[napi] async fn` bridge a Rust future to a JS Promise on napi's own tokio
|
|
15
|
-
# runtime (the napi analogue of PyO3's pyo3-async-runtimes) — powers the transport surface.
|
|
16
|
-
napi = { version = "2", default-features = false, features = ["napi4", "tokio_rt"] }
|
|
17
|
-
napi-derive = "2"
|
|
18
|
-
sandhi-core = { path = "../../crates/sandhi-core" }
|
|
19
|
-
serde_json = "1"
|
|
20
|
-
reqwest = { version = "0.12", default-features = false }
|
|
21
|
-
time = { version = "0.3", features = ["formatting"] }
|
|
22
|
-
|
|
23
|
-
# Transport binding (ADR-0047 D10 step 3c — napi/TS parity): expose sandhi-providers' async provider
|
|
24
|
-
# transport to Node. `tokio` (sync) supplies the mpsc channel that decouples the background stream
|
|
25
|
-
# driver from the JS-side pull; `futures-util` drives the Rust `Stream`.
|
|
26
|
-
sandhi-providers = { path = "../../crates/sandhi-providers" }
|
|
27
|
-
tokio = { version = "1", features = ["sync"] }
|
|
28
|
-
futures-util = "0.3"
|
|
29
|
-
|
|
30
|
-
[build-dependencies]
|
|
31
|
-
napi-build = "2"
|
|
32
|
-
|
|
33
|
-
[profile.release]
|
|
34
|
-
lto = true
|
|
35
|
-
strip = "symbols"
|
|
36
|
-
|
|
37
|
-
# Its OWN workspace root — built via napi, not the root `cargo build --workspace`.
|
|
38
|
-
[workspace]
|