Skip to content

Allow setting default rustc_flags #212

@mfarrugi

Description

@mfarrugi

Found myself wanting to set

    rustc_flags = [
        "--deny=warnings",
        "--allow=deprecated",
    ],

globally, and was trying to decide whether to modify rust_toolchain or use an internal rust_library macro.

If the toolchain provides default flags, they would be passed to cargo-raze generated dependenices.. which is fine for lints (since generated files have --cap-lints=allow), but might not be fine for other flags.

Does anyone have thoughts on whether this belongs in rust_toolchain or not?

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