# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "rustp2p" version = "0.1.18" description = "A decentralized p2p library powered by Rust, which is devoted to simple use. " readme = "README.md" license = "Apache-2.0" repository = "https://github.com/rustp2p/rustp2p" [[example]] name = "node" path = "examples/node.rs" [dependencies.anyhow] version = "1" [dependencies.async-io] version = "2.3" optional = true [dependencies.async-shutdown] version = "0.2" [dependencies.async-std] version = "1.13" optional = true [dependencies.async-trait] version = "0.1" [dependencies.bytes] version = "1.9" [dependencies.crossbeam-queue] version = "0.3" [dependencies.crossbeam-utils] version = "0.8" [dependencies.dashmap] version = "6.1" [dependencies.dns-parser] version = "0.8" [dependencies.futures-util] version = "0.3" optional = true [dependencies.log] version = "0.4" [dependencies.parking_lot] version = "0.12" [dependencies.rand] version = "0.8" [dependencies.ring] version = "0.17" optional = true [dependencies.rmp-serde] version = "1.3" [dependencies.rust-p2p-core] version = "0.1" default-features = false [dependencies.sha2] version = "0.10" [dependencies.tachyonix] version = "0.3" [dependencies.thiserror] version = "2" [dependencies.tokio] version = "1.42" features = ["full"] optional = true [dev-dependencies.async-std] version = "1.13.0" features = [ "attributes", "unstable", ] [dev-dependencies.clap] version = "=4.0.32" features = ["derive"] [dev-dependencies.ctrlc] version = "3.4.5" [dev-dependencies.ctrlc2] version = "3" features = ["termination"] [dev-dependencies.env_logger] version = "0.11.5" [dev-dependencies.log] version = "0.4.22" [dev-dependencies.pnet_packet] version = "0.35.0" [dev-dependencies.tokio] version = "1.42" features = ["full"] [dev-dependencies.tun-rs] version = "1.5" features = ["async_tokio"] [features] aes-gcm = ["ring"] chacha20-poly1305 = ["ring"] default = ["use-tokio"] use-async-std = [ "rust-p2p-core/use-async-std", "async-std", "async-io", "futures-util", ] use-tokio = [ "rust-p2p-core/use-tokio", "tokio", ]