Skip to content

Fix publish warning by including benchmarks in published package - #5

Merged
hasanzakeri merged 1 commit into
mainfrom
fix/cargo_metadata
Mar 15, 2026
Merged

hasanzakeri merged 1 commit into
mainfrom
fix/cargo_metadata

Conversation

@hasanzakeri

Copy link
Copy Markdown
Owner

Summary

  • Remove benches/ from the exclude list in Cargo.toml to resolve the cargo publish warning: ignoring benchmark 'throughput' as 'benches/throughput.rs' is not included in the published package
  • Benchmarks are dev-only and have no effect on downstream users of the library

Test plan

  • cargo publish --dry-run completes with no warnings
  • cargo bench runs all benchmarks successfully

@hasanzakeri
hasanzakeri merged commit 1639824 into main Mar 15, 2026
6 checks passed
@hasanzakeri
hasanzakeri deleted the fix/cargo_metadata branch March 15, 2026 00:37
hasanzakeri added a commit that referenced this pull request Oct 8, 2026
## Summary
- Remove `benches/` from the `exclude` list in `Cargo.toml` to resolve
the `cargo publish` warning: `ignoring benchmark 'throughput' as
'benches/throughput.rs' is not included in the published package`
- Benchmarks are dev-only and have no effect on downstream users of the
library
 
  ## Test plan 
  - [x] `cargo publish --dry-run` completes with no warnings
  - [x] `cargo bench` runs all benchmarks successfully
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.

1 participant