> ## 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] [cargo-codspeed](https://codspeed.io/docs/reference/codspeed-rust/cargo-codspeed.md)
>
> A cargo subcommand to benchmark your Rust code with CodSpeed integration.

## Compatibility layers

> [card] [divan (recommended)](https://codspeed.io/docs/reference/codspeed-rust/divan.md)
>
> The compatibility layer for divan, the recommended benchmarking framework for
> Rust.

> [card] [criterion.rs](https://codspeed.io/docs/reference/codspeed-rust/criterion.md)
>
> The compatibility layer for criterion.rs.

> [card] [bencher (libtest)](https://codspeed.io/docs/reference/codspeed-rust/bencher.md)
>
> The compatibility layer for bencher.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.