Skip to content

Allow specifying a profile for cargo expand #603

@jrose-signal

Description

@jrose-signal

When parse.expand is enabled, cbindgen invokes Cargo to expand macros in the specified crates. If the dependencies of the crates in question have already been built, Cargo is smart enough to not build them from scratch. However, if the dependencies were only built in release mode, Cargo won't see them as valid build artifacts, and will rebuild everything (using the debug profile) just to do the expansion. If the cargo invocation in cargo_expand.rs allowed passing --release, this extra build could be avoided.

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