$ winreg

v0.56.0MAJOR UPDATE

Rust bindings to MS Windows Registry API

Downloads: 145.2M
Recent: 19.3M
Versions: 35
Updated: March 14, 2026

Latest Update Summary

Crate

Name: winreg New version: 0.56.0 Release date: 2026-03-14T22:02:40.054127Z

Crate readme

Short description Rust bindings to MS Windows Registry API.

Long description This crate provides Rust bindings to the Microsoft Windows Registry API, enabling basic operations such as opening, creating, deleting, and renaming keys, loading application hives, and reading/writing values. It supports seamless conversion between registry types and Rust primitives, transactions, and serialization of Rust types into/from the registry.

Features • Basic registry operations • Transactions • Serialization with serde • Support for basic and transacted serialization of Rust types • Seamless conversion between REG_* types and Rust primitives

Code Examples Add to Cargo.toml

 [dependencies]
winreg = "0.56"

Basic usage

 use std::io;
use std::path::Path;
use winreg::enums::*;
use winreg::RegKey;

fn main() -> io::Result<()> {
    // code...
    Ok(())
}

Transactions

 [dependencies]
winreg = { version = "0.56", features = ["transactions"] }

Serialization

 [dependencies]
winreg = { version = "0.56", features = ["serialization-serde"] }
serde = "1"
serde_derive = "1"

Linkshttps://github.com/gentoo90/winreg-rshttps://crates.io/crates/winreghttps://docs.rs/winreg

https://docs.rs/winreg https://api.github.com/repos/gentoo90/winreg-rs/releases/297074832

Release info

Release version:

Release description

Code Examples

Minor update: 0.55.0 → 0.56.0

$ DOWNLOADS TREND

114.8M145.2M

$ VERSION HISTORY

v0.56.0March 14, 2026
v0.55.0January 12, 2025

$ LINKS

$ INSTALL

cargo add winreg

Or add to Cargo.toml: winreg = "0.56.0"