More granular feature handling

This commit is contained in:
Igor Katson 2024-08-30 12:07:00 +01:00
parent 9a6039f5ee
commit 7e40c71852
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
5 changed files with 7 additions and 16 deletions

View file

@ -1,16 +1,13 @@
pub mod constants;
pub mod directories;
pub mod hash_id;
pub mod lengths;
pub mod magnet;
pub mod peer_id;
pub mod spawn_utils;
pub mod speed_estimator;
#[cfg(any(feature = "sha1-crypto-hash", feature = "sha1-ring"))]
pub mod torrent_metainfo;
pub use hash_id::Id20;
assert_cfg::exactly_one! {
feature = "sha1-crypto-hash",
feature = "sha1-ring",
}