feat(sharing): Switch to arboard crate

This commit is contained in:
Henrik Friedrichsen
2024-03-04 11:58:23 +01:00
parent e22b711d9c
commit 159bfc4d9c
7 changed files with 226 additions and 225 deletions

View File

@@ -38,7 +38,7 @@ codegen-units = 16
[dependencies]
chrono = "0.4"
clap = "4.5.1"
clipboard = {version = "0.5", optional = true}
arboard = {version = "3.3", optional = true}
crossbeam-channel = "0.5"
zbus = {version = "4.1.2", default-features = false, features = ["tokio"], optional = true}
fern = "0.6"
@@ -68,9 +68,6 @@ unicode-width = "0.1.9"
url = "2.5"
cursive_buffered_backend = "0.6.1"
[target.'cfg(target_os = "linux")'.dependencies]
wl-clipboard-rs = {version = "0.8", optional = true}
[target.'cfg(unix)'.dependencies]
signal-hook = "0.3.0"
@@ -102,8 +99,8 @@ pancurses_backend = ["cursive/pancurses-backend", "pancurses/win32"]
portaudio_backend = ["librespot-playback/portaudio-backend"]
pulseaudio_backend = ["librespot-playback/pulseaudio-backend"]
rodio_backend = ["librespot-playback/rodio-backend"]
share_clipboard = ["clipboard", "wl-clipboard-rs"] # Share a link to the system clipboard
share_selection = ["clipboard", "wl-clipboard-rs"] # Use the primary selection for sharing - linux and bsd only
share_clipboard = ["arboard", "arboard/wayland-data-control"] # Share a link to the system clipboard
share_selection = ["arboard", "arboard/wayland-data-control"] # Use the primary selection for sharing - linux and bsd only
termion_backend = ["cursive/termion-backend"]
[package.metadata.deb]