# 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 = "libp2p-autonat" version = "0.13.0" authors = [ "David Craven ", "Elena Frank ", "Hannes Furmans ", ] description = "NAT and firewall detection for libp2p" keywords = [ "peer-to-peer", "libp2p", "networking", ] categories = [ "network-programming", "asynchronous", ] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" [package.metadata.docs.rs] all-features = true [dependencies.async-trait] version = "0.1" optional = true [dependencies.asynchronous-codec] version = "0.7.0" [dependencies.bytes] version = "1" optional = true [dependencies.either] version = "1.9.0" optional = true [dependencies.futures] version = "0.3.30" [dependencies.futures-bounded] version = "0.2.4" optional = true [dependencies.futures-timer] version = "3.0" [dependencies.libp2p-core] version = "0.42.0" [dependencies.libp2p-identity] version = "0.2.9" [dependencies.libp2p-request-response] version = "0.27.0" optional = true [dependencies.libp2p-swarm] version = "0.45.0" [dependencies.quick-protobuf] version = "0.8" [dependencies.quick-protobuf-codec] version = "0.3.1" [dependencies.rand] version = "0.8" [dependencies.rand_core] version = "0.6" optional = true [dependencies.thiserror] version = "1.0.52" optional = true [dependencies.tracing] version = "0.1.37" [dependencies.void] version = "1" optional = true [dependencies.web-time] version = "1.1.0" optional = true [dev-dependencies.async-std] version = "1.10" features = ["attributes"] [dev-dependencies.libp2p-identify] version = "0.45.0" [dev-dependencies.libp2p-swarm] version = "0.45.0" features = ["macros"] [dev-dependencies.tokio] version = "1" features = [ "macros", "rt", "sync", ] [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [features] default = [ "v1", "v2", ] v1 = [ "dep:libp2p-request-response", "dep:web-time", "dep:async-trait", ] v2 = [ "dep:bytes", "dep:either", "dep:futures-bounded", "dep:thiserror", "dep:void", "dep:rand_core", ] [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"