-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCargo.toml
116 lines (97 loc) · 2.85 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[package]
authors = ["Alex Huszagh <[email protected]>"]
autoexamples = false
build = "build.rs"
categories = ["parsing", "no-std"]
description = "Float parsing conversion routines."
edition = "2018"
name = "minimal-lexical"
version = "0.1.0"
readme = "README.md"
repository = "https://github.com/Alexhuszagh/minimal-lexical"
exclude = [
"ci/*",
"data/*",
"examples/*",
"rng-tests/*"
]
[dependencies]
# Arrayvec is only used if we require stack-allocation.
arrayvec = { version = "0.4", optional = true, features = ["array-sizes-33-128"] }
# The following are only required for comprehensive float unittests
# and rng-tests.
# IE, internal testing only:
rand_core = { optional = true, version = "0.3" }
rand_xorshift = { optional = true, version = "0.1" }
ryu = { optional = true, version = "1.0" }
rand = { version = "0.4", optional = true }
serde = { version = "1.0", optional = true }
serde_derive = { version = "1.0", optional = true }
toml = { version = "0.5", optional = true }
[features]
default = ["std"]
std = []
no_alloc = ["arrayvec"]
# Subsequent are testing-only.
rng = ["rand_core", "rand_xorshift", "ryu"]
examples = []
comprehensive_float_test = ["rand/std", "serde/std", "serde_derive", "std", "toml"]
# EXAMPLES
[[bin]]
name = "simple-example"
path = "examples/simple.rs"
required-features = ["examples"]
# RNG TESTS
[[bin]]
name = "smoke-test"
path = "rng-tests/smoke.rs"
required-features = ["rng"]
[[bin]]
name = "f32-test"
path = "rng-tests/f32.rs"
required-features = ["rng"]
# COMPREHENSIVE FLOAT TESTS
[[bin]]
name = "few_ones"
path = "data/test-parse-random/few_ones.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "huge-pow10"
path = "data/test-parse-random/huge-pow10.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "long-fractions"
path = "data/test-parse-random/long-fractions.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "many-digits"
path = "data/test-parse-random/many-digits.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "rand-f64"
path = "data/test-parse-random/rand-f64.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "short-decimals"
path = "data/test-parse-random/short-decimals.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "subnorm"
path = "data/test-parse-random/subnorm.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "tiny-pow10"
path = "data/test-parse-random/tiny-pow10.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "u32-small"
path = "data/test-parse-random/u32-small.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "u64-pow2"
path = "data/test-parse-random/u64-pow2.rs"
required-features = ["comprehensive_float_test"]
[[bin]]
name = "test-parse-unittests"
path = "data/test-parse-unittests/main.rs"
required-features = ["comprehensive_float_test"]