mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-05-28 02:01:20 +00:00
Previously, we would specify the version and path of our workspace dependencies in each of our crates. This is error prone as https://github.com/libp2p/rust-libp2p/pull/3658#discussion_r1153278072 for example shows. Problems like these happened in the past too. There is no need for us to ever depend on a earlier version than the most current one in our crates. It thus makes sense that we manage this version in a single place. Cargo supports a feature called "workspace inheritance" which allows us to share a dependency declaration across a workspace and inherit it with `{ workspace = true }`. We do this for all our workspace dependencies and for the MSRV. Resolves #3787. Pull-Request: #3715.
22 lines
681 B
TOML
22 lines
681 B
TOML
[package]
|
|
name = "libp2p-allow-block-list"
|
|
edition = "2021"
|
|
rust-version = { workspace = true }
|
|
description = "Allow/block list connection management for libp2p."
|
|
version = "0.2.0"
|
|
license = "MIT"
|
|
repository = "https://github.com/libp2p/rust-libp2p"
|
|
keywords = ["peer-to-peer", "libp2p", "networking"]
|
|
categories = ["network-programming", "asynchronous"]
|
|
|
|
[dependencies]
|
|
libp2p-core = { workspace = true }
|
|
libp2p-swarm = { workspace = true }
|
|
libp2p-identity = { workspace = true, features = ["peerid"] }
|
|
void = "1"
|
|
|
|
[dev-dependencies]
|
|
async-std = { version = "1.12.0", features = ["attributes"] }
|
|
libp2p-swarm-derive = { workspace = true }
|
|
libp2p-swarm-test = { workspace = true }
|