Skip to content

Commit f54423a

Browse files
authored
deps: use web-time instead of instant
See sebcrozet/instant#52 Pull-Request: #5347.
1 parent 88635ea commit f54423a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+139
-99
lines changed

Cargo.lock

Lines changed: 24 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,29 +76,29 @@ futures-bounded = { version = "0.2.3" }
7676
futures-rustls = { version = "0.26.0", default-features = false }
7777
libp2p = { version = "0.54.0", path = "libp2p" }
7878
libp2p-allow-block-list = { version = "0.3.0", path = "misc/allow-block-list" }
79-
libp2p-autonat = { version = "0.12.0", path = "protocols/autonat" }
79+
libp2p-autonat = { version = "0.12.1", path = "protocols/autonat" }
8080
libp2p-connection-limits = { version = "0.3.1", path = "misc/connection-limits" }
81-
libp2p-core = { version = "0.41.2", path = "core" }
82-
libp2p-dcutr = { version = "0.11.0", path = "protocols/dcutr" }
81+
libp2p-core = { version = "0.41.3", path = "core" }
82+
libp2p-dcutr = { version = "0.11.1", path = "protocols/dcutr" }
8383
libp2p-dns = { version = "0.41.1", path = "transports/dns" }
8484
libp2p-floodsub = { version = "0.44.0", path = "protocols/floodsub" }
85-
libp2p-gossipsub = { version = "0.46.1", path = "protocols/gossipsub" }
85+
libp2p-gossipsub = { version = "0.46.2", path = "protocols/gossipsub" }
8686
libp2p-identify = { version = "0.44.2", path = "protocols/identify" }
8787
libp2p-identity = { version = "0.2.8" }
8888
libp2p-kad = { version = "0.46.0", path = "protocols/kad" }
8989
libp2p-mdns = { version = "0.45.1", path = "protocols/mdns" }
9090
libp2p-memory-connection-limits = { version = "0.2.0", path = "misc/memory-connection-limits" }
91-
libp2p-metrics = { version = "0.14.1", path = "misc/metrics" }
91+
libp2p-metrics = { version = "0.14.2", path = "misc/metrics" }
9292
libp2p-mplex = { version = "0.41.0", path = "muxers/mplex" }
9393
libp2p-muxer-test-harness = { path = "muxers/test-harness" }
9494
libp2p-noise = { version = "0.44.0", path = "transports/noise" }
95-
libp2p-perf = { version = "0.3.0", path = "protocols/perf" }
95+
libp2p-perf = { version = "0.3.1", path = "protocols/perf" }
9696
libp2p-ping = { version = "0.44.1", path = "protocols/ping" }
9797
libp2p-plaintext = { version = "0.41.0", path = "transports/plaintext" }
9898
libp2p-pnet = { version = "0.24.0", path = "transports/pnet" }
9999
libp2p-quic = { version = "0.10.3", path = "transports/quic" }
100-
libp2p-relay = { version = "0.17.2", path = "protocols/relay" }
101-
libp2p-rendezvous = { version = "0.14.0", path = "protocols/rendezvous" }
100+
libp2p-relay = { version = "0.17.3", path = "protocols/relay" }
101+
libp2p-rendezvous = { version = "0.14.1", path = "protocols/rendezvous" }
102102
libp2p-request-response = { version = "0.26.3", path = "protocols/request-response" }
103103
libp2p-server = { version = "0.12.7", path = "misc/server" }
104104
libp2p-stream = { version = "0.1.0-alpha.1", path = "protocols/stream" }
@@ -128,6 +128,7 @@ tokio = { version = "1.38", default-features = false }
128128
tracing = "0.1.37"
129129
tracing-subscriber = "0.3"
130130
futures = "0.3.30"
131+
web-time = "1.1.0"
131132
ring = "0.17.8"
132133
rcgen = "0.11.3"
133134

core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.41.3
2+
- Use `web-time` instead of `instant`.
3+
See [PR 5347](https://github.com/libp2p/rust-libp2p/pull/5347).
4+
15
## 0.41.2
26

37
- Implement `std::fmt::Display` on `ListenerId`.

core/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ name = "libp2p-core"
33
edition = "2021"
44
rust-version = { workspace = true }
55
description = "Core traits and structs of libp2p"
6-
version = "0.41.2"
6+
version = "0.41.3"
77
authors = ["Parity Technologies <admin@parity.io>"]
88
license = "MIT"
99
repository = "https://github.com/libp2p/rust-libp2p"
1010
keywords = ["peer-to-peer", "libp2p", "networking"]
1111
categories = ["network-programming", "asynchronous"]
1212

1313
[dependencies]
14-
either = "1.12"
14+
either = "1.11"
1515
fnv = "1.0"
1616
futures = { workspace = true, features = ["executor", "thread-pool"] }
1717
futures-timer = "3"
18-
instant = "0.1.13"
18+
web-time = { workspace = true }
1919
libp2p-identity = { workspace = true, features = ["peerid", "ed25519"] }
2020
multiaddr = { workspace = true }
2121
multihash = { workspace = true }

core/src/peer_record.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
use crate::signed_envelope::SignedEnvelope;
22
use crate::{proto, signed_envelope, DecodeError, Multiaddr};
3-
use instant::SystemTime;
43
use libp2p_identity::Keypair;
54
use libp2p_identity::PeerId;
65
use libp2p_identity::SigningError;
76
use quick_protobuf::{BytesReader, Writer};
7+
use web_time::SystemTime;
88

99
const PAYLOAD_TYPE: &str = "/libp2p/routing-state-record";
1010
const DOMAIN_SEP: &str = "libp2p-routing-state";

0 commit comments

Comments
 (0)