- Add reloadAuth(), reloadForwarding(), reloadAll() methods to AlknetServer - Add NAPI type definitions: AuthConfigNapi, ForwardingPolicyConfig, ForwardingRuleConfig - Refactor NapiServerHandler to use ArcSwap<DynamicConfig> for atomic config swaps - Add ConfigReloadHandle::dynamic_arc() accessor for sharing ArcSwap between NAPI and accept loop - Add ipnetwork dependency to alknet-napi for TargetPattern CIDR parsing - Add builder functions for AuthPolicy and ForwardingPolicy from NAPI config types - All swaps are atomic via ArcSwap per ADR-030
25 lines
687 B
TOML
25 lines
687 B
TOML
[package]
|
|
name = "alknet-napi"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "Node.js native addon for Alknet via napi-rs: connect() and serve() SSH tunnel functions"
|
|
repository.workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[dependencies]
|
|
alknet-core = { path = "../alknet-core", features = ["tls", "iroh"] }
|
|
napi = { version = "3", features = ["async", "error_anyhow"] }
|
|
napi-derive = "3"
|
|
tokio = { version = "1", features = ["io-util", "sync", "rt", "macros", "net", "time", "signal"] }
|
|
russh = "0.49"
|
|
async-trait = "0.1"
|
|
rustls-pemfile = "2"
|
|
rustls-pki-types = "1"
|
|
iroh = "0.34"
|
|
ipnetwork = "0.21"
|
|
url = "2"
|
|
arc-swap = "1"
|
|
tracing = "0.1" |