native-dialog
A library to display file choosers and message boxes. Supports GNU/Linux, BSD Unix, macOS and Windows.
Installation
cargo add native-dialog
Usage
use ;
Misc
Why the dialogs look ugly/blurry on Windows?
Turn on crate features or embed manifests into the .exe
to enable visual styling and dpi awareness for your program. Check out examples/windows_manifest and examples/windows_features for example.
Why the program crashed when opening a dialog on macOS?
The API of macOS has a limitation that all UI operations must be performed on the main thread.