sn-node daemon [--config node.toml] [--check] runs one household node from a validated TOML config: generates the yggdrasil config with a persistent node key in the state dir (PrivateKeyPath takes precedence per the yggdrasil config reference, so the identity survives restarts), waits for the overlay address via the admin socket, then serves the sn-exit proxy in-process (or runs overlay-only in leech mode). SIGINT/SIGTERM stop the accept loop, SIGTERM the sidecar (5s grace, then SIGKILL); unexpected sidecar death shuts the daemon down with an error. sn-exit gains an additive serve_until() with a shutdown future; serve() keeps its behavior. Workspace: tokio gains process+signal, serde/toml added. 73 tests green, clippy clean.
36 lines
964 B
TOML
36 lines
964 B
TOML
[workspace]
|
|
resolver = "2"
|
|
members = ["crates/sn-fetch", "crates/sn-node", "crates/sn-exit", "crates/sn-fair"]
|
|
|
|
[workspace.package]
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
license = "AGPL-3.0-only"
|
|
|
|
[workspace.lints.rust]
|
|
unsafe_code = "deny" # also #![forbid(unsafe_code)] in every crate root
|
|
|
|
[workspace.lints.clippy]
|
|
all = { level = "deny", priority = -1 }
|
|
unwrap_used = "deny"
|
|
expect_used = "deny"
|
|
panic = "deny"
|
|
unreachable = "deny"
|
|
|
|
[workspace.dependencies]
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util", "net", "time", "process", "signal"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
toml = "0.8"
|
|
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
|
|
sha2 = "0.10"
|
|
hex = "0.4"
|
|
thiserror = "2"
|
|
tempfile = "3"
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
clap = { version = "4", features = ["derive"] }
|
|
|
|
[profile.release]
|
|
lto = "thin"
|