#byte #unit-conversion #units #unit

nbytes

Rust compile-time evaluation of byte unit conversions

1 unstable release

0.1.0 Aug 19, 2020

#1079 in Development tools

Download history 94/week @ 2024-03-25 150/week @ 2024-04-01 162/week @ 2024-04-08 123/week @ 2024-04-15 79/week @ 2024-04-22 106/week @ 2024-04-29 64/week @ 2024-05-06 278/week @ 2024-05-13 156/week @ 2024-05-20 387/week @ 2024-05-27 345/week @ 2024-06-03 339/week @ 2024-06-10 305/week @ 2024-06-17 383/week @ 2024-06-24 166/week @ 2024-07-01 266/week @ 2024-07-08

1,125 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