#byte #units #compile-time #conversions #evaluation

nbytes

Rust compile-time evaluation of byte unit conversions

1 unstable release

0.1.0 Aug 19, 2020

#1118 in Development tools

Download history 310/week @ 2023-11-20 701/week @ 2023-11-27 308/week @ 2023-12-04 982/week @ 2023-12-11 296/week @ 2023-12-18 111/week @ 2023-12-25 79/week @ 2024-01-01 86/week @ 2024-01-08 283/week @ 2024-01-15 85/week @ 2024-01-22 242/week @ 2024-01-29 159/week @ 2024-02-05 87/week @ 2024-02-12 129/week @ 2024-02-19 319/week @ 2024-02-26 142/week @ 2024-03-04

688 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