chore: move libp2p crate to a dedicated directory

Currently, our top-level `Cargo.toml` manifest represents a crate AND a workspace. This causes surprising behaviour (e.g. #2949) where we need to explicitly pass `--workpace` to every command to run it on the entire workspace and not just the meta crate.

My moving the meta crate into its own directory, the root manifest file is a virtual manifest only and thus, every `cargo` command will automatically default to running on the entire workspace.

On top of this, I personally find it easier to understand if workspace and crate manifests are not mixed.

Pull-Request: #3536.
This commit is contained in:
Thomas Eizinger
2023-03-09 00:20:39 +11:00
committed by GitHub
parent 645b229d43
commit d53cfed236
21 changed files with 197 additions and 160 deletions

View File

@ -3,11 +3,12 @@ name = "dcutr"
version = "0.1.0"
edition = "2021"
publish = false
license = "MIT"
[dependencies]
clap = { version = "4.1.6", features = ["derive"] }
env_logger = "0.10.0"
futures = "0.3.26"
futures-timer = "3.0"
libp2p = { path = "../../", features = ["async-std", "dns", "dcutr", "identify", "macros", "mplex", "noise", "ping", "relay", "rendezvous", "tcp", "tokio", "yamux"] }
libp2p = { path = "../../libp2p", features = ["async-std", "dns", "dcutr", "identify", "macros", "mplex", "noise", "ping", "relay", "rendezvous", "tcp", "tokio", "yamux"] }
log = "0.4"