diff --git a/docs/issues/open/90-export-missing-public-api-in-torrust-info-hash.md b/docs/issues/open/90-export-missing-public-api-in-torrust-info-hash.md index 21473325a..20a268912 100644 --- a/docs/issues/open/90-export-missing-public-api-in-torrust-info-hash.md +++ b/docs/issues/open/90-export-missing-public-api-in-torrust-info-hash.md @@ -6,7 +6,7 @@ priority: p1 github-issue: 90 spec-path: docs/issues/open/90-export-missing-public-api-in-torrust-info-hash.md branch: fix/export-missing-public-api-in-torrust-info-hash -last-updated-utc: 2026-06-09 12:00 +last-updated-utc: 2026-06-09 13:00 semantic-links: related-artifacts: - packages/info-hash/Cargo.toml @@ -146,7 +146,7 @@ After all work is complete and the PR is merged, the Acceptance Criteria section - [x] **Implementation started** — Branch created - [ ] **Implementation complete** — All action items done - [x] **PR opened** — #91 against `develop` -- [ ] **PR merged** — Merged to `develop` +- [x] **PR merged** — Merged to `develop` - [ ] **Crate published** — `torrust-info-hash v0.2.0` on crates.io - [ ] **Issue closed** — Acceptance criteria verified diff --git a/packages/info-hash/Cargo.toml b/packages/info-hash/Cargo.toml index 981138346..095605ff7 100644 --- a/packages/info-hash/Cargo.toml +++ b/packages/info-hash/Cargo.toml @@ -3,7 +3,7 @@ description = "BitTorrent InfoHash v1 type for Rust projects." keywords = [ "bittorrent", "infohash", "library", "primitives" ] name = "torrust-info-hash" readme = "README.md" -version = "0.1.0" +version = "0.2.0" authors.workspace = true categories.workspace = true diff --git a/packages/info-hash/src/info_hash.rs b/packages/info-hash/src/info_hash.rs index 205076412..221c7edb9 100644 --- a/packages/info-hash/src/info_hash.rs +++ b/packages/info-hash/src/info_hash.rs @@ -344,7 +344,6 @@ pub mod fixture { /// /// The results should not be relied upon between versions. #[must_use] - #[expect(dead_code, reason = "public fixture API for downstream consumers")] pub fn gen_seeded_infohash(seed: u64) -> InfoHash { let mut buf_a: [[u8; 8]; 4] = Default::default(); let mut buf_b = InfoHash::default(); diff --git a/packages/info-hash/src/lib.rs b/packages/info-hash/src/lib.rs index 2b983fe1d..b9628f332 100644 --- a/packages/info-hash/src/lib.rs +++ b/packages/info-hash/src/lib.rs @@ -4,4 +4,4 @@ mod info_hash; -pub use self::info_hash::InfoHash; +pub use self::info_hash::{ConversionError, INFO_HASH_BYTES_LEN, InfoHash, fixture};