This directory contains the Rust workspace for modelparams.
modelparams: main library and integration tests.modelparams-examples: top-level example package.modelparams-derive: procedural macros used bymodelparams.
Run commands from this directory:
cd rust cargo build
For an optimized release build:
cargo build --releaseExamples live in examples.
Run one example with:
cargo run -p modelparams-examples --example beps_model
Other available examples:
cargo run -p modelparams-examples --example pml_model cargo run -p modelparams-examples --example soil_model cargo run -p modelparams-examples --example van_genuchten
Run all workspace tests:
cargo test
Run tests for the main crate only:
cargo test -p modelparamsRun a specific integration test:
cargo test -p modelparams --test par_map cargo test -p modelparams --test sceua_benchmarks
Workspace lint settings are defined in Cargo.toml. In particular,
unused_imports is allowed at the workspace level so unused imports do not
produce warnings or fail strict warning-as-error builds.