# 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 = "rust-p2p-core" version = "0.1.12" description = "Simple, fast and easy Nat traversal for peer-to-peer" readme = "README.md" license = "Apache-2.0" repository = "https://github.com/rustp2p/rustp2p" [[example]] name = "server" path = "examples/server.rs" [[example]] name = "client" path = "examples/client.rs" [dependencies.anyhow] version = "1" [dependencies.async-broadcast] version = "0.7" [dependencies.async-io] version = "2.3" optional = true [dependencies.async-lock] version = "3.4" [dependencies.async-scoped] version = "0.9" optional = true [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.dyn-clone] version = "1.0" [dependencies.futures] version = "0.3" [dependencies.futures-util] version = "0.3" optional = true [dependencies.libc] version = "0.2" [dependencies.log] version = "0.4" [dependencies.network-interface] version = "2.0" [dependencies.parking_lot] version = "0.12" [dependencies.rand] version = "0.8" [dependencies.serde] version = "1.0" features = ["derive"] [dependencies.socket2] version = "0.5" features = ["all"] [dependencies.stun-format] version = "1.0" features = [ "fmt", "rfc3489", ] [dependencies.tachyonix] version = "0.3" [dependencies.thiserror] version = "2" [dependencies.tokio] version = "1.42" features = ["full"] optional = true [dev-dependencies.bytes] version = "1.9" [dev-dependencies.clap] version = "=4.0.32" features = ["derive"] [dev-dependencies.ctrlc2] version = "3.5" [dev-dependencies.env_logger] version = "0.11.5" [dev-dependencies.log] version = "0.4.22" [dev-dependencies.serde] version = "1.0" features = ["derive"] [dev-dependencies.serde_json] version = "1.0" [dev-dependencies.tokio] version = "1.42" features = ["full"] [features] default = ["use-tokio"] use-async-std = [ "async-std", "async-io", "futures-util", "async-scoped/use-async-std", ] use-tokio = [ "tokio", "async-scoped/use-tokio", ] [target."cfg(target_os = \"windows\")".dependencies.windows-sys] version = "0.59.0" features = [ "Win32_Foundation", "Win32_NetworkManagement", "Win32_NetworkManagement_IpHelper", "Win32_Networking_WinSock", "Win32_System_IO", "Win32_System_Threading", "Win32_System_WindowsProgramming", ]