Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Optimize Rust libraries with criterion benchmarks, feature-flag matrices, cargo bench workflows, dependency gating, regression baselines, and evidence-driven API performance tradeoffs. Use when adding or reviewing Rust library benchmarks, cargo features, optional dependencies, or performance claims before publishing.
.claude/skills/hashgraph-online-rust-library-performance-features/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-17 | ✗→✓ | ▲ Improved | -20% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -45% | 0% |
| case-02 | ✓→✓ | = Same ✓ | -15% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -28% | 0% |
| case-04 | ✓→✓ | = Same ✓ | -18% | 0% |
Use this skill when a Rust library needs performance work that can be measured and shipped behind clear Cargo feature boundaries.
| Task | Load | |------|------| | Add benchmarks or optimize a hot path | guidelines.md, workflows/benchmark-feature-matrix.md | | Review Cargo features and optional dependencies | references/performance-feature-patterns.md | | Validate performance claims before release | references/performance-feature-patterns.md |
Guidance is transformed and paraphrased from Herbert Wolverson, Advanced Hands-On Rust, especially Chapters 2 and 3 on creating, testing, optimizing, benchmarking, and feature-gating a library. Examples are original skeletons.
Other measured skills in the registry, with their headline benchmark lift.