#![cfg_attr(not(feature = "std"), no_std)]
#![warn(clippy::all, clippy::pedantic)]
#![allow(clippy::module_name_repetitions)]
extern crate alloc;
extern crate core;
use alloc::{
format,
string::{String, ToString},
};
pub use chrono;
pub use chrono_tz;
pub use hashbrown;
pub use serde_json;
pub mod store;
pub mod types;
pub mod utilities;
pub mod values;
#[cfg(feature = "axum")]
pub mod axum;
#[cfg(any(feature = "sync_client", feature = "async_client"))]
pub mod client;
#[must_use]
pub fn display_bytes_as_hex_array(b: &[u8]) -> String {
let mut out;
match b.len() {
0 => out = "[]".to_string(),
1 => out = format!("[{:#X}]", b[0]),
_ => {
out = format!("[{:#X}", b[0]);
for b in b.iter().skip(1) {
out.push_str(&format!(", {b:#X}"));
}
out.push(']');
}
};
out
}