Registry / utility / humansize

humansize

JSON →
library2.1.3rscratesunverified

Formats byte sizes into human-readable strings like '1.5 MB'.

# Cargo.toml [dependencies] humansize = "2.1.3"
INSTALL
IMPORT
SIG · HUMANSIZE
H
humansize
utilityrustv2.1.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.

format_size
use humansize::format_size;

Formats 1,500,000 bytes as '1.5 MB'.

use humansize::{format_size, DECIMAL}; let size = format_size(1_500_000, DECIMAL);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
humansize — cargo add humansize · libregistry