### Install rswidevine Source: https://docs.rs/rswidevine Add the crate to your project or build the repository directly. ```bash cargo add rswidevine ``` ```bash cargo build ``` -------------------------------- ### Run the CLI Source: https://docs.rs/rswidevine Execute the CLI with the required features to access help or perform inspections. ```bash cargo run --features cli -- --help ``` ```bash # Inspect a device file cargo run --features cli --example device_info ./device.wvd # Inspect a PSSH (base64) cargo run --features cli --example pssh_inspect ``` -------------------------------- ### Use rswidevine as a library Source: https://docs.rs/rswidevine Load a device file and parse a PSSH base64 string to extract key IDs. ```rust use rswidevine::device::Device; use rswidevine::pssh::Pssh; let device = Device::from_path("./device.wvd")?; let pssh = Pssh::from_base64("")?; let key_ids = pssh.key_ids()?; # anyhow::Ok(()) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.