12
Cargo env file?
(lemmy.physfluids.fr)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
The way I can think of to do this is to make a program called
cargo-build-env
which reads a file of your choosing with the features and executes cargo, then place that binary in your~/.cargo/bin
directory. Then you can runcargo build-env
to build your programThe program can be in any language as long as it's executable, including shell script
Yeah, a simple bash script should do. Such as:
Then just set a BUILD_FEATURES env var.