DrSensor / DrSensor/rollup-plugin-rust

No need Cargo.toml but still respect it if it's there

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
discussion enhancement
Dominant language
JavaScript
Stars
41
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Just got some info that you can compile rust code without _Cargo.toml_ using `rustc`. Also, command `cargo rustc` will respect _Cargo.toml_ ⎝✧ᴥ✧⎠

future plans

![future plans](https://steemitimages.com/0x0/https://ipfs.busy.org/ipfs/QmNovdGiEz2yLMgAdm1FPMg3GJ8hyW2fKEYD6KNWJkGu85)

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 :disappointed:

#### Good References
https://github.com/rust-lang/cargo/issues/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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.