#irox #api-bindings #irox-safe

irox-safe-windows

Wrappers around the windows native unsafe functions to make them ergonomic

3 releases

0.1.2 May 18, 2024
0.1.1 Mar 3, 2024
0.1.0 Dec 23, 2023

#17 in #irox

Download history 3/week @ 2024-02-17 13/week @ 2024-02-24 138/week @ 2024-03-02 59/week @ 2024-03-09 1/week @ 2024-03-16 30/week @ 2024-03-30 7/week @ 2024-04-06 188/week @ 2024-05-18

188 downloads per month
Used in irox-unsafe

MIT/Apache

39KB
884 lines

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

Dependencies

~0–39MB
~568K SLoC