# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" rust-version = "1.70" name = "byte-unit" version = "5.1.6" authors = ["Magic Len "] build = false include = [ "src/**/*", "Cargo.toml", "README.md", "LICENSE", ] autobins = false autoexamples = false autotests = false autobenches = false description = "A library for interacting with units of bytes." homepage = "https://magiclen.org/byte-unit" readme = "README.md" keywords = [ "byte", "unit", "kb", "mb", "gb", ] categories = [ "no-std", "parser-implementations", "value-formatting", ] license = "MIT" repository = "https://github.com/magiclen/byte-unit" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "byte_unit" path = "src/lib.rs" [dependencies.rocket] version = "0.5" optional = true [dependencies.rust_decimal] version = "1" optional = true default-features = false [dependencies.serde] version = "1" features = ["alloc"] optional = true default-features = false [dependencies.utf8-width] version = "0.1" [dev-dependencies.serde_json] version = "1" [features] bit = ["rust_decimal"] byte = ["rust_decimal"] default = [ "std", "byte", ] rocket = [ "dep:rocket", "std", ] rust_decimal = ["dep:rust_decimal"] serde = ["dep:serde"] std = [ "serde?/std", "rust_decimal?/std", ] u128 = []