irox-safe-windows

Crates.ioirox-safe-windows
lib.rsirox-safe-windows
version0.1.4
created_at2023-12-23 14:09:54.576243+00
updated_at2025-03-01 16:21:32.476028+00
descriptionWrappers around the windows native unsafe functions to make them ergonomic
homepagehttps://github.com/spmadden/irox-unsafe
repositoryhttps://github.com/spmadden/irox-unsafe
max_upload_size
id1079138
size103,431
Sean Madden (spmadden)

documentation

README

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

Commit count: 69

cargo fmt