-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
39 lines (32 loc) · 1.05 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[package]
name = "byte-unit"
version = "5.1.6"
authors = ["Magic Len <[email protected]>"]
edition = "2021"
rust-version = "1.70"
repository = "https://github.com/magiclen/byte-unit"
homepage = "https://magiclen.org/byte-unit"
keywords = ["byte", "unit", "kb", "mb", "gb"]
categories = ["no-std", "parser-implementations", "value-formatting"]
description = "A library for interacting with units of bytes."
license = "MIT"
include = ["src/**/*", "Cargo.toml", "README.md", "LICENSE"]
[dependencies]
utf8-width = "0.1"
serde = { version = "1", default-features = false, features = ["alloc"], optional = true }
rocket = { version = "0.5", optional = true }
rust_decimal = { version = "1", default-features = false, optional = true }
[dev-dependencies]
serde_json = "1"
[features]
default = ["std", "byte"]
serde = ["dep:serde"]
rocket = ["dep:rocket", "std"]
rust_decimal = ["dep:rust_decimal"]
std = ["serde?/std", "rust_decimal?/std"]
u128 = []
byte = ["rust_decimal"]
bit = ["rust_decimal"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]