@anvailabs/sandhi 0.5.0 → 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/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]