Skip to content

Commit

Permalink
Update wayland-backend to 0.3
Browse files Browse the repository at this point in the history
Drop feature flags for wayland-backend versions.
  • Loading branch information
ids1024 committed Sep 8, 2023
1 parent 2f5faa3 commit 87fa0c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
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

0 comments on commit 87fa0c4

Please sign in to comment.