zwp_input_method/
lib.rs

1// Re-exports only the actual code, and then only uses this re-export
2// The `generated` module below is just some boilerplate to properly isolate stuff
3// and avoid exposing internal details.
4pub use generated::client as input_method_unstable_v2;
5
6mod generated {
7    // The generated code tends to trigger a lot of warnings
8    // so we isolate it into a very permissive module
9    #![allow(dead_code, non_camel_case_types, unused_unsafe, unused_variables)]
10    #![allow(non_upper_case_globals, non_snake_case, unused_imports)]
11    pub mod client {
12        // These imports are used by the generated code
13        use wayland_client::protocol::*;
14        use wayland_client::sys;
15        use wayland_client::{AnonymousObject, Attached, Main, Proxy, ProxyMap};
16        use wayland_commons::map::{Object, ObjectMetadata};
17        use wayland_commons::smallvec;
18        use wayland_commons::wire::{Argument, ArgumentType, Message, MessageDesc};
19        use wayland_commons::{Interface, MessageGroup};
20        use wayland_protocols::unstable::text_input::v3::client::zwp_text_input_v3;
21        // Include generated code
22        include!(concat!(env!("OUT_DIR"), "/input_method_api.rs"));
23    }
24}