smithay/anvil/src/lib.rs

32 lines
709 B
Rust
Raw Normal View History

2021-07-08 14:27:12 +00:00
#![warn(rust_2018_idioms)]
// If no backend is enabled, a large portion of the codebase is unused.
// So silence this useless warning for the CI.
#![cfg_attr(
not(any(feature = "winit", feature = "udev")),
allow(dead_code, unused_imports)
)]
#[macro_use]
extern crate slog;
#[cfg(feature = "udev")]
pub mod cursor;
pub mod drawing;
pub mod input_handler;
pub mod output_map;
2021-10-17 18:46:00 +00:00
#[cfg(any(feature = "udev", feature = "winit", feature = "x11"))]
pub mod render;
2021-07-08 14:27:12 +00:00
pub mod shell;
pub mod state;
#[cfg(feature = "udev")]
pub mod udev;
pub mod window_map;
#[cfg(feature = "winit")]
pub mod winit;
2021-10-17 18:46:00 +00:00
#[cfg(feature = "x11")]
pub mod x11;
2021-07-08 14:27:12 +00:00
#[cfg(feature = "xwayland")]
pub mod xwayland;
pub use state::AnvilState;