Originally published on php2rust.dev — part of the PHP to Rust course. View this lesson on the original site.
In a terminal (or command prompt on Windows), run:
rustc --version
You should see something like rustc 1.75.0 (or similar). Then check Cargo:
cargo --version
If both commands print a version, Rust and Cargo are installed. You're ready to write and run Rust code.
What's next
Let's set up your editor and then write a "Hello Rust" program with Cargo.
From PHP to Rust — Getting Started with Rust