node-app-sdk-rust 7.7.13

Rust SDK for building Node-App native plugins (cdylib) — Lightning-powered marketplace nodes
Documentation
[package]
name = "node-app-sdk-rust"
# T125 — pre-v1 freeze marker. Bump to 1.0.0 once at least 2 first-party
# packages have proven the API surface in production.
version = "7.7.13"
edition = "2021"
rust-version = "1.75"
description = "Rust SDK for building Node-App native plugins (cdylib) — Lightning-powered marketplace nodes"
license = "MIT OR Apache-2.0"
repository = "https://github.com/econ-v1/node-app-distribution"
documentation = "https://docs.rs/node-app-sdk-rust"
homepage = "https://github.com/econ-v1/node-app-distribution"
readme = "README.md"
keywords = ["plugin", "ffi", "cdylib", "lightning", "node-app"]
categories = ["api-bindings", "development-tools::ffi"]

[dependencies]
# When published to crates.io, the path dependency falls back to the
# crates.io version pinned below. Keeping both means in-workspace builds
# use the local source while `cargo publish` resolves the registry entry.
node-app-api = { path = "../api", version = "7.7.13" }
serde = { workspace = true, features = ["derive"] }
serde_json = { workspace = true }
thiserror = { workspace = true }
# `tokio`: optional — powers `runtime::Builder` (feature `tokio`), the
# runtime wrapper whose threads are bound to the app (ADR-314). The feature
# turns on the drivers `enable_all()` promises: rt, timers and I/O.
tokio = { workspace = true, optional = true, features = ["rt", "rt-multi-thread", "sync", "time", "net"] }
# `pipe`: checks an fd the host hands over is an open socket before adopting it.
[target.'cfg(unix)'.dependencies]
libc = { workspace = true }

[features]
# ADR-314 contract C1: `thread::spawn` binds threads on every platform, but
# `runtime::Builder` (which wraps `tokio::runtime::Builder`) only exists when
# tokio is pulled in.
tokio = ["dep:tokio"]