From 1851c56e407cac72ca104cc5e75692cd9c648986 Mon Sep 17 00:00:00 2001 From: MaxVerevkin Date: Mon, 8 Aug 2022 23:12:23 +0300 Subject: rewrite using latest walayd libs & implement HiDPI --- src/river_protocols.rs | 38 +++----------------------------------- 1 file changed, 3 insertions(+), 35 deletions(-) (limited to 'src/river_protocols.rs') diff --git a/src/river_protocols.rs b/src/river_protocols.rs index c81a7f7..0a2cf91 100644 --- a/src/river_protocols.rs +++ b/src/river_protocols.rs @@ -1,36 +1,4 @@ -pub use generated::client1::*; -pub use generated::client2::*; +#![allow(clippy::enum_variant_names)] -mod generated { - // The generated code tends to trigger a lot of warnings - // so we isolate it into a very permissive module - #![allow(dead_code, non_camel_case_types, unused_unsafe, unused_variables)] - #![allow(non_upper_case_globals, non_snake_case, unused_imports)] - #![allow(clippy::all)] - - pub mod client1 { - // These imports are used by the generated code - use smithay_client_toolkit::reexports::client as wayland_client; - use wayland_client::protocol::*; - use wayland_client::sys; - use wayland_client::{AnonymousObject, Attached, Main, Proxy, ProxyMap}; - use wayland_commons::map::{Object, ObjectMetadata}; - use wayland_commons::smallvec; - use wayland_commons::wire::{Argument, ArgumentType, Message, MessageDesc}; - use wayland_commons::{Interface, MessageGroup}; - include!(concat!(env!("OUT_DIR"), "/river-status-unstable-v1.rs")); - } - - pub mod client2 { - // These imports are used by the generated code - use smithay_client_toolkit::reexports::client as wayland_client; - use wayland_client::protocol::*; - use wayland_client::sys; - use wayland_client::{AnonymousObject, Attached, Main, Proxy, ProxyMap}; - use wayland_commons::map::{Object, ObjectMetadata}; - use wayland_commons::smallvec; - use wayland_commons::wire::{Argument, ArgumentType, Message, MessageDesc}; - use wayland_commons::{Interface, MessageGroup}; - include!(concat!(env!("OUT_DIR"), "/river-control-unstable-v1.rs")); - } -} +pub mod control; +pub mod status; -- cgit v1.3.1