#api-bindings #irox #winapi #safe-wrapper #api-wrapper #irox-safe

irox-safe-windows

Wrappers around the windows native unsafe functions to make them ergonomic

5 releases

new 0.1.4 Mar 1, 2025
0.1.3 Dec 1, 2024
0.1.2 May 18, 2024
0.1.1 Mar 3, 2024
0.1.0 Dec 23, 2023

#127 in Windows APIs

Download history 90/week @ 2024-11-27 40/week @ 2024-12-04 7/week @ 2024-12-11 146/week @ 2025-02-26

146 downloads per month
Used in irox-unsafe

MIT/Apache

73KB
2K SLoC

IROX-SAFE-WINDOWS

Wrappers around the windows native unsafe functions to make them ergonomic

Credentials Cache

  • Prompt for a username & password:
use irox_safe_windows::credentials::{Credentials, PromptOptions, prompt};
use irox_safe_windows::error::Error;

pub fn main() -> Result<(), Error> {
    let options = PromptOptions::new()
        .with_title("Little Title Text!")
        .with_subtitle("Big Title Text!");
    let creds : Credentials = prompt(&options)?;
    let username : &String = &creds.username;
    let password : &String = &creds.password;
    let user_requested_save : &bool = &creds.save_requested;
    Ok(())
}

img.png


lib.rs:

Safe(r) wrappers around the unsafe windows API functions.

Dependencies

~2–36MB
~514K SLoC