Skip to content

cargo bench --no-run uses release profile #4240

@joliss

Description

@joliss

I have the following snippet in my Cargo.toml:

[profile.bench]
debug = true # for profiling

However, when I run cargo bench --no-run, the binary that is placed in
target/release/benches-* does not seem to contain debug information.

Only when I add the following snippet do I get debug information:

[profile.release]
debug = true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions