6 releases (3 breaking)

0.3.0 Sep 25, 2024
0.2.0 Jul 3, 2024
0.1.2 Jun 7, 2024
0.1.1 Apr 12, 2024
0.0.0 Feb 15, 2024

#121 in Windows APIs

Download history 159562/week @ 2024-08-20 173809/week @ 2024-08-27 215142/week @ 2024-09-03 213876/week @ 2024-09-10 232792/week @ 2024-09-17 265189/week @ 2024-09-24 296325/week @ 2024-10-01 292415/week @ 2024-10-08 313452/week @ 2024-10-15 313991/week @ 2024-10-22 350327/week @ 2024-10-29 467345/week @ 2024-11-05 465399/week @ 2024-11-12 469229/week @ 2024-11-19 382056/week @ 2024-11-26 361433/week @ 2024-12-03

1,761,140 downloads per month
Used in 4,775 crates (12 directly)

MIT/Apache

99KB
2.5K SLoC

Windows registry

The windows-registry crate provides simple, safe, and efficient access to the Windows registry.

Start by adding the following to your Cargo.toml file:

[dependencies.windows-registry]
version = "0.3"

Read and write registry keys and values as needed:

use windows_registry::*;

fn main() -> Result<()> {
    let key = CURRENT_USER.create("software\\windows-rs")?;

    key.set_u32("number", 123)?;
    key.set_string("name", "Rust")?;

    println!("{}", key.get_u32("number")?);
    println!("{}", key.get_string("name")?);

    Ok(())
}

Dependencies

~0–4.5MB