pretty_bytes_typed/lib.rs
1#![warn(clippy::pedantic, clippy::nursery, rust_2018_idioms)]
2#![allow(
3 // Values are too small for truncation or wrap
4 clippy::cast_possible_truncation,
5 clippy::cast_possible_wrap,
6 // Sign is already checked and converted to positive
7 clippy::cast_sign_loss
8)]
9
10//! A simple, no-dependencies crate for converting a number of bytes into a strongly-typed (stack-allocated) representation of the "prettified" version of those bytes.
11//!
12//! Compatible with `serde` when the `serde` feature is enabled.
13
14mod binary;
15mod decimal;
16mod util;
17
18pub use binary::*;
19pub use decimal::*;