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, andCallbackimplementations, plus binding a custom in-loop optimizer.
Validation commands¶
cargo test -p molcrafts-molpack --lib --features cli
cargo test -p molcrafts-molpack --doc --features cli
cd python
maturin develop --release
pytest
cargo fmt
cargo clippy --all-targets --all-features -- -D warnings
Behaviour is tested in #[cfg(test)] modules next to the code that owns it;
molpack has no tests/ directory, no benchmark suite and no regression
harness. The whole Rust tier runs in seconds.