| 1 |
[package] |
| 2 |
authors.workspace = true |
| 3 |
categories.workspace = true |
| 4 |
description = "XDG portals wrapper in Rust using zbus" |
| 5 |
edition.workspace = true |
| 6 |
keywords.workspace = true |
| 7 |
license.workspace = true |
| 8 |
name = "ashpd" |
| 9 |
repository.workspace = true |
| 10 |
version.workspace = true |
| 11 |
rust-version = "1.87" |
| 12 |
|
| 13 |
[features] |
| 14 |
async-io = ["zbus/async-io", "futures-util/io"] |
| 15 |
default = ["tokio"] |
| 16 |
|
| 17 |
frontend = [ |
| 18 |
"account", "background", "camera", "clipboard", |
| 19 |
"dynamic_launcher", "email", "file_chooser", "game_mode", |
| 20 |
"global_shortcuts", "inhibit", "input_capture", "location", |
| 21 |
"memory_monitor", "network_monitor", "notification", "open_uri", |
| 22 |
"power_profile_monitor", "print", "proxy_resolver", |
| 23 |
"realtime", "remote_desktop", "screencast", "screenshot", |
| 24 |
"secret", "settings", "trash", "usb", "wallpaper", |
| 25 |
"flatpak", "documents", |
| 26 |
] |
| 27 |
backend = ["dep:async-trait"] |
| 28 |
|
| 29 |
account = [] |
| 30 |
background = [] |
| 31 |
camera = [] |
| 32 |
clipboard = [] |
| 33 |
dynamic_launcher = ["dep:serde_repr"] |
| 34 |
email = [] |
| 35 |
file_chooser = ["dep:serde_repr"] |
| 36 |
game_mode = ["dep:serde_repr"] |
| 37 |
global_shortcuts = [] |
| 38 |
inhibit = ["dep:serde_repr"] |
| 39 |
input_capture = ["dep:serde_repr"] |
| 40 |
location = ["dep:serde_repr"] |
| 41 |
memory_monitor = [] |
| 42 |
network_monitor = ["dep:serde_repr"] |
| 43 |
notification = [] |
| 44 |
open_uri = [] |
| 45 |
power_profile_monitor = [] |
| 46 |
print = [] |
| 47 |
proxy_resolver = [] |
| 48 |
realtime = [] |
| 49 |
remote_desktop = ["dep:serde_repr"] |
| 50 |
screencast = ["dep:serde_repr"] |
| 51 |
screenshot = ["dep:serde_repr"] |
| 52 |
secret = [] |
| 53 |
settings = [] |
| 54 |
trash = ["dep:serde_repr"] |
| 55 |
usb = [] |
| 56 |
wallpaper = [] |
| 57 |
flatpak = ["dep:serde_repr"] |
| 58 |
documents = ["dep:serde_repr"] |
| 59 |
|
| 60 |
gtk4 = ["gtk4_x11", "gtk4_wayland"] |
| 61 |
gtk4_wayland = ["gdk4wayland", "glib", "dep:gtk4", "dep:futures-channel"] |
| 62 |
gtk4_x11 = ["gdk4x11", "glib", "dep:gtk4", "dep:futures-channel"] |
| 63 |
raw_handle = ["raw-window-handle"] |
| 64 |
tokio = ["zbus/tokio", "dep:tokio"] |
| 65 |
glib = ["dep:glib"] |
| 66 |
wayland = ["wayland-client", "wayland-protocols", "wayland-backend", "dep:futures-channel"] |
| 67 |
pipewire = ["dep:pipewire", "dep:futures-channel"] |
| 68 |
|
| 69 |
[dependencies] |
| 70 |
async-trait = { version = "0.1", optional = true } |
| 71 |
enumflags2 = "0.7" |
| 72 |
getrandom = "0.4" |
| 73 |
futures-channel = { version = "0.3", optional = true } |
| 74 |
futures-util = "0.3" |
| 75 |
gdk4wayland = { package = "gdk4-wayland", version = "0.11", optional = true } |
| 76 |
gdk4x11 = { package = "gdk4-x11", version = "0.11", optional = true, features = [ "xlib" ] } |
| 77 |
glib = { version = "0.22", optional = true } |
| 78 |
gtk4 = { version = "0.11", optional = true } |
| 79 |
pipewire = { version = "0.9", optional = true } |
| 80 |
raw-window-handle = { version = "0.6", optional = true } |
| 81 |
serde = { version = "1.0", features = ["derive"] } |
| 82 |
serde_repr = { version = "0.1", optional = true } |
| 83 |
tokio = { version = "1.43", optional = true, default-features = false } |
| 84 |
tracing = { version = "0.1", optional = true } |
| 85 |
wayland-backend = { version = "0.3", optional = true, features = [ |
| 86 |
"client_system", |
| 87 |
] } |
| 88 |
wayland-client = { version = "0.31", optional = true } |
| 89 |
wayland-protocols = { version = "0.32", optional = true, features = [ |
| 90 |
"unstable", |
| 91 |
"client", |
| 92 |
"staging", |
| 93 |
] } |
| 94 |
zbus = { version = "5.13", default-features = false } |
| 95 |
|
| 96 |
[dev-dependencies] |
| 97 |
serde_json = "1.0" |
| 98 |
reis = { version = "0.6", features = ["tokio"] } |
| 99 |
pipewire = "0.9.0" |
| 100 |
tokio = { version = "1.41", features = [ "rt-multi-thread", "macros" ] } |
| 101 |
gst = { package = "gstreamer", version = "0.25" } |
| 102 |
quick-xml = "0.39" |
| 103 |
|
| 104 |
[package.metadata.docs.rs] |
| 105 |
features = ["backend", "gtk4", "raw_handle", |
| 106 |
"account","background","camera","clipboard","dynamic_launcher","email","file_chooser", |
| 107 |
"game_mode","global_shortcuts","inhibit","input_capture","location","memory_monitor", |
| 108 |
"network_monitor","notification","open_uri","power_profile_monitor","print", |
| 109 |
"proxy_resolver","realtime","remote_desktop","screencast","screenshot","secret", |
| 110 |
"settings","trash","usb","wallpaper","flatpak","documents" |
| 111 |
] |
| 112 |
rustdoc-args = ["--generate-link-to-definition"] |
| 113 |
|
| 114 |
[[example]] |
| 115 |
name = "screen_cast_gstreamer" |
| 116 |
required-features = ["screencast"] |
| 117 |
|
| 118 |
[[example]] |
| 119 |
name = "screen_cast_pw" |
| 120 |
required-features = ["screencast", "pipewire"] |
| 121 |
|
| 122 |
[[example]] |
| 123 |
name = "input_capture" |
| 124 |
required-features = ["input_capture"] |