#![warn(missing_docs)]
#![warn(rustdoc::missing_crate_level_docs)]
#![doc(html_logo_url = "https://example.com/logo.png")]
pub mod client;
pub mod error;
pub mod models;
pub mod telemetry;
pub mod prelude {
pub use crate::client::Client;
pub use crate::error::{Error, Result};
pub use crate::models::*;
pub use crate::telemetry::TelemetryClient;
}
use error::Result;
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
pub fn init() -> Result<()> {
tracing_subscriber::fmt()
.with_env_filter(tracing_subscriber::EnvFilter::from_default_env()
.add_directive(tracing::Level::INFO.into()))
.try_init()
.map_err(|e| error::Error::Other(e.to_string()))
}