forked from iliekturtles/uom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
73 lines (65 loc) · 1.66 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[package]
name = "uom"
version = "0.16.0"
authors = ["Mike Boutin <mike.boutin@gmail.com>"]
description = "Units of measurement"
documentation = "https://docs.rs/uom"
#homepage = ""
repository = "https://github.com/iliekturtles/uom"
readme = "README.md"
keywords = ["units", "measurement", "SI", "dimensional-analysis", "no_std"]
categories = ["no-std", "science", "value-formatting"]
license = "Apache-2.0/MIT"
[package.metadata.docs.rs]
all-features = true
[badges]
appveyor = { repository = "iliekturtles/uom" }
travis-ci = { repository = "iliekturtles/uom" }
coveralls = { repository = "iliekturtles/uom" }
maintenance = { status = "actively-developed" }
[dependencies]
num = "0.1"
serde = { version = "1.0", optional = true, default-features = false }
typenum = "1.9.0"
[dev-dependencies]
approx = "0.1.1"
quickcheck = "0.5.0"
serde_json = "1.0"
static_assertions = "0.2.5"
[features]
default = ["f32", "f64", "si", "std"]
# The `use_serde` feature exists so that, in the future, we can add other dependency features to
# it, like num/serde. However, num/serde is currently left out because it has not yet been updated
# to Serde 1.0.
# It is also necessary to call it something other than `serde` because of this cargo bug:
# https://github.com/rust-lang/cargo/issues/1286
use_serde = ["serde"]
usize = []
u8 = []
u16 = []
u32 = []
u64 = []
isize = []
i8 = []
i16 = []
i32 = []
i64 = []
bigint = []
biguint = []
rational = []
rational32 = []
rational64 = []
bigrational = []
f32 = []
f64 = []
si = []
std = []
[[example]]
name = "base"
required-features = ["f32", "si"]
[[example]]
name = "mks"
required-features = ["f32"]
[[example]]
name = "si"
required-features = ["f32", "si"]