My first stab at Rust. Currently, this is a single-threaded webserver with limited features.
This is based on the Udemy course and the Rust Book
- Run this crate
cargo run 127.0.0.1:8080
- Browse to the server address
https://www.rust-lang.org/tools/install
After installing, run cargo
commands from a terminal.
Microsoft Visual Code has good Rust support
https://doc.rust-lang.org/book/ch01-03-hello-cargo.html
Create a new Rust project:
cargo new project_name
Format all files in the project using Rust standardized formatting:
cargo fmt
Build & run in debug mode:
cargo run
Build debug binaries in ./target/debug
cargo build
Build release binaries in ./target/release
cargo build --release