mcpField
R
rust-library-performance-features

rust-library-performance-features

github.com/lvtd-llcDevelopment142 installsUpdated 7w ago
Repository

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

  1. 01Define representative operations and input sizes
  2. 02Benchmark before and after optimization
  3. 03Compare implementations with one harness
  4. 04Gate optional capabilities with Cargo features
  5. 05Test feature combinations, including no defaults
  6. 06Document measurement scope and commands

Use cases

  1. 01Optimize a library hot path
  2. 02Add benchmarks for downstream operations
  3. 03Review optional dependencies and Cargo features
  4. 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-features

After installing, type/rust-library-performance-featuresin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

guidelines.md
agents/
openai.yaml
references/
performance-feature-patterns.md
workflows/
benchmark-feature-matrix.md

Details

From the project README

Rust 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

  1. Define the library operation and input sizes that matter to downstream users.
  2. Add or repair benchmarks before optimizing.
  3. Compare baseline and candidate implementations with the same harness.
  4. Use Cargo features for optional capabilities and dependencies.
  5. Test the feature matrix, including default features disabled.
  6. Document performance claims with scope and measurement commands.

Read Next

TaskLoad
Add benchmarks or optimize a hot pathguidelines.md, workflows/benchmark-feature-matrix.md
Review Cargo features and optional dependenciesreferences/performance-feature-patterns.md
Validate performance claims before releasereferences/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.

Comments

Markdown supported