From 9f63a0a69e3a2585a2a6f8907466eaffe4b26943 Mon Sep 17 00:00:00 2001 From: Max Inden Date: Mon, 20 Mar 2023 18:49:35 +0100 Subject: [PATCH] feat(swarm-test): allow publishing to crates.io Allows folks like @bajtos to use the crate, see https://github.com/filecoin-station/zinnia/pull/85. I opted for not exposing the crate through the `libp2p` meta crate as it is a testing tool only. @thomas let me know if you prefer me to do so. Pull-Request: #3629. --- Cargo.lock | 1 - protocols/perf/Cargo.toml | 3 +-- swarm-test/CHANGELOG.md | 3 +++ swarm-test/Cargo.toml | 6 +++++- 4 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 swarm-test/CHANGELOG.md diff --git a/Cargo.lock b/Cargo.lock index 3a5aea91..67847ae9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2572,7 +2572,6 @@ dependencies = [ "libp2p-dns", "libp2p-identity", "libp2p-noise", - "libp2p-plaintext", "libp2p-quic", "libp2p-swarm", "libp2p-swarm-test", diff --git a/protocols/perf/Cargo.toml b/protocols/perf/Cargo.toml index 84c1c3cb..fb69cc03 100644 --- a/protocols/perf/Cargo.toml +++ b/protocols/perf/Cargo.toml @@ -23,7 +23,6 @@ libp2p-identity = { version = "0.1.0", path = "../../identity" } libp2p-noise = { version = "0.42.0", path = "../../transports/noise" } libp2p-quic = { version = "0.7.0-alpha.2", path = "../../transports/quic", features = ["async-std"] } libp2p-swarm = { version = "0.42.0", path = "../../swarm", features = ["macros", "async-std"] } -libp2p-swarm-test = { path = "../../swarm-test"} libp2p-tcp = { version = "0.39.0", path = "../../transports/tcp", features = ["async-io"] } libp2p-yamux = { version = "0.43.0", path = "../../muxers/yamux" } log = "0.4" @@ -32,7 +31,7 @@ void = "1" [dev-dependencies] rand = "0.8" -libp2p-plaintext = { path = "../../transports/plaintext" } +libp2p-swarm-test = { path = "../../swarm-test"} # Passing arguments to the docsrs builder in order to properly document cfg's. # More information: https://docs.rs/about/builds#cross-compiling diff --git a/swarm-test/CHANGELOG.md b/swarm-test/CHANGELOG.md new file mode 100644 index 00000000..d1e4ec5a --- /dev/null +++ b/swarm-test/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 - unreleased + +- Initial release. diff --git a/swarm-test/Cargo.toml b/swarm-test/Cargo.toml index bf6fe9d4..373454c0 100644 --- a/swarm-test/Cargo.toml +++ b/swarm-test/Cargo.toml @@ -2,8 +2,12 @@ name = "libp2p-swarm-test" version = "0.1.0" edition = "2021" +rust-version = "1.65.0" license = "MIT" -publish = false +description = "Test framework for code building on top of libp2p-swarm" +repository = "https://github.com/libp2p/rust-libp2p" +keywords = ["peer-to-peer", "libp2p", "networking"] +categories = ["network-programming", "asynchronous"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html