$ winreg
v0.56.0MAJOR UPDATERust bindings to MS Windows Registry API
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"
Links • https://github.com/gentoo90/winreg-rs • https://crates.io/crates/winreg • https://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
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add winregOr add to Cargo.toml: winreg = "0.56.0"