[package]
edition = "2021"
rust-version = "1.83"
name = "thenodes"
version = "0.4.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "TheNodes is a modular, plugin-driven P2P node framework for Rust, supporting node-embedded plugins (NEP) and core-as-a-library (CAL) modes with async-first APIs."
homepage = "https://thenodes.dev"
documentation = "https://docs.rs/thenodes"
readme = "README.md"
keywords = [
"p2p",
"networking",
"async",
"plugins",
"security",
]
categories = [
"network-programming",
"asynchronous",
"cryptography",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/TheNodesDev/TheNodes"
[features]
default = []
noise = ["snow"]
upnp = ["dep:igd-next"]
[lib]
name = "thenodes"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[bin]]
name = "thenodes"
path = "src/main.rs"
[[bin]]
name = "thenodes-cert"
path = "src/bin/thenodes-cert.rs"
[[bin]]
name = "thenodes-ctl"
path = "src/bin/thenodes-ctl.rs"
[[example]]
name = "simple_node"
path = "examples/simple_node.rs"
[[test]]
name = "connection_lifecycle"
path = "tests/connection_lifecycle.rs"
[[test]]
name = "connection_policy"
path = "tests/connection_policy.rs"
[[test]]
name = "delivery_semantics"
path = "tests/delivery_semantics.rs"
[[test]]
name = "kvstore_plugin_example"
path = "tests/kvstore_plugin_example.rs"
[[test]]
name = "mtls"
path = "tests/mtls.rs"
[[test]]
name = "nat_traversal"
path = "tests/nat_traversal.rs"
[[test]]
name = "node_id_uniqueness"
path = "tests/node_id_uniqueness.rs"
[[test]]
name = "noise_trust"
path = "tests/noise_trust.rs"
[[test]]
name = "peer_store_cap"
path = "tests/peer_store_cap.rs"
[[test]]
name = "peer_store_persistence"
path = "tests/peer_store_persistence.rs"
[[test]]
name = "peer_store_ttl"
path = "tests/peer_store_ttl.rs"
[[test]]
name = "pins"
path = "tests/pins.rs"
[[test]]
name = "plugin_context_data_dir"
path = "tests/plugin_context_data_dir.rs"
[[test]]
name = "plugin_dispatch"
path = "tests/plugin_dispatch.rs"
[[test]]
name = "promotion_event"
path = "tests/promotion_event.rs"
[[test]]
name = "qos_behavior"
path = "tests/qos_behavior.rs"
[[test]]
name = "real_two_node_relay"
path = "tests/real_two_node_relay.rs"
[[test]]
name = "relay_helpers"
path = "tests/relay_helpers.rs"
[[test]]
name = "relay_notify"
path = "tests/relay_notify.rs"
[[test]]
name = "relay_store_forward"
path = "tests/relay_store_forward.rs"
[[test]]
name = "relay_ttl_unbind"
path = "tests/relay_ttl_unbind.rs"
[[test]]
name = "reliable_ack"
path = "tests/reliable_ack.rs"
[[test]]
name = "reliable_retry"
path = "tests/reliable_retry.rs"
[[test]]
name = "secure_channel_selection"
path = "tests/secure_channel_selection.rs"
[[test]]
name = "trust_certificate_validation"
path = "tests/trust_certificate_validation.rs"
[[test]]
name = "trust_policy"
path = "tests/trust_policy.rs"
[[test]]
name = "udp_transport"
path = "tests/udp_transport.rs"
[[test]]
name = "utils_naming"
path = "tests/utils_naming.rs"
[dependencies.anyhow]
version = "1"
[dependencies.async-trait]
version = "0.1"
[dependencies.base16ct]
version = "0.2"
features = ["alloc"]
[dependencies.base64]
version = "0.21"
[dependencies.clap]
version = "4"
features = ["derive"]
[dependencies.deunicode]
version = "1"
[dependencies.env_logger]
version = "0.11"
[dependencies.futures]
version = "0.3"
[dependencies.hex]
version = "0.4"
[dependencies.igd-next]
version = "=0.16.1"
features = ["aio_tokio"]
optional = true
[dependencies.libloading]
version = "0.7"
[dependencies.log]
version = "0.4"
[dependencies.once_cell]
version = "1.19"
[dependencies.parking_lot]
version = "0.12"
[dependencies.pem]
version = "3"
[dependencies.rand]
version = "0.8"
features = [
"std",
"small_rng",
]
[dependencies.rcgen]
version = "0.13"
[dependencies.rustls]
version = "0.22"
[dependencies.rustls-pemfile]
version = "1.0"
[dependencies.rustyline]
version = "12"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.10"
[dependencies.snow]
version = "0.9"
optional = true
[dependencies.tokio]
version = "1.35"
features = ["full"]
[dependencies.tokio-rustls]
version = "0.25"
[dependencies.toml]
version = "0.8"
[dependencies.uuid]
version = "1.10"
features = [
"v4",
"v7",
]
[dependencies.webpki]
version = "0.102"
package = "rustls-webpki"
[dependencies.webpki-roots]
version = "0.25"
[dependencies.x509-parser]
version = "0.16"
features = ["verify"]
[dev-dependencies.tempfile]
version = "3.10"