vscode-code-runner icon indicating copy to clipboard operation
vscode-code-runner copied to clipboard

Use `cargo run` tu build and run Rust projects

Open lucatrv opened this issue 7 years ago • 4 comments

See: https://doc.rust-lang.org/book/second-edition/ch01-03-hello-cargo.html https://doc.rust-lang.org/stable/cargo/

lucatrv avatar Aug 30 '18 20:08 lucatrv

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

formulahendry avatar Jan 16 '19 08:01 formulahendry

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

lucatrv avatar Jan 16 '19 23:01 lucatrv

oh, there already was a PR open for this, oops. I opened another without checking https://github.com/formulahendry/vscode-code-runner/pull/977

danielrab avatar Sep 20 '22 07:09 danielrab