Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DrSensor opened this issue Sep 10, 2018 · 0 comments
Open

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

DrSensor opened this issue Sep 10, 2018 · 0 comments
Labels
discussion Discussing about note or idea enhancement New feature or request

Comments

@DrSensor
Copy link
Owner

DrSensor commented Sep 10, 2018

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


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 😞

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

@DrSensor DrSensor added discussion Discussing about note or idea enhancement New feature or request labels Sep 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Discussing about note or idea enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant