### Install libchm Crate Source: https://github.com/trypsynth/libchm/blob/master/README.md Use this command to add the libchm crate to your Rust project dependencies. ```sh cargo ad libchm ``` -------------------------------- ### Basic Usage of libchm Source: https://github.com/trypsynth/libchm/blob/master/README.md Demonstrates how to open a CHM file, enumerate its entries, and read a specific file's content. Requires the 'libchm' crate to be added as a dependency. ```rust use libchm::{ChmHandle, CHM_ENUMERATE_ALL, Result, unit_info_path}; fn main() -> Result<()> { let mut chm = ChmHandle::open("docs.chm")?; chm.enumerate(CHM_ENUMERATE_ALL, |ui| { println!("{}", unit_info_path(ui)); true // keep going })?; let bytes = chm.read_file("/index.html")?; println!("index size: {}", bytes.len()); Ok(()) } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.