{"id":57668,"library":"winreg","title":"winreg","description":"Rust bindings to the MS Windows Registry API for reading and writing registry keys and values.","status":"active","version":"0.56.0","language":"rust","source_language":null,"source_url":"https://github.com/gentoo90/winreg-rs","tags":["windows","registry","win32"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nwinreg = \"0.56.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add winreg","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"RegKey","correct":"use winreg::RegKey;"}],"quickstart":{"code":"use winreg::RegKey;\nuse winreg::enums::*;\n\nfn main() {\n    let hklm = RegKey::predef(HKEY_LOCAL_MACHINE);\n    let subkey = hklm.open_subkey(\"SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\").unwrap();\n    let val: String = subkey.get_value(\"ProgramFilesDir\").unwrap();\n    println!(\"{}\", val);\n}","lang":"rust","description":"Opens a registry key and reads a value."},"warnings":[{"fix":"Use `?` or match on `Result` to handle access denied errors.","message":"Registry operations may fail with insufficient permissions; handle errors appropriately.","severity":"gotcha","affected_versions":">=0.1.0"}],"env_vars":null,"search_vec":"'api':9 'bind':3 'key':15 'ms':6 'read':11 'registri':8,14,19 'rust':2 'valu':17 'win32':20 'window':7,18 'winreg':1 'write':13","created_at":"2026-06-16T15:52:39.856773+00:00","updated_at":"2026-06-16T15:52:39.856773+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/gentoo90/winreg-rs","github":"https://github.com/gentoo90/winreg-rs","docs":"https://docs.rs/winreg/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-16","next_check":"2026-12-13","install_tag":null}}