Skip to content

Commit

Permalink
feat(swarm-test): allow publishing to crates.io
Browse files Browse the repository at this point in the history
Allows folks like @bajtos to use the crate, see filecoin-station/zinnia#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.
  • Loading branch information
mxinden committed Mar 20, 2023
1 parent 06d644b commit 9f63a0a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions protocols/perf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions swarm-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# 0.1.0 - unreleased

- Initial release.
6 changes: 5 additions & 1 deletion swarm-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9f63a0a

Please sign in to comment.