> ## Documentation Index
> Fetch the complete documentation index at: https://codspeed.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# codspeed-rust documentation

> Crates to benchmark your Rust code

CodSpeed provides compatibility layers for popular Rust benchmarking frameworks
and a dedicated cargo subcommand to help you measure the performance of your
Rust code.

<Card horizontal title="cargo-codspeed" icon="cubes" href="/reference/codspeed-rust/cargo-codspeed">
  A cargo subcommand to benchmark your Rust code with CodSpeed integration.
</Card>

## Compatibility layers

<Card horizontal title="divan (recommended)" icon="star" href="/reference/codspeed-rust/divan">
  The compatibility layer for divan, the recommended benchmarking framework for
  Rust.
</Card>

<CardGroup cols={2}>
  <Card title="criterion.rs" href="/reference/codspeed-rust/criterion">
    The compatibility layer for criterion.rs.
  </Card>

  <Card title="bencher (libtest)" href="/reference/codspeed-rust/bencher">
    The compatibility layer for bencher.
  </Card>
</CardGroup>
