Lightweight Cargo Hello World
Rust+Cargo lightweight hello world with the most minimum binary size possible.
requirements
1: Rustup (Rustc, Cargo)
Install it from https://rustup.rs/
2: Nigthly
rustup toolchain install nightly
3: Just
cargo install just
Building
Build the project (with the default nightly toolchian target) as following:
just build
Build the project (with an arbitrary target which is i686-unknown-linux-gnu for this example) as following:
just build i686-unknown-linux-gnu