Performance

TopicRust Crates
Profiling and Benchmarkingcargo flamegraph generates flame graphs to visualize performance bottlenecks. cargo bench (built-in) runs benchmarks to measure performance.
Optimization Analysiscargo expand expands macros, which can sometimes help you understand generated code and identify optimization opportunities.
Other Performance Toolsperf: (System profiler); valgrind (Memory debugging and profiling)

Configure your cargo Project for Maximum Performance, Fast Compile Times or Minimal Binary Size

cargo-wizard cargo-wizard-crates.io cargo-wizard-github cargo-wizard-lib.rs cat-development-tools::cargo-plugins

cargo wizard⮳ is a cargo subcommand for configuring Cargo projects. It applies profile and config templates to your Cargo project to configure it for maximum performance, fast compile times or minimal binary size.

cargo hakari

cargo-hakari cargo-hakari-crates.io cargo-hakari-github cargo-hakari-lib.rs cat-development-tools::cargo-plugins

cargo-hakari⮳ manage "workspace-hack" packages to speed up builds in large workspaces.

cargo hakari is a command-line application to manage "workspace-hack" crates. Use it to speed up local cargo build and cargo check commands by up to 100x, and cumulatively by up to 1.7x or more.