SkillAgentSearch skills...

Wfd

Windows Open and Save dialogs in Rust using winapi

Install / Use

/learn @ben-wallis/Wfd
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

wfd

Build Status Crates.io License: MIT

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

View on GitHub
GitHub Stars22
CategoryDevelopment
Updated1mo ago
Forks6

Languages

Rust

Security Score

95/100

Audited on Feb 16, 2026

No findings