You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems I can replace cargo build with cargo rustc?
Also, using --emit flags and pipe it as a return value seems to be a good idea. Some projects need to import different .rs file which mean there will be multiple compilation. This cause out-dir to be rewrited multiple times 😞
Just got some info that you can compile rust code without Cargo.toml using
rustc
. Also, commandcargo rustc
will respect Cargo.toml ⎝✧ᴥ✧⎠future plans
Seems I can replace
cargo build
withcargo rustc
?Also, using
--emit
flags and pipe it as a return value seems to be a good idea. Some projects need to import different.rs
file which mean there will be multiple compilation. This causeout-dir
to be rewrited multiple times 😞Good References
rust-lang/cargo#595
https://doc.rust-lang.org/rustc/codegen-options/index.html
https://doc.rust-lang.org/cargo/reference/external-tools.html
https://doc.rust-lang.org/cargo/reference/unstable.html#out-dir
https://journal.zeyi.fan/2019/08/20/announce-cargo-play.html
The text was updated successfully, but these errors were encountered: