1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#![doc(html_logo_url = "https://cdn.jsdelivr.net/gh/BigBoot/AutoKuma@master/icon.svg")]
#![doc(html_favicon_url = "https://cdn.jsdelivr.net/gh/BigBoot/AutoKuma@master/icon.svg")]
#![doc = include_str!("../README.md")]

#[doc(hidden)]
pub mod build {
    include!(concat!(env!("OUT_DIR"), "/shadow.rs"));

    pub const SHORT_VERSION: &str = const_str::format!(
        "{}{}",
        LAST_TAG,
        if const_str::equal!(TAG, "") {
            const_str::format!(
                "-{}{}",
                SHORT_COMMIT,
                if !GIT_CLEAN { "-dirty" } else { "" }
            )
        } else {
            ""
        }
    );
    pub const LONG_VERSION: &str = const_str::format!(
        r#"{}
branch: {}
commit_hash: {} 
build_time: {}
build_env: {}, {}"#,
        SHORT_VERSION,
        BRANCH,
        SHORT_COMMIT,
        BUILD_TIME,
        RUST_VERSION,
        RUST_CHANNEL
    );
}

pub(crate) mod deserialize;

#[doc(hidden)]
pub mod client;
#[doc(hidden)]
pub mod config;
#[doc(hidden)]
pub mod error;
#[doc(hidden)]
pub mod models;
#[doc(hidden)]
pub mod util;

#[doc(inline)]
pub use client::*;
#[doc(inline)]
pub use config::*;
#[doc(inline)]
pub use models::*;

pub use url::Url;