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