#byte #unit #unit-conversion #units

nbytes

Rust compile-time evaluation of byte unit conversions

1 unstable release

0.1.0 Aug 19, 2020

#1267 in Development tools

Download history 292/week @ 2024-07-20 226/week @ 2024-07-27 237/week @ 2024-08-03 50/week @ 2024-08-10 8/week @ 2024-08-17 11/week @ 2024-08-24 113/week @ 2024-08-31 41/week @ 2024-09-07 49/week @ 2024-09-14 65/week @ 2024-09-21 112/week @ 2024-09-28 85/week @ 2024-10-05 25/week @ 2024-10-12 22/week @ 2024-10-19 19/week @ 2024-10-26 9/week @ 2024-11-02

79 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