From 043b6e93c8103ab8b014592feb021606410630d5 Mon Sep 17 00:00:00 2001 From: szymon Date: Sat, 3 Oct 2026 21:24:05 +0200 Subject: [PATCH] fix: compile only on linux --- src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 6638a4a..255dc50 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -17,6 +17,9 @@ #![allow(non_snake_case)] #![warn(missing_docs)] +#[cfg(not(target_os = "linux"))] +compile_error!("Libnotify-rs only supports linux"); + /// Basic libnotify rust wrapper pub mod api; /// Higher level abstraction over api