From 0b2043cb17c020fe7f5e525305bc40915aa3089c Mon Sep 17 00:00:00 2001 From: isark Date: Sat, 8 Jul 2023 23:09:13 +0200 Subject: [PATCH] Moved x11rb dep to unix cfg'd dependencies. Added init with todo!() to macos implementation --- Cargo.toml | 3 +-- src/macos/mod.rs | 6 ++++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index a477123..4348edd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,13 +17,12 @@ path = "src/examples/main.rs" crossbeam = "0.8.2" log = "0.4.19" raw-window-handle = "0.5.2" -x11rb = "0.12.0" [target.'cfg(windows)'.dependencies] windows = {version = "0.48.0", features = ["Win32_UI_Accessibility", "Win32_Foundation", "Win32_UI_WindowsAndMessaging", "Win32_Graphics_Gdi", "Win32_System_Com", "Win32_System_Ole"]} [target.'cfg(unix)'.dependencies] - +x11rb = "0.12.0" [dev-dependencies] diff --git a/src/macos/mod.rs b/src/macos/mod.rs index e69de29..19f3591 100644 --- a/src/macos/mod.rs +++ b/src/macos/mod.rs @@ -0,0 +1,6 @@ +pub fn init( + window_title: String, + tx: std::sync::mpsc::Sender, +) -> Result<(), String> { + todo!() +} \ No newline at end of file