an IMA /// configuration, generate a new commit /// object with IMA signatures. pub fn ima_sign(repo: &ostree::Repo, ostree_ref: &str, opts: &ImaOpts) -> Result<String> { let writer = &mut CommitRewriter::new( repo, opts)?; writer.map_commit(ostree_ref) } Step 4: ostree-rs-ext Over time we started adding new optional/experimental features to ostree logic (e.g. IMA hashing). This is new pure-Rust code, without unsafe bits. ostree-ext largely relies on the vast ecosystem of crates (serde, tokio, etc.)