x11 feature

This commit is contained in:
2026-03-06 18:43:03 +01:00
parent bcee192e50
commit 9052dc54f5
2 changed files with 9 additions and 0 deletions

View File

@ -5,6 +5,7 @@ use std::error::Error;
use std::sync::mpsc::channel;
// X11
#[cfg(feature = "x11")]
fn main() -> Result<(), Box<dyn Error>> {
let mut clipboard = Clipboard::new()?;
let path = "clipboard.json";
@ -36,3 +37,8 @@ fn main() -> Result<(), Box<dyn Error>> {
Ok(())
}
// X11
#[cfg(not(feature = "x11"))]
fn main() -> Result<(), Box<dyn Error>> {
Ok(())
}