rustydialogs 0.4.2

Provides a simple and cross-platform way to display native dialog boxes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
fn main() {
	let current_dir = std::env::current_dir().ok();

	let dialog = rustydialogs::FolderDialog {
		title: "Select a folder",
		directory: current_dir.as_deref(),
		owner: None,
	};

	match dialog.show() {
		Some(path) => println!("Selected folder: {}", path.display()),
		None => println!("Folder selection canceled"),
	}
}