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?
Found myself wanting to set
globally, and was trying to decide whether to modify rust_toolchain or use an internal
rust_librarymacro.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?