Skip to content

Commit e2dcb16

Browse files
committed
feat: add RUSTFLAGS warning
1 parent cc3491b commit e2dcb16

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

suap/projects/cargo/building.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ def build_cargo_project(toolchain_name: str, cargo_crate_name: str) -> bool:
3434
default_env = os.environ.copy()
3535
default_env["RUSTFLAGS"] = "-Awarnings" # hides warnings in console
3636

37+
logger.warning(
38+
f"RUSTFLAGS are not inherited! 'RUSTFLAGS' will contain -> '{default_env["RUSTFLAGS"]}'."
39+
)
40+
3741
check_call(
3842
[
3943
"cargo",

0 commit comments

Comments
 (0)