2019-12-18 05:55:32 +01:00
|
|
|
[package]
|
|
|
|
|
name = "window_clipboard"
|
2024-02-13 02:45:43 +01:00
|
|
|
version = "0.4.1"
|
2019-12-18 05:55:32 +01:00
|
|
|
authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
|
2023-04-11 06:21:59 +02:00
|
|
|
edition = "2021"
|
2019-12-18 05:55:32 +01:00
|
|
|
description = "A library to obtain clipboard access from a `raw-window-handle`"
|
|
|
|
|
license = "MIT"
|
2020-03-12 07:12:02 +01:00
|
|
|
repository = "https://github.com/hecrj/window_clipboard"
|
2019-12-18 05:55:32 +01:00
|
|
|
documentation = "https://docs.rs/window_clipboard"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
keywords = ["clipboard", "window", "ui", "gui", "raw-window-handle"]
|
|
|
|
|
categories = ["gui"]
|
|
|
|
|
|
2026-04-24 06:50:48 +02:00
|
|
|
[features]
|
|
|
|
|
# Yoda: put the unix clipboard backends behind opt-in features. Upstream
|
|
|
|
|
# pulled both X11 + Wayland unconditionally on unix — pure bloat for
|
|
|
|
|
# Wayland-only builds (clipboard_x11 pulls x11rb + its protocol machinery).
|
|
|
|
|
# Default keeps both enabled to preserve upstream behaviour; yoda consumers
|
|
|
|
|
# pass default-features=false + "wayland" at the dep declaration.
|
|
|
|
|
default = ["x11", "wayland"]
|
|
|
|
|
x11 = ["dep:clipboard_x11"]
|
|
|
|
|
wayland = ["dep:clipboard_wayland"]
|
|
|
|
|
|
2019-12-18 05:55:32 +01:00
|
|
|
[dependencies]
|
2024-01-16 21:28:25 -08:00
|
|
|
raw-window-handle = { version = "0.6", features = ["std"] }
|
2022-01-27 16:41:00 +07:00
|
|
|
thiserror = "1.0"
|
2024-03-14 16:42:24 -04:00
|
|
|
mime = { path = "./mime" }
|
2024-03-26 16:03:05 -04:00
|
|
|
dnd = { path = "./dnd" }
|
2019-12-19 05:47:36 +01:00
|
|
|
|
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
2024-01-16 20:45:19 -08:00
|
|
|
clipboard-win = { version = "5.0", features = ["std"] }
|
2019-12-19 05:47:36 +01:00
|
|
|
|
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
2020-08-06 11:04:12 +02:00
|
|
|
clipboard_macos = { version = "0.1", path = "./macos" }
|
2019-12-19 05:47:36 +01:00
|
|
|
|
2023-01-11 09:28:47 -07:00
|
|
|
[target.'cfg(all(unix, not(any(target_os="macos", target_os="android", target_os="emscripten", target_os="ios", target_os="redox"))))'.dependencies]
|
2026-04-24 06:50:48 +02:00
|
|
|
clipboard_x11 = { version = "0.4.2", path = "./x11", optional = true }
|
|
|
|
|
clipboard_wayland = { version = "0.2.2", path = "./wayland", optional = true }
|
2019-12-18 05:55:32 +01:00
|
|
|
|
|
|
|
|
[dev-dependencies]
|
2021-03-10 21:28:59 +01:00
|
|
|
rand = "0.8"
|
2024-01-16 21:12:14 -08:00
|
|
|
winit = "0.29"
|
2019-12-19 05:47:36 +01:00
|
|
|
|
|
|
|
|
[workspace]
|
2024-03-26 16:03:05 -04:00
|
|
|
members = ["dnd", "macos", "mime", "dnd", "wayland", "x11"]
|