I am trying to experiment with a
no-std application. I can get my crate to build by using
cargo rustc -- -C link-arg=-nostartfiles. However, I cannot run
cargo build, since it doesn’t automatically pass in the
-nostartfiles flag. However, if I add it to
.cargo/config, then it is also used when compiling my dependencies, which doesn’t work.
Is there a way to add everything I would add after the
cargo rustc to
Cargo.toml) so I don’t have to use that command every time?