mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-03 05:01:24 +00:00
Cargo.toml: Remove deprecated executor-specific features (#3001)
Co-authored-by: Max Inden <mail@max-inden.de>
This commit is contained in:
parent
c84a0fb86b
commit
3e4a0640fd
@ -43,6 +43,13 @@
|
|||||||
|
|
||||||
# `libp2p` facade crate
|
# `libp2p` facade crate
|
||||||
|
|
||||||
|
# 0.50.0 - [unreleased]
|
||||||
|
|
||||||
|
- Remove deprecated features: `tcp-tokio`, `mdns-tokio`, `dns-tokio`, `tcp-async-io`, `mdns-async-io`, `dns-async-std`.
|
||||||
|
See [PR 3001].
|
||||||
|
|
||||||
|
[PR 3001]: https://github.com/libp2p/rust-libp2p/pull/3001
|
||||||
|
|
||||||
# 0.49.0
|
# 0.49.0
|
||||||
|
|
||||||
- Remove default features. You need to enable required features explicitly now. As a quick workaround, you may want to use the
|
- Remove default features. You need to enable required features explicitly now. As a quick workaround, you may want to use the
|
||||||
|
14
Cargo.toml
14
Cargo.toml
@ -3,7 +3,7 @@ name = "libp2p"
|
|||||||
edition = "2021"
|
edition = "2021"
|
||||||
rust-version = "1.60.0"
|
rust-version = "1.60.0"
|
||||||
description = "Peer-to-peer networking library"
|
description = "Peer-to-peer networking library"
|
||||||
version = "0.49.0"
|
version = "0.50.0"
|
||||||
authors = ["Parity Technologies <admin@parity.io>"]
|
authors = ["Parity Technologies <admin@parity.io>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
repository = "https://github.com/libp2p/rust-libp2p"
|
repository = "https://github.com/libp2p/rust-libp2p"
|
||||||
@ -17,16 +17,12 @@ full = [
|
|||||||
"dcutr",
|
"dcutr",
|
||||||
"deflate",
|
"deflate",
|
||||||
"dns",
|
"dns",
|
||||||
"dns-async-std",
|
|
||||||
"dns-tokio",
|
|
||||||
"ecdsa",
|
"ecdsa",
|
||||||
"floodsub",
|
"floodsub",
|
||||||
"gossipsub",
|
"gossipsub",
|
||||||
"identify",
|
"identify",
|
||||||
"kad",
|
"kad",
|
||||||
"mdns",
|
"mdns",
|
||||||
"mdns-async-io",
|
|
||||||
"mdns-tokio",
|
|
||||||
"metrics",
|
"metrics",
|
||||||
"mplex",
|
"mplex",
|
||||||
"noise",
|
"noise",
|
||||||
@ -40,8 +36,6 @@ full = [
|
|||||||
"secp256k1",
|
"secp256k1",
|
||||||
"serde",
|
"serde",
|
||||||
"tcp",
|
"tcp",
|
||||||
"tcp-async-io",
|
|
||||||
"tcp-tokio",
|
|
||||||
"tokio",
|
"tokio",
|
||||||
"uds",
|
"uds",
|
||||||
"wasm-bindgen",
|
"wasm-bindgen",
|
||||||
@ -54,16 +48,12 @@ autonat = ["dep:libp2p-autonat"]
|
|||||||
dcutr = ["dep:libp2p-dcutr", "libp2p-metrics?/dcutr"]
|
dcutr = ["dep:libp2p-dcutr", "libp2p-metrics?/dcutr"]
|
||||||
deflate = ["dep:libp2p-deflate"]
|
deflate = ["dep:libp2p-deflate"]
|
||||||
dns = ["dep:libp2p-dns"]
|
dns = ["dep:libp2p-dns"]
|
||||||
dns-async-std = ["dep:libp2p-dns", "libp2p-dns?/async-std"]
|
|
||||||
dns-tokio = ["dep:libp2p-dns", "libp2p-dns?/tokio"]
|
|
||||||
floodsub = ["dep:libp2p-floodsub"]
|
floodsub = ["dep:libp2p-floodsub"]
|
||||||
identify = ["dep:libp2p-identify", "libp2p-metrics?/identify"]
|
identify = ["dep:libp2p-identify", "libp2p-metrics?/identify"]
|
||||||
kad = ["dep:libp2p-kad", "libp2p-metrics?/kad"]
|
kad = ["dep:libp2p-kad", "libp2p-metrics?/kad"]
|
||||||
gossipsub = ["dep:libp2p-gossipsub", "libp2p-metrics?/gossipsub"]
|
gossipsub = ["dep:libp2p-gossipsub", "libp2p-metrics?/gossipsub"]
|
||||||
metrics = ["dep:libp2p-metrics"]
|
metrics = ["dep:libp2p-metrics"]
|
||||||
mdns = ["dep:libp2p-mdns"]
|
mdns = ["dep:libp2p-mdns"]
|
||||||
mdns-async-io = ["dep:libp2p-mdns", "libp2p-mdns?/async-io"]
|
|
||||||
mdns-tokio = ["dep:libp2p-mdns", "libp2p-mdns?/tokio"]
|
|
||||||
mplex = ["dep:libp2p-mplex"]
|
mplex = ["dep:libp2p-mplex"]
|
||||||
noise = ["dep:libp2p-noise"]
|
noise = ["dep:libp2p-noise"]
|
||||||
ping = ["dep:libp2p-ping", "libp2p-metrics?/ping"]
|
ping = ["dep:libp2p-ping", "libp2p-metrics?/ping"]
|
||||||
@ -73,8 +63,6 @@ relay = ["dep:libp2p-relay", "libp2p-metrics?/relay"]
|
|||||||
request-response = ["dep:libp2p-request-response"]
|
request-response = ["dep:libp2p-request-response"]
|
||||||
rendezvous = ["dep:libp2p-rendezvous"]
|
rendezvous = ["dep:libp2p-rendezvous"]
|
||||||
tcp = ["dep:libp2p-tcp"]
|
tcp = ["dep:libp2p-tcp"]
|
||||||
tcp-async-io = ["dep:libp2p-tcp", "libp2p-tcp?/async-io"]
|
|
||||||
tcp-tokio = ["dep:libp2p-tcp", "libp2p-tcp?/tokio"]
|
|
||||||
uds = ["dep:libp2p-uds"]
|
uds = ["dep:libp2p-uds"]
|
||||||
wasm-bindgen = ["futures-timer/wasm-bindgen", "instant/wasm-bindgen", "getrandom/js"]
|
wasm-bindgen = ["futures-timer/wasm-bindgen", "instant/wasm-bindgen", "getrandom/js"]
|
||||||
wasm-ext = ["dep:libp2p-wasm-ext"]
|
wasm-ext = ["dep:libp2p-wasm-ext"]
|
||||||
|
71
src/lib.rs
71
src/lib.rs
@ -54,31 +54,11 @@ pub use libp2p_dcutr as dcutr;
|
|||||||
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use libp2p_deflate as deflate;
|
pub use libp2p_deflate as deflate;
|
||||||
#[deprecated(
|
|
||||||
since = "0.49.0",
|
|
||||||
note = "The `dns-tokio` and `dns-async-std` features are deprecated. Use the new `dns` feature together with the `tokio` or `async-std` features."
|
|
||||||
)]
|
|
||||||
#[cfg(all(
|
|
||||||
any(feature = "dns-tokio", feature = "dns-async-std"),
|
|
||||||
not(feature = "dns")
|
|
||||||
))]
|
|
||||||
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
|
||||||
#[cfg_attr(
|
|
||||||
docsrs,
|
|
||||||
doc(cfg(any(feature = "dns-tokio", feature = "dns-async-std")))
|
|
||||||
)]
|
|
||||||
pub mod dns {
|
|
||||||
#[doc(inline)]
|
|
||||||
pub use libp2p_dns::*;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "dns")]
|
#[cfg(feature = "dns")]
|
||||||
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "dns")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "dns")))]
|
||||||
pub mod dns {
|
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use libp2p_dns::*;
|
pub use libp2p_dns as dns;
|
||||||
}
|
|
||||||
#[cfg(feature = "floodsub")]
|
#[cfg(feature = "floodsub")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "floodsub")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "floodsub")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
@ -96,31 +76,11 @@ pub use libp2p_identify as identify;
|
|||||||
#[cfg_attr(docsrs, doc(cfg(feature = "kad")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "kad")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use libp2p_kad as kad;
|
pub use libp2p_kad as kad;
|
||||||
#[deprecated(
|
|
||||||
since = "0.49.0",
|
|
||||||
note = "The `mdns-tokio` and `mdns-async-io` features are deprecated. Use the new `mdns` feature together with the `tokio` or `async-std` features."
|
|
||||||
)]
|
|
||||||
#[cfg(all(
|
|
||||||
any(feature = "mdns-async-io", feature = "mdns-tokio"),
|
|
||||||
not(feature = "mdns")
|
|
||||||
))]
|
|
||||||
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
|
||||||
#[cfg_attr(
|
|
||||||
docsrs,
|
|
||||||
doc(cfg(any(feature = "mdns-tokio", feature = "mdns-async-io")))
|
|
||||||
)]
|
|
||||||
pub mod mdns {
|
|
||||||
#[doc(inline)]
|
|
||||||
pub use libp2p_mdns::*;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "mdns")]
|
#[cfg(feature = "mdns")]
|
||||||
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "mdns")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "mdns")))]
|
||||||
pub mod mdns {
|
#[doc(inline)]
|
||||||
#[doc(inline)]
|
pub use libp2p_mdns as mdns;
|
||||||
pub use libp2p_mdns::*;
|
|
||||||
}
|
|
||||||
#[cfg(feature = "metrics")]
|
#[cfg(feature = "metrics")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "metrics")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "metrics")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
@ -159,28 +119,11 @@ pub use libp2p_rendezvous as rendezvous;
|
|||||||
pub use libp2p_request_response as request_response;
|
pub use libp2p_request_response as request_response;
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use libp2p_swarm as swarm;
|
pub use libp2p_swarm as swarm;
|
||||||
#[deprecated(
|
|
||||||
since = "0.49.0",
|
|
||||||
note = "The `tcp-tokio` and `tcp-async-io` features are deprecated. Use the new `tcp` feature together with the `tokio` or `async-std` features."
|
|
||||||
)]
|
|
||||||
#[cfg(all(
|
|
||||||
any(feature = "tcp-tokio", feature = "tcp-async-io"),
|
|
||||||
not(feature = "tcp")
|
|
||||||
))]
|
|
||||||
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
|
||||||
#[cfg_attr(docsrs, doc(cfg(any(feature = "tcp-tokio", feature = "tcp-async-io"))))]
|
|
||||||
pub mod tcp {
|
|
||||||
#[doc(inline)]
|
|
||||||
pub use libp2p_tcp::*;
|
|
||||||
}
|
|
||||||
|
|
||||||
#[cfg(feature = "tcp")]
|
#[cfg(feature = "tcp")]
|
||||||
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
#[cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "tcp")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "tcp")))]
|
||||||
pub mod tcp {
|
#[doc(inline)]
|
||||||
#[doc(inline)]
|
pub use libp2p_tcp as tcp;
|
||||||
pub use libp2p_tcp::*;
|
|
||||||
}
|
|
||||||
#[cfg(feature = "uds")]
|
#[cfg(feature = "uds")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "uds")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "uds")))]
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user