Skip to content

Use cargo run tu build and run Rust projects#354

Open
lucatrv wants to merge 1 commit into
formulahendry:masterfrom
lucatrv:patch-1
Open

Use cargo run tu build and run Rust projects#354
lucatrv wants to merge 1 commit into
formulahendry:masterfrom
lucatrv:patch-1

Conversation

@lucatrv

@lucatrv lucatrv commented Aug 30, 2018

Copy link
Copy Markdown

@formulahendry

Copy link
Copy Markdown
Owner

Hi @lucatrv , thanks for your contribution. I am not familiar with Rust. Just want to confirm is cargo more widely used than rustc?

@lucatrv

lucatrv commented Jan 16, 2019

Copy link
Copy Markdown
Author

cargo is Rust’s build system and package manager, while rustc is the compiler. You may use rustc directly to compile a single file, but developers definitely use cargo to build their projects.

See for instance:
https://www.rust-lang.org/learn/get-started
https://doc.rust-lang.org/book/ch01-03-hello-cargo.html

@danielrab

Copy link
Copy Markdown

oh, there already was a PR open for this, oops. I opened another without checking #977

@laundmo

laundmo commented Aug 26, 2024

Copy link
Copy Markdown

@formulahendry Just had someone learning Rust get perplexed why nothing worked. The issue was caused by what this PR would solve. cargo is definitely the de-facto standard way to run Rust projects, with only a few special cases with complex setups (like the linux kernel or cross-language projects) using something else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants