Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a feature for wayland_backend_0_3 #10

Merged
merged 1 commit into from
Sep 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ rust-version = "1.64.0"
[dependencies]
bitflags = "2.0"
cursor-icon = "1.0.0"
wayland-backend_0_1 = { package = "wayland-backend", version = "0.1.0", default-features = false, optional = true }
wayland-backend_0_2 = { package = "wayland-backend", version = "0.2.0", default-features = false, optional = true }

[features]
default = ["wayland-backend_0_2"]
wayland-backend = { version = "0.3.0", default-features = false }
8 changes: 1 addition & 7 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,8 @@
use std::num::NonZeroU32;
use std::time::Duration;

#[cfg(not(any(feature = "wayland-backend_0_1", feature = "wayland-backend_0_2")))]
compile_error!("Ether wayland-backend_0_1 or wayland-backend_0_2 feature must be enabled");

use bitflags::bitflags;
#[cfg(feature = "wayland-backend_0_1")]
use wayland_backend_0_1::client::ObjectId;
#[cfg(feature = "wayland-backend_0_2")]
use wayland_backend_0_2::client::ObjectId;
use wayland_backend::client::ObjectId;

#[doc(inline)]
pub use cursor_icon::{CursorIcon, ParseError as CursorIconParseError};
Expand Down
Loading