A thin encapsulate for integer primitives to facilitate a fast, simple, yet ergonomic byteunit implementation.
Find a file
Xavier Moffett 897b3e1d44
All checks were successful
Build / Check format (push) Successful in 38s
Build / Check release (push) Successful in 44s
Release 0.3.0
2025-07-19 18:48:31 -04:00
.forgejo/workflows chore: Update and also use self-hosted CI 2025-07-19 02:28:03 -04:00
.github/workflows ci(github): Trigger on push to primary branch 2025-07-19 18:37:21 -04:00
src chore: Add LICENSE file and add SPDX header 2025-07-19 18:45:07 -04:00
tests chore: Add LICENSE file and add SPDX header 2025-07-19 18:45:07 -04:00
.rustfmt.toml chore: Fix formatting 2025-07-19 02:52:07 -04:00
Cargo.lock Release 0.3.0 2025-07-19 18:48:31 -04:00
Cargo.toml Release 0.3.0 2025-07-19 18:48:31 -04:00
LICENSE chore: Add LICENSE file and add SPDX header 2025-07-19 18:45:07 -04:00
README.md chore: Prepare for release 0.3.0 2025-07-19 18:19:51 -04:00

SimpleByteUnit Build Workflow

SimpleByteUnit is a crate which provides a thin encapsulate for integer primitives to facilitate a fast, simple, yet ergonomic byteunit implementation.

Usage

Add 'simplebyteunit' to your 'Cargo.toml':

[dependencies]
simplebyteunit = "0.3.0"

Example

Generate a human-readable, formatted ByteUnit:

use simplebyteunit::simplebyteunit::*;

let byteunit_var = 500000.to_byteunit(SI);

println!("{byteunit_var}");

Output:

500 kB