-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Labels
A-environment-variablesArea: environment variablesArea: environment variablesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Description
(Moved and re-phrased from #97)
Currently cargo can pass env vars from up-stream dependencies to down-stream, with user-defined metadata.
But what's still lacking is the reversed control, where up-stream library expects a env var to be set to build successfully, and down-stream must fill the env var for it.
This scenario is common in FFI libraries wrapping existing C lib, for example meh/rust-ffmpeg-sys expects the env var FFMPEG_DIR to be set to the path of pre-built C FFMpeg libs & binaries.
overminder, OutOfTheVoid, Connicpu, 8176135, benhansen-io and 66 more
Metadata
Metadata
Assignees
Labels
A-environment-variablesArea: environment variablesArea: environment variablesC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`