Git dependency

// The version will go into the lock file, can update with `cargo update rand`
rand = { git = ""}

// with rev, not recommended
rand = { git = "", rev="9f35b8e"}

Make smaller binary

// This will stop cleanup when the program panics, leaving it to the OS
panic = 'abort'

Add a feature from a crate

syn = { version = "1.0", features = ["extra-traits"] }

Change the default build target

Make a new file in the project root at: .cargo/config

target = "wasm32-unknown-unknown"

This will also update how rust analyzer reacts to

#[cfg(target_arch = "wasm32")]