Skip to content

fix(tsa,rekor): no dead-code warnings without the client feature - #265

Merged
jku merged 1 commit into
mainfrom
fix/dead-code-without-client
Sep 30, 2026
Merged

jku merged 1 commit into
mainfrom
fix/dead-code-without-client

Conversation

@wolfv

@wolfv wolfv commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

Since #245 made the TSA ASN.1 module private, and #251 made Rekor's entry-response map crate-private, offline builds (--no-default-features, the way sigstore-verify uses these crates) warned about unused items:

  • TimeStampReq, Asn1MessageImprint::new and generate_nonce are only used by the TSA client
  • LogEntryResponse is only used by the Rekor client

Those items (and their imports) now compile only with the client feature or in tests, and LogEntryResponse moves next to its single user. No behaviour change.

Validation

  • cargo check --no-default-features for tsa, rekor, verify and sign: no warnings
  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo test -p sigstore-tsa -p sigstore-rekor --all-features, plus cargo test -p sigstore-tsa --no-default-features

Signed-off-by: Wolf Vollprecht w.vollprecht@gmail.com

🤖 Generated with Claude Code

The RFC 3161 request types and nonce generation are only used by the TSA
client, and the Rekor v1 entry-response map only by the Rekor client.
Since the ASN.1 module became private (#245) and the response map
crate-private (#251), offline builds (default features off, as used by
sigstore-verify) warned about them. Compile them only with the client
feature or in tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Wolf Vollprecht <w.vollprecht@gmail.com>
@jku
jku merged commit 97567ca into main Sep 30, 2026
19 checks passed
@jku
jku deleted the fix/dead-code-without-client branch September 30, 2026 12:43
@wolfv wolfv mentioned this pull request Oct 1, 2026
This was referenced Oct 13, 2026
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.

2 participants