bstrie / nbytes

Rust compile-time evaluation of byte unit conversions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Rust compile-time evaluation of byte unit conversions

License:Apache License 2.0


Languages

Language:Rust 100.0%