nfd-rs
nfd-rs
is a Rust binding to the library nativefiledialog, that provides a convenient cross-platform interface to opening file dialogs on Linux, OS X and Windows.
This crate has been tested on Mac, Window and Linux (Ubuntu 14.04) and supports single/mutliple and save dialogs, notice APIs may break with newer versions.
Usage
-
Add the dependency
nfd
in yourCargo.toml
[] = { = "https://github.com/saurvs/nfd-rs.git" }
-
Open a single file dialog
extern crate nfd; use Response
-
Open a multi file dialog using builder with jpg files as filter
extern crate nfd; use Response