Skip to content

--profile fails to find custom profile #1648

@jmg-duarte

Description

@jmg-duarte

I'm running the following command:

 cargo tarpaulin --profile ci --locked --workspace

And I get the following warning:

warning: redacted-crate-name@0.0.0: Unknown cargo profile `ci`. Defaulted to `Release` for the runtime build.

However, my Cargo.toml has:

[profile.ci]
inherits = "dev" # required otherwise we get the "unknown profile" error

codegen-units = 256     # Increase parallel code generation units
debug = false           # No debug information
incremental = false     # Disable incremental compilation for consistent CI performance
lto = "off"             # Disable Link Time Optimization
opt-level = 0           # No optimization
overflow-checks = false # Disable overflow checks
panic = 'abort'         # Use abort on panic to reduce binary size

Furthermore, if I run the following command I don't get any issues:

cargo b --profile ci

It might be that the --profile flag is for LLVM profiles, but if that is the case, the docs/help needs to be updated to match that, as it stands it's unclear.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions