forked from PolyMeilex/rfd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
75 lines (64 loc) · 1.81 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
[package]
name = "rfd"
version = "0.11.2"
edition = "2021"
authors = ["Poly <[email protected]>"]
description = "Rusty File Dialog"
keywords = ["file", "ui", "dialog"]
license = "MIT"
repository = "https://github.com/PolyMeilex/rfd"
documentation = "https://docs.rs/rfd"
[features]
default = ["gtk3"]
file-handle-inner = []
gtk3 = ["gtk-sys", "glib-sys", "gobject-sys"]
xdg-portal = ["ashpd", "urlencoding", "pollster"]
common-controls-v6 = ["windows/Win32_UI_Controls"]
[dev-dependencies]
futures = "0.3.12"
[dependencies]
raw-window-handle = "0.5"
log = "0.4"
[target.'cfg(target_os = "macos")'.dependencies]
objc = "0.2.7"
objc_id = "0.1.1"
dispatch = "0.2.0"
block = "0.1.6"
objc-foundation = "0.1.1"
[target.'cfg(target_os = "windows")'.dependencies]
windows = { version = "0.44", features = [
"Win32_Foundation",
"Win32_System_Com",
"Win32_UI_Shell_Common",
"Win32_UI_Shell",
"Win32_UI_WindowsAndMessaging",
] }
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "dragonfly", target_os = "netbsd", target_os = "openbsd"))'.dependencies]
# XDG Desktop Portal
ashpd = { version = "0.3", optional = true }
urlencoding = { version = "2.1.0", optional = true }
pollster = { version = "0.3", optional = true }
# GTK
gtk-sys = { version = "0.16", features = ["v3_24"], optional = true }
glib-sys = { version = "0.16", optional = true }
gobject-sys = { version = "0.16", optional = true }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.69"
js-sys = "0.3.46"
web-sys = { version = "0.3.46", features = [
'Document',
'Element',
'HtmlInputElement',
'HtmlButtonElement',
'Window',
'File',
'FileList',
'FileReader',
] }
wasm-bindgen-futures = "0.4.19"
[[example]]
name = "simple"
[[example]]
name = "async"
[package.metadata.docs.rs]
features = ["file-handle-inner"]