From 9fc98bdd49e79d1c938eb2b4867c3ba1e39d111c Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 11 Jan 2023 09:28:47 -0700 Subject: [PATCH] Use dummy platform for Redox OS --- Cargo.toml | 2 +- src/lib.rs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index c134e01..59d9d5e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ clipboard-win = { version = "4.0", features = ["std"] } [target.'cfg(target_os = "macos")'.dependencies] clipboard_macos = { version = "0.1", path = "./macos" } -[target.'cfg(all(unix, not(any(target_os="macos", target_os="android", target_os="emscripten", target_os="ios"))))'.dependencies] +[target.'cfg(all(unix, not(any(target_os="macos", target_os="android", target_os="emscripten", target_os="ios", target_os="redox"))))'.dependencies] clipboard_x11 = { version = "0.4", path = "./x11" } clipboard_wayland = { version = "0.2", path = "./wayland" } diff --git a/src/lib.rs b/src/lib.rs index 6a940a2..78e196c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,8 @@ target_os = "macos", target_os = "ios", target_os = "android", - target_os = "emscripten" + target_os = "emscripten", + target_os = "redox" )) ))] #[path = "platform/linux.rs"] @@ -33,7 +34,8 @@ mod platform; target_os = "macos", target_os = "ios", target_os = "android", - target_os = "emscripten" + target_os = "emscripten", + target_os = "redox" )) ), target_os = "windows",