forked from libp2p/rust-libp2p
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9a85209
commit 4399bab
Showing
24 changed files
with
81 additions
and
99 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
name = "autonatv2" | ||
version = "0.1.0" | ||
edition = "2021" | ||
rust-version.workspace = true | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
|
||
[lints] | ||
workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fn main() { | ||
println!("Hello, world!"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,39 +3,54 @@ name = "libp2p-autonat" | |
edition = "2021" | ||
rust-version = { workspace = true } | ||
description = "NAT and firewall detection for libp2p" | ||
version = "0.12.0" | ||
version = "0.13.0" | ||
authors = ["David Craven <[email protected]>", "Elena Frank <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
keywords = ["peer-to-peer", "libp2p", "networking"] | ||
categories = ["network-programming", "asynchronous"] | ||
|
||
|
||
[dependencies] | ||
async-trait = "0.1" | ||
asynchronous-codec = { workspace = true } | ||
bytes = { version = "1", optional = true } | ||
either = { version = "1.9.0", optional = true } | ||
futures = "0.3" | ||
futures-bounded = { workspace = true, optional = true } | ||
futures-timer = "3.0" | ||
instant = "0.1" | ||
libp2p-core = { workspace = true } | ||
libp2p-swarm = { workspace = true } | ||
libp2p-request-response = { workspace = true } | ||
libp2p-identity = { workspace = true } | ||
libp2p-request-response = { workspace = true, optional = true } | ||
libp2p-swarm = { workspace = true } | ||
quick-protobuf = "0.8" | ||
quick-protobuf-codec = { workspace = true } | ||
rand = "0.8" | ||
rand_core = { version = "0.6", optional = true } | ||
thiserror = { version = "1.0.52", optional = true } | ||
tracing = "0.1.37" | ||
quick-protobuf-codec = { workspace = true } | ||
asynchronous-codec = { workspace = 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"] | ||
v2 = ["dep:bytes", "dep:either", "dep:futures-bounded", "dep:thiserror", "dep:void", "dep:rand_core"] | ||
|
||
[lints] | ||
workspace = true | ||
|
||
# Passing arguments to the docsrs builder in order to properly document cfg's. | ||
# More information: https://docs.rs/about/builds#cross-compiling | ||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
rustc-args = ["--cfg", "docsrs"] | ||
|
||
[lints] | ||
workspace = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
#[cfg(feature = "v1")] | ||
pub mod v1; | ||
|
||
#[cfg(feature = "v2")] | ||
pub mod v2; | ||
|
||
#[cfg(feature = "v1")] | ||
#[deprecated(since = "0.13.0", note = "Please use `v1` module instead.")] | ||
pub use v1::*; | ||
|
||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.