#byte #unit-conversion #units #unit

nbytes

Rust compile-time evaluation of byte unit conversions

1 unstable release

0.1.0 Aug 19, 2020

#1466 in Development tools

Download history 27/week @ 2024-11-13 13/week @ 2024-11-20 5/week @ 2024-12-04 19/week @ 2024-12-11 2/week @ 2024-12-18 54/week @ 2025-02-05 10/week @ 2025-02-12 9/week @ 2025-02-19 12/week @ 2025-02-26

85 downloads per month
Used in 2 crates

Apache-2.0

9KB
105 lines

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


lib.rs:

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);

No runtime deps