Skip to main content

readme_install/
readme_install.rs

1use bio_tools::{install::Installer, tool_definitions::Tool};
2
3fn main() -> Result<(), Box<dyn std::error::Error>> {
4    let mut installer = Installer::for_process_executables("process_executables")?;
5    installer.install(Tool::OpenDde)?;
6
7    // Independent recipes continue after an upstream failure.
8    let report = installer.install_many([Tool::Boltz2, Tool::ProteinMpnn]);
9    for failure in &report.failed {
10        eprintln!("{}: {}", failure.tool.name(), failure.error);
11    }
12
13    // Status: `status_quick` inspects markers, executables, and required assets
14    // without launching the tool; `status_full` also runs its help/version probe.
15    let status = installer.status_quick(Tool::OpenDde);
16    println!("{:?}: {}", status.result, status.detail);
17
18    let report = installer.uninstall(Tool::OpenDde)?;
19    println!("Removed {} paths", report.removed.len());
20    Ok(())
21}