winreg 0.56.0

Rust bindings to MS Windows Registry API
Documentation
// Copyright 2023, Igor Shaula
// Licensed under the MIT License <LICENSE or
// http://opensource.org/licenses/MIT>. This file
// may not be copied, modified, or distributed
// except according to those terms.
extern crate serde_transcode;
extern crate winreg;
use std::error::Error;
use winreg::HKCR;

fn main() -> Result<(), Box<dyn Error>> {
    let key = HKCR.open_subkey("Folder")?;

    let mut deserializer = winreg::decoder::Decoder::from_key(&key)?;
    let mut serializer = serde_json::Serializer::pretty(std::io::stdout());

    serde_transcode::transcode(&mut deserializer, &mut serializer)?;
    Ok(())
}