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 buildFor an optimized release build:
cargo build --releaseExamples live in examples.
Run one example with:
cargo run -p modelparams-examples --example beps_modelOther 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_genuchtenRun all workspace tests:
cargo testRun 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_benchmarksWorkspace 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.