-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-environment-variablesArea: environment variablesArea: environment variablesC-enhancementCategory: enhancementCategory: enhancementCommand-runS-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.
Description
It'll be great to add -e NAME=value(for example) flag to cargo run
for set environment variables. Setting environment variables is platform/shell dependent and required additional steps from user.
Simplest use case is RUST_LOG, of cause its possible to add filters by main module name, but what about dependent modules? May be it will be useful for set some LD_* fields which may break cargo itself.
EDIT (ehuss): and the ability to unset environment variables. See #7790.
alexkreidler, magicbc, perrog, pashinin, hammypants and 12 more
Metadata
Metadata
Assignees
Labels
A-environment-variablesArea: environment variablesArea: environment variablesC-enhancementCategory: enhancementCategory: enhancementCommand-runS-needs-team-inputStatus: Needs input from team on whether/how to proceed.Status: Needs input from team on whether/how to proceed.