The bittorrent-primitives crate has been deprecated and its repository archived. The InfoHash type has been moved to the torrust/torrust-bittorrent workspace and published as torrust-info-hash on crates.io.
Current dependency in Cargo.toml:
bittorrent-primitives = "0.1.0"
Target dependency:
torrust-info-hash = "0.1"
Changes needed
Dependency
Code
The import needs to be updated in src/web/api/server/v1/contexts/torrent/handlers.rs:
// Old:
use bittorrent_primitives::info_hash::InfoHash;
// New:
use torrust_info_hash::InfoHash;
References
The
bittorrent-primitivescrate has been deprecated and its repository archived. TheInfoHashtype has been moved to thetorrust/torrust-bittorrentworkspace and published astorrust-info-hashon crates.io.Current dependency in
Cargo.toml:Target dependency:
Changes needed
Dependency
bittorrent-primitiveswithtorrust-info-hashinCargo.tomlCargo.lockaccordinglyCode
The import needs to be updated in
src/web/api/server/v1/contexts/torrent/handlers.rs:References