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
#![doc = include_str!("../README.md")]

mod method;
pub mod prelude;
mod response;
pub use method::*;
pub use response::*;
#[cfg(target_os = "windows")]
mod windows;

#[cfg(target_os = "macos")]
mod macos;

#[cfg(not(any(target_os = "macos", target_os = "windows")))]
compile_error!("ALHC is currently not supported on your target os.");

#[cfg(not(feature = "anyhow"))]
pub type DynResult<T = ()> = std::result::Result<T, Box<dyn std::error::Error>>;
#[cfg(feature = "anyhow")]
pub type DynResult<T = ()> = anyhow::Result<T>;

#[cfg(target_os = "macos")]
pub fn get_client_builder() -> macos::ClientBuilder {
    macos::ClientBuilder::default()
}

#[cfg(target_os = "windows")]
pub fn get_client_builder() -> windows::ClientBuilder {
    windows::ClientBuilder::default()
}