Skip to content

feat(info-hash): [#90] expose missing public API items and bump to v0.2.0 - #92

Merged
josecelano merged 1 commit into
torrust:developfrom
josecelano:feat/export-missing-public-api-in-torrust-info-hash
Jun 9, 2026
Merged

josecelano merged 1 commit into
torrust:developfrom
josecelano:feat/export-missing-public-api-in-torrust-info-hash

Conversation

@josecelano

Copy link
Copy Markdown
Member

This PR implements the changes from issue #90. It exposes the missing public API items from torrust-info-hash and bumps the version to 0.2.0.

Changes

  • lib.rs — add public re-exports for ConversionError, INFO_HASH_BYTES_LEN, and fixture module
  • info_hash.rs — remove #[expect(dead_code)] from fixture::gen_seeded_infohash (now publicly accessible)
  • Cargo.toml — bump version from 0.1.0 to 0.2.0

Verification

  • cargo check --workspace --all-targets --all-features ✅
  • cargo nextest run --workspace --all-targets --all-features — 12/12 tests pass ✅
  • cargo clippy --workspace --all-targets --all-features — no warnings ✅
  • cargo +nightly fmt --check ✅
  • linter all ✅
  • RUSTDOCFLAGS="-D warnings" cargo doc --no-deps -p torrust-info-hash ✅

Closes #90

…p to v0.2.0

Add public re-exports for ConversionError, INFO_HASH_BYTES_LEN, and the
fixture module in lib.rs. Remove the now-unnecessary #[expect(dead_code)]
lint suppression from fixture::gen_seeded_infohash since the module is now
publicly accessible. Bump version to 0.2.0 per SemVer.
Copilot AI review requested due to automatic review settings June 9, 2026 10:37
@josecelano josecelano self-assigned this Jun 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Exposes previously internal torrust-info-hash items at the crate root (per issue #90) and bumps the crate version to reflect the expanded public API.

Changes:

  • Re-export ConversionError, INFO_HASH_BYTES_LEN, and fixture from packages/info-hash/src/lib.rs.
  • Remove the dead_code lint suppression from fixture::gen_seeded_infohash now that it’s publicly reachable.
  • Bump torrust-info-hash from 0.1.0 to 0.2.0 and update the associated issue tracking doc.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
packages/info-hash/src/lib.rs Re-exports additional public API items at the crate root.
packages/info-hash/src/info_hash.rs Removes now-unnecessary dead_code lint suppression on a fixture helper.
packages/info-hash/Cargo.toml Version bump to 0.2.0 for the expanded public API surface.
docs/issues/open/90-export-missing-public-api-in-torrust-info-hash.md Updates issue tracking metadata/checklist entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- [ ] **Implementation complete** — All action items done
- [x] **PR opened** — #91 against `develop`
- [ ] **PR merged** — Merged to `develop`
- [x] **PR merged** — Merged to `develop`
@josecelano

Copy link
Copy Markdown
Member Author

ACK e69e005

@josecelano
josecelano merged commit 5e771eb into torrust:develop Jun 9, 2026
12 checks passed
josecelano added a commit that referenced this pull request Jun 9, 2026
ec8dc00 docs(issues): fix table formatting in closed #90 spec (Jose Celano)
81f6300 docs(issues): mark crate published in closed #90 spec (Jose Celano)
de13d9f docs(issues): close issue #90 spec — implementation merged in PR #92 (Jose Celano)

Pull request description:

  Publish `torrust-info-hash v0.2.0` to crates.io. Exposes the missing public API items (`ConversionError`, `INFO_HASH_BYTES_LEN`, `fixture`) that were implemented in PR #92.

  ### Verification

  - `cargo publish -p torrust-info-hash --dry-run` passed
  - Published to crates.io: https://crates.io/crates/torrust-info-hash/0.2.0
  - Tagged as `torrust-info-hash-v0.2.0`

  Related to #90

ACKs for top commit:
  josecelano:
    ACK ec8dc00

Tree-SHA512: 71f451c82af5332acb810bfe5b090066d01017718c29f6d8817e807dfc093fb4a9d1229d835bda573af7a7258bb5a5284143cf4d15ff40b0836c8f1da3c798b1

This branch was previously deployed

1 inactive deployment
coverage — e69e0055 Deployed Jun 9, 2026 by josecelano via Generate Coverage Report #55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export Missing Public API Items in torrust-info-hash

2 participants