.. | ||
.gitignore | ||
Cargo.toml | ||
main.rs | ||
openapi.json | ||
readme.md |
installation
Rustup gets you the ability to install rust in any version, from stable to cutting edge.
Linux, macos (step 1)
use apt, pacman, curl, brew or whatever, to install rustup.
windows (alternate step 1)
choco install -y rustup
Always (steps 2 and so on)
rustup-init.sh
(Windows: rustup-init.ex, e.g. %AppData%\Local\Temp\chocolatey\rustup.install\1.25.1\rustup-init.exe)- select a good match in the dialog of this CLI installer,
- i.e. stable and default amount of features should be fine
- rust comes with
cargo
as a ``crate'' manager for package installation
Get dependencies and run
cargo build # gets dependencies from Cargo.toml
cargo run # re-runs on (some?) changes