Skip to content

Commit 27ab657

Browse files
authored
Merge pull request #99 from Manishearth/Ɂ-deps
Use ?-deps for lexical-core's metafeatures
2 parents 3f6b344 + fb064d9 commit 27ab657

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

lexical-core/Cargo.toml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -72,66 +72,66 @@ parse-floats = ["lexical-parse-float", "parse", "floats"]
7272
# Add support for parsing power-of-two float strings.
7373
power-of-two = [
7474
"lexical-util/power-of-two",
75-
"lexical-write-integer/power-of-two",
76-
"lexical-write-float/power-of-two",
77-
"lexical-parse-integer/power-of-two",
78-
"lexical-parse-float/power-of-two"
75+
"lexical-write-integer?/power-of-two",
76+
"lexical-write-float?/power-of-two",
77+
"lexical-parse-integer?/power-of-two",
78+
"lexical-parse-float?/power-of-two"
7979
]
8080
# Add support for parsing non-decimal float strings.
8181
radix = [
8282
"lexical-util/radix",
83-
"lexical-write-integer/radix",
84-
"lexical-write-float/radix",
85-
"lexical-parse-integer/radix",
86-
"lexical-parse-float/radix"
83+
"lexical-write-integer?/radix",
84+
"lexical-write-float?/radix",
85+
"lexical-parse-integer?/radix",
86+
"lexical-parse-float?/radix"
8787
]
8888
# Add support for parsing custom numerical formats.
8989
format = [
9090
"lexical-util/format",
91-
"lexical-parse-integer/format",
92-
"lexical-parse-float/format",
93-
"lexical-write-integer/format",
94-
"lexical-write-float/format"
91+
"lexical-parse-integer?/format",
92+
"lexical-parse-float?/format",
93+
"lexical-write-integer?/format",
94+
"lexical-write-float?/format"
9595
]
9696
# Reduce code size at the cost of performance.
9797
compact = [
98-
"lexical-write-integer/compact",
99-
"lexical-write-float/compact",
100-
"lexical-parse-integer/compact",
101-
"lexical-parse-float/compact"
98+
"lexical-write-integer?/compact",
99+
"lexical-write-float?/compact",
100+
"lexical-parse-integer?/compact",
101+
"lexical-parse-float?/compact"
102102
]
103103
# Ensure only safe indexing is used.
104104
# This is only relevant for the number writers, since the parsers
105105
# are memory safe by default (and only use memory unsafety when
106106
# is the trivial to prove correct).
107107
safe = [
108-
"lexical-write-integer/safe",
109-
"lexical-write-float/safe",
110-
"lexical-parse-integer/safe",
111-
"lexical-parse-float/safe"
108+
"lexical-write-integer?/safe",
109+
"lexical-write-float?/safe",
110+
"lexical-parse-integer?/safe",
111+
"lexical-parse-float?/safe"
112112
]
113113
# Add support for nightly-only features.
114114
nightly = [
115-
"lexical-write-integer/nightly",
116-
"lexical-write-float/nightly",
117-
"lexical-parse-integer/nightly",
118-
"lexical-parse-float/nightly"
115+
"lexical-write-integer?/nightly",
116+
"lexical-write-float?/nightly",
117+
"lexical-parse-integer?/nightly",
118+
"lexical-parse-float?/nightly"
119119
]
120120
# Enable support for 16-bit floats.
121121
f16 = [
122122
"lexical-util/f16",
123-
"lexical-parse-float/f16",
124-
"lexical-write-float/f16"
123+
"lexical-parse-float?/f16",
124+
"lexical-write-float?/f16"
125125
]
126126

127127
# Internal only features.
128128
# Enable the lint checks.
129129
lint = [
130130
"lexical-util/lint",
131-
"lexical-write-integer/lint",
132-
"lexical-write-float/lint",
133-
"lexical-parse-integer/lint",
134-
"lexical-parse-float/lint"
131+
"lexical-write-integer?/lint",
132+
"lexical-write-float?/lint",
133+
"lexical-parse-integer?/lint",
134+
"lexical-parse-float?/lint"
135135
]
136136
# Add support for writing numbers.
137137
write = []
@@ -146,8 +146,8 @@ floats = []
146146
# Enable support for 128-bit floats.
147147
f128 = [
148148
"lexical-util/f128",
149-
"lexical-parse-float/f128",
150-
"lexical-write-float/f128"
149+
"lexical-parse-float?/f128",
150+
"lexical-write-float?/f128"
151151
]
152152

153153
[package.metadata.docs.rs]

0 commit comments

Comments
 (0)