Some notes as I learn Rust.
cargo clippy # Linting, identifies issues and fixes
cargo clippy --fix # Linting, identifies issues and applies fixes
cargo fmt # Apply suggested code formatting
cargo test # Run all tests
cargo build # Build debug binary in `target/debug`
cargo build --release # Build release binary in `target/release`. Can be 10x as fast as debug
-
You can specify arguments for debugging in
.vscode/launch.json
as described here
There are two primary options for data representation beyond built in data structures:
- ndarray, the closest equivalent of numpy. Has some basic linear algebra.
- nalgebra, for focused on linear algebra
Reading andwriating ndarray data to files - https://crates.io/crates/ndarray-csv
The primary plotting package is plotters. Some resources:
- A book about plotters - https://plotters-rs.github.io/book/basic/basic_data_plotting.html