# 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" rust-version = "1.75.0" name = "ant-libp2p-swarm" version = "0.45.2" authors = ["Parity Technologies "] build = false autolib = false autobins = false autoexamples = false autotests = false autobenches = false description = "The libp2p swarm" readme = false keywords = [ "peer-to-peer", "libp2p", "networking", ] categories = [ "network-programming", "asynchronous", ] license = "MIT" repository = "https://github.com/maidsafe/ant-rust-libp2p" [package.metadata.docs.rs] all-features = true [lib] name = "ant_libp2p_swarm" path = "src/lib.rs" [[test]] name = "connection_close" path = "tests/connection_close.rs" [[test]] name = "listener" path = "tests/listener.rs" [[test]] name = "swarm_derive" path = "tests/swarm_derive.rs" required-features = ["macros"] [[bench]] name = "connection_handler" path = "benches/connection_handler.rs" harness = false [dependencies.ant-libp2p-core] version = "0.42.1" [dependencies.either] version = "1.11.0" [dependencies.fnv] version = "1.0" [dependencies.futures] version = "0.3.30" [dependencies.futures-timer] version = "3.0.3" [dependencies.getrandom] version = "0.2.15" features = ["js"] optional = true [dependencies.libp2p-identity] version = "0.2.10" [dependencies.libp2p-swarm-derive] version = "=0.35.0" optional = true [dependencies.lru] version = "0.12.3" [dependencies.multistream-select] version = "0.13.0" [dependencies.once_cell] version = "1.19.0" [dependencies.rand] version = "0.8" [dependencies.smallvec] version = "1.13.2" [dependencies.tracing] version = "0.1.37" [dependencies.wasm-bindgen-futures] version = "0.4.42" optional = true [dependencies.web-time] version = "1.1.0" [dev-dependencies.async-std] version = "1.6.2" features = ["attributes"] [dev-dependencies.criterion] version = "0.5" features = ["async_tokio"] [dev-dependencies.either] version = "1.11.0" [dev-dependencies.futures] version = "0.3.30" [dev-dependencies.libp2p-identity] version = "0.2.10" features = ["ed25519"] [dev-dependencies.once_cell] version = "1.19.0" [dev-dependencies.tokio] version = "1.38" features = [ "time", "rt", "macros", "rt-multi-thread", ] default-features = false [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [dev-dependencies.trybuild] version = "1.0.95" [features] async-std = ["dep:async-std"] macros = ["dep:libp2p-swarm-derive"] tokio = ["dep:tokio"] wasm-bindgen = [ "dep:wasm-bindgen-futures", "dep:getrandom", ] [target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies.async-std] version = "1.6.2" optional = true [target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies.tokio] version = "1.38" features = ["rt"] optional = true default-features = false [lints.clippy] dbg_macro = "warn" manual_let_else = "warn" type_complexity = "allow" unnecessary_wraps = "warn" used_underscore_binding = "warn" [lints.clippy.pedantic] level = "allow" priority = -1 [lints.rust] unreachable_pub = "warn"