Development¶
These pages are for modifying molpack rather than just using it.
molpack is a Rust packing engine with three public surfaces:
molcrafts-molpackRust library (libname:molpack)molpackCLI binary (clifeature)molcrafts-molpackPython wheel underpython/
Read first¶
- Architecture maps modules, data flow, optimizer loops, and the objective-evaluation hot path.
- Extending walks through custom
AtomRestraint,Region,Handler, andRelaxerimplementations.
Validation commands¶
cargo test -p molcrafts-molpack --lib --tests
cargo test -p molcrafts-molpack --release --test examples_batch -- --ignored
cd python
maturin develop --release
pytest
cargo fmt
cargo clippy -- -D warnings
The ignored examples_batch test runs the canonical Packmol-equivalent
workloads and is intentionally slower than the fast unit/integration tier.