Skip to content
/ nbytes Public

Rust compile-time evaluation of byte unit conversions

License

Notifications You must be signed in to change notification settings

enarx/nbytes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages