Comment on page
Rust
brew install rustup-init
rustup-init
rustup update
rustup component add rls-preview rust-analysis rust-src
// hello.rs
fn main() {
println!("Hello World!");
}
rustc hello.rs
./hello
To create a new project, then compile and run it:
cargo new rust_example
cd rust_example
cargo run
Last modified 5yr ago