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,6 +3,7 @@ name = "ipfs-private"
version = "0.1.0"
edition = "2021"
publish = false
license = "MIT"
[dependencies]
async-std = { version = "1.12", features = ["attributes"] }
@ -10,5 +11,5 @@ async-trait = "0.1"
either = "1.8"
env_logger = "0.10"
futures = "0.3.26"
libp2p = { path = "../../", features = ["async-std", "gossipsub", "dns", "identify", "kad", "macros", "mplex", "noise", "ping", "pnet", "tcp", "websocket", "yamux"] }
libp2p = { path = "../../libp2p", features = ["async-std", "gossipsub", "dns", "identify", "kad", "macros", "mplex", "noise", "ping", "pnet", "tcp", "websocket", "yamux"] }
multiaddr = { version = "0.17.0" }