Skip to content

Commit e58bdeb

Browse files
committed
chore(deps): force 0.7 version for zerocopy
The aquatic_udp_protocol crate uses version 0.7: https://github.com/greatest-ape/aquatic/blob/master/crates/udp_protocol/Cargo.toml#L19 We were having problems with trait `read_from`. Example: ```rust let data = PeerId::read_from(&bytes).expect("it should have the correct amount of bytes"); ``` There have been changes in version 0.8: google/zerocopy#1680
1 parent d5af5d3 commit e58bdeb

File tree

4 files changed

+12
-32
lines changed

4 files changed

+12
-32
lines changed

Cargo.lock

+9-29
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ tracing = "0"
8282
tracing-subscriber = { version = "0", features = ["json"] }
8383
url = { version = "2", features = ["serde"] }
8484
uuid = { version = "1", features = ["v4"] }
85-
zerocopy = "0"
85+
zerocopy = "0.7"
8686

8787
[package.metadata.cargo-machete]
8888
ignored = ["crossbeam-skiplist", "dashmap", "figment", "parking_lot", "serde_bytes"]

packages/primitives/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ serde = { version = "1", features = ["derive"] }
2323
tdyne-peer-id = "1"
2424
tdyne-peer-id-registry = "0"
2525
thiserror = "1"
26-
zerocopy = "0"
26+
zerocopy = "0.7"

packages/torrent-repository/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ tokio = { version = "1", features = ["macros", "net", "rt-multi-thread", "signal
2626
torrust-tracker-clock = { version = "3.0.0-develop", path = "../clock" }
2727
torrust-tracker-configuration = { version = "3.0.0-develop", path = "../configuration" }
2828
torrust-tracker-primitives = { version = "3.0.0-develop", path = "../primitives" }
29-
zerocopy = "0"
29+
zerocopy = "0.7"
3030

3131
[dev-dependencies]
3232
async-std = { version = "1", features = ["attributes", "tokio1"] }

0 commit comments

Comments
 (0)