-
Notifications
You must be signed in to change notification settings - Fork 70
/
Cargo.toml
103 lines (93 loc) · 2.44 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
[package]
name = "rfd"
version = "0.15.1"
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 = ["xdg-portal", "async-std"]
file-handle-inner = []
gtk3 = ["gtk-sys", "glib-sys", "gobject-sys"]
xdg-portal = ["ashpd", "urlencoding", "pollster"]
# Use async-std for xdg-portal
async-std = ["ashpd?/async-std"]
# Use tokio for xdg-portal
tokio = ["ashpd?/tokio"]
common-controls-v6 = ["windows-sys/Win32_UI_Controls"]
[dev-dependencies]
futures = "0.3.12"
[dependencies]
raw-window-handle = "0.6"
log = "0.4"
[target.'cfg(target_os = "macos")'.dependencies]
block2 = "0.5.0"
objc2 = "0.5.1"
objc2-foundation = { version = "0.2.0", features = [
"dispatch",
"NSArray",
"NSEnumerator",
"NSString",
"NSThread",
"NSURL",
] }
objc2-app-kit = { version = "0.2.0", features = [
"block2",
"NSAlert",
"NSApplication",
"NSButton",
"NSControl",
"NSOpenPanel",
"NSPanel",
"NSResponder",
"NSRunningApplication",
"NSSavePanel",
"NSView",
"NSWindow",
] }
core-foundation = "0.10.0"
core-foundation-sys = "0.8.7"
[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { version = "0.48", 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.10", optional = true, default-features = false, features = ["raw_handle"] }
urlencoding = { version = "2.1.0", optional = true }
pollster = { version = "0.3", optional = true }
# GTK
gtk-sys = { version = "0.18.0", features = ["v3_24"], optional = true }
glib-sys = { version = "0.18.0", optional = true }
gobject-sys = { version = "0.18.0", 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',
'HtmlAnchorElement',
'Window',
'File',
'FileList',
'FileReader',
'Blob',
'BlobPropertyBag',
'Url',
] }
wasm-bindgen-futures = "0.4.19"
[[example]]
name = "simple"
[[example]]
name = "async"
[package.metadata.docs.rs]
features = ["file-handle-inner"]