Crates.io | irox-safe-windows |
lib.rs | irox-safe-windows |
version | |
source | src |
created_at | 2023-12-23 14:09:54.576243 |
updated_at | 2024-12-01 22:54:15.425377 |
description | Wrappers around the windows native unsafe functions to make them ergonomic |
homepage | https://github.com/spmadden/irox-unsafe |
repository | https://github.com/spmadden/irox-unsafe |
max_upload_size | |
id | 1079138 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Wrappers around the windows native unsafe functions to make them ergonomic
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(())
}