Module 1 - Rust Setup
Why Rust?
Section titled “Why Rust?”The Rome SDK is built using Rust and leverages several key advantages of the language:
- Memory safety and thread safety without garbage collection
- Zero-cost abstractions for high performance
- Rich type system and ownership model that prevents common programming errors
- Excellent package management through Cargo
- Strong interoperability with other languages and systems
Installations
Section titled “Installations”Windows
Section titled “Windows”For smooth experience of installation in Windows it is better if you have wsl installed. Run the below command, if you don’t have it -
wsl --installNow, click here to install Rust via terminal or exe file. It will install Rustup, later on also Cargo, which is Rust’s Package Manager.
Run the below commands one by one:
rustup target add wasm32-unknown-unknowncargo install cargo-generate --features vendored-opensslcargo install cargo-run-scriptClick here to install Rust. It will install Rustup, later on also download Cargo, which is Rust’s Package Manager.
Run the below commands one by one:
rustup target add wasm32-unknown-unknowncargo install cargo-generate --features vendored-opensslcargo install cargo-run-scriptClick here to install Rust. It will install Rustup, later on also download Cargo, which is Rust’s Package Manager.
Run the below commands one by one:
rustup target add wasm32-unknown-unknowncargo install cargo-generate --features vendored-opensslcargo install cargo-run-script