rust-library-performance-features
About rust-library-performance-features
A skill for measuring and shipping performance improvements in Rust libraries, with optional capabilities separated by Cargo features. It guides library maintainers through benchmarking, feature-matrix testing, and documenting performance claims.
Key features
- 01Define representative operations and input sizes
- 02Benchmark before and after optimization
- 03Compare implementations with one harness
- 04Gate optional capabilities with Cargo features
- 05Test feature combinations, including no defaults
- 06Document measurement scope and commands
Use cases
- 01Optimize a library hot path
- 02Add benchmarks for downstream operations
- 03Review optional dependencies and Cargo features
- 04Validate performance claims before release
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ lvtd-llc/ skills --skill rust-library-performance-featuresAfter installing, type/rust-library-performance-featuresin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
guidelines.mdagents/openai.yamlreferences/performance-feature-patterns.mdworkflows/benchmark-feature-matrix.mdDetails
From the project READMERust Library Performance Features
Use this skill when a Rust library needs performance work that can be measured and shipped behind clear Cargo feature boundaries.
Core Workflow
- Define the library operation and input sizes that matter to downstream users.
- Add or repair benchmarks before optimizing.
- Compare baseline and candidate implementations with the same harness.
- Use Cargo features for optional capabilities and dependencies.
- Test the feature matrix, including default features disabled.
- Document performance claims with scope and measurement commands.
Read Next
| 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 |
Source Notes
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.