Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 864 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 864 Bytes

Workflow Status Average time to resolve an issue Percentage of issues still open Maintenance

nbytes

Welcome to nbytes!

The nbytes crate exists to provide compile-time evaluation of various unit conversions to bytes. For example:

use nbytes::bytes;

assert_eq!(bytes![2; KiB], 2048);
assert_eq!(bytes![2; kB], 2000);

License: Apache-2.0