Rust - rust-lang.org
- Create
/make_vfsdirectory:
cargo new make_vfs- Navigate to
/make_vfsdirectory. - Open
/make_vfsdirectory in VS Code:
code .- Copy this script into
main.rsfile. - Add
base64crate dependency toCargo.tomlfile
[dependencies]
base64 = "0.22.1"
# Customizing Builds with Release Profiles at
# https://doc.rust-lang.org/book/ch14-01-release-profiles.html
[profile.dev]
opt-level = 0
[profile.release]
opt-level = 3- Compile to executable binary:
cargo build --release- Output:
D:\rust\make_vfs>cargo build --release
Compiling base64 v0.22.1
Compiling make_vfs v0.1.0 (D:\rust\make_vfs)
Finished `release` profile [optimized] target(s) in 1.51s