libspelling/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2
3// Re-export the -sys bindings
4pub use ffi;
5pub use gio;
6pub use glib;
7pub use gtk;
8
9/// Asserts that this is the main thread and `gtk::init` has been called.
10macro_rules! assert_initialized_main_thread {
11    () => {
12        if !::gtk::is_initialized_main_thread() {
13            if ::gtk::is_initialized() {
14                panic!("libspelling may only be used from the main thread.");
15            } else {
16                panic!("Gtk has to be initialized before using libspelling.");
17            }
18        }
19    };
20}
21
22macro_rules! skip_assert_initialized {
23    () => {};
24}
25
26#[allow(unused_imports)]
27#[allow(clippy::let_and_return)]
28#[allow(clippy::type_complexity)]
29mod auto;
30
31pub use auto::*;
32pub use functions::*;
33
34pub mod builders;
35pub mod prelude;
36
37mod checker;