-
Notifications
You must be signed in to change notification settings - Fork 47
/
Cargo.toml
73 lines (67 loc) · 2.43 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
[package]
authors = ["Bilal Elmoussaoui <[email protected]>"]
categories = ["gui", "os::linux-apis", "api-bindings"]
description = "XDG portals wrapper in Rust using zbus"
edition = "2021"
exclude = ["interfaces/*.xml", "ashpd-demo/"]
keywords = ["portal", "flatpak", "xdg", "desktop", "dbus"]
license = "MIT"
name = "ashpd"
repository = "https://github.com/bilelmoussaoui/ashpd"
version = "0.11.0"
rust-version = "1.75"
[features]
async-std = ["zbus/async-io", "dep:async-fs", "dep:async-net"]
default = ["tokio"]
backend = ["async-trait", "tokio"]
gtk4 = ["gtk4_x11", "gtk4_wayland"]
gtk4_wayland = ["gdk4wayland", "glib", "dep:gtk4"]
gtk4_x11 = ["gdk4x11", "glib", "dep:gtk4"]
raw_handle = ["raw-window-handle"]
tokio = ["zbus/tokio", "dep:tokio"]
glib = ["dep:glib"]
wayland = ["wayland-client", "wayland-protocols", "wayland-backend"]
[dependencies]
async-fs = { version = "2.1", optional = true }
async-net = { version = "2.0", optional = true }
async-trait = { version = "0.1", optional = true }
enumflags2 = "0.7"
futures-channel = "0.3"
futures-util = "0.3"
gdk4wayland = { package = "gdk4-wayland", version = "0.9", optional = true }
gdk4x11 = { package = "gdk4-x11", version = "0.9", optional = true }
glib = { version = "0.20", optional = true }
gtk4 = { version = "0.9.3", optional = true }
pipewire = { version = "0.8", optional = true }
rand = { version = "0.8", default-features = false, features = [
"std",
"std_rng",
] }
raw-window-handle = { version = "0.6", optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_repr = "0.1"
tokio = { version = "1.41", features = [
"fs",
"io-util",
], optional = true, default-features = false }
tracing = { version = "0.1", optional = true }
url = { version = "2.5", features = ["serde"] }
wayland-backend = { version = "0.3", optional = true, features = [
"client_system",
] }
wayland-client = { version = "0.31", optional = true }
wayland-protocols = { version = "0.32", optional = true, features = [
"unstable",
"client",
"staging",
] }
zbus = { version = "5.0", default-features = false, features = ["url"] }
[dev-dependencies]
serde_json = "1.0"
reis = { version = "0.4", features = ["tokio"] }
pipewire = "0.8.0"
tokio = { version = "1.41", features = [ "rt-multi-thread", "macros" ] }
[package.metadata.docs.rs]
features = ["backend", "gtk4", "raw_handle"]
rustc-args = ["--cfg", "docsrs"]
rustdoc-args = ["--cfg", "docsrs", "--generate-link-to-definition"]