Registry / utility / human-bytes

human-bytes

JSON →
library0.4.3rscratesunverified

Converts byte counts into human-readable strings (e.g., "1.23 MB").

# Cargo.toml [dependencies] human_bytes = "0.4.3"
INSTALL
IMPORT
SIG · HUMAN-BYTES
H
human-bytes
utilityrustv0.4.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

human_bytes
use human_bytes::human_bytes;

Convert a byte count to a human-readable string.

use human_bytes::human_bytes; fn main() { let size = human_bytes(1_234_567.0); println!("Size: {}", size); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
human-bytes — cargo add human-bytes · libregistry