Problem
(Cross-posting from #16421 (comment))
Many environments such as shells and debuggers silently drop environment variable keys which have hyphens in them, or otherwise do not work with these kinds of environment variables. So CARGO_BIN_EXE_foo is okay, but CARGO_BIN_EXE_my-program is silently dropped.
(Values are free to have hyphens in them -- it's just keys that are affected.)
These environments include:
Proposed Solution
Make a version of these variables available that replaces hyphens with underscores, e.g. CARGO_BIN_EXE_my_program. (I'm not sure if Cargo only allows one of my_program and my-program to exist.)
Notes
No response
Problem
(Cross-posting from #16421 (comment))
Many environments such as shells and debuggers silently drop environment variable keys which have hyphens in them, or otherwise do not work with these kinds of environment variables. So
CARGO_BIN_EXE_foois okay, butCARGO_BIN_EXE_my-programis silently dropped.(Values are free to have hyphens in them -- it's just keys that are affected.)
These environments include:
RUSTC_WRAPPERat build time, if it's a shell scriptProposed Solution
Make a version of these variables available that replaces hyphens with underscores, e.g.
CARGO_BIN_EXE_my_program. (I'm not sure if Cargo only allows one ofmy_programandmy-programto exist.)Notes
No response