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