1#![forbid(unsafe_code)]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![doc = include_str!("../README.md")]
4
5#[cfg(all(feature = "rustls-tls", feature = "native-tls"))]
6compile_error!("Features `rustls-tls` and `native-tls` are mutually exclusive: pick one");
7
8#[cfg(not(any(feature = "rustls-tls", feature = "native-tls")))]
9compile_error!("Either `rustls-tls` or `native-tls` feature must be enabled");
10
11mod client;
12mod error;
13pub mod model;
14pub mod service;
15
16#[doc(hidden)]
17pub mod prelude;
18
19#[cfg(feature = "tracing")]
24pub(crate) const TRACING_TARGET_CLIENT: &str = "nvisy_sdk::client";
25
26#[cfg(feature = "tracing")]
27pub(crate) const TRACING_TARGET_SERVICE: &str = "nvisy_sdk::service";
28
29#[cfg(feature = "tracing")]
30pub(crate) const TRACING_TARGET_CONFIG: &str = "nvisy_sdk::config";
31
32pub use client::{
34 DEFAULT_BASE_URL, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT, DEFAULT_USER_AGENT, Nvisy, NvisyBuilder,
35};
36pub use error::{Error, Result};