Wfd
Windows Open and Save dialogs in Rust using winapi
Install / Use
/learn @ben-wallis/WfdREADME
wfd
This crate provides a simple to use abstraction over the Open and Save dialogs in the Windows API, usable under both GNU and MSVC toolchains, with minimal dependencies.
Examples
Standard open dialog
let dialog_result = wfd::open_dialog(Default::default())?;
Folder picker open dialog
use wfd::{DialogParams};
let params = DialogParams {
options: FOS_PICKFOLDERS,
.. Default::default()
};
let dialog_result = wfd::open_dialog(params)?;
Save dialog with custom file extension filters
use wfd::{DialogParams};
let params = DialogParams {
title: "Select an image to open",
file_types: vec![("JPG Files", "*.jpg;*.jpeg"), ("PNG Files", "*.png"), ("Bitmap Files", "*.bmp")],
default_extension: "jpg",
..Default::default()
};
let dialog_result = wfd::save_dialog(params)?;
Further examples can be found in src\examples
Related Skills
himalaya
345.9kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
taskflow
345.9kname: taskflow description: Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layer
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
