Pretty Bytes - Humanify Bytes for Easy Read
Rust library that takes a number that represent a byte and returns a string that is prettier to read for a human
Consumer of the Library
Install
How to use?
Without Configuration Option
use pretty_bytes;
let r1 = pretty_bytes;
assert_eq!;
With Configuration Option - Specifying Decimal Precision
use pretty_bytes;
let result = pretty_bytes;
assert_eq!;
As a Developer of the Library
What to Install?
You need to install the right toolchain:
To perform test coverage you need to install
To generate benchmark plots you need to install GnuPlot
# To confirm that it is properly installed:
Tests
Tests Coverage
You must install few components before running coverage:
Then, you can run:
Further explanation in the Mozilla grcov website
Documentation
Benchmark
Publishing