7 releases (4 breaking)

0.4.0 Jan 7, 2025
0.3.0 Sep 25, 2024
0.2.0 Jul 3, 2024
0.1.2 Jun 7, 2024
0.0.0 Feb 15, 2024

#116 in Windows APIs

Download history 281081/week @ 2024-09-27 304166/week @ 2024-10-04 293299/week @ 2024-10-11 315688/week @ 2024-10-18 310242/week @ 2024-10-25 444056/week @ 2024-11-01 471630/week @ 2024-11-08 463940/week @ 2024-11-15 425706/week @ 2024-11-22 408868/week @ 2024-11-29 516332/week @ 2024-12-06 539488/week @ 2024-12-13 253597/week @ 2024-12-20 271957/week @ 2024-12-27 528959/week @ 2025-01-03 621286/week @ 2025-01-10

1,775,969 downloads per month
Used in 5,340 crates (13 directly)

MIT/Apache

105KB
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–8.5MB