Use `cargo run` tu build and run Rust projects
See: https://doc.rust-lang.org/book/second-edition/ch01-03-hello-cargo.html https://doc.rust-lang.org/stable/cargo/
Hi @lucatrv , thanks for your contribution. I am not familiar with Rust. Just want to confirm is cargo more widely used than rustc?
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
oh, there already was a PR open for this, oops. I opened another without checking https://github.com/formulahendry/vscode-code-runner/pull/977