@@ -72,66 +72,66 @@ parse-floats = ["lexical-parse-float", "parse", "floats"]
72
72
# Add support for parsing power-of-two float strings.
73
73
power-of-two = [
74
74
" 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"
79
79
]
80
80
# Add support for parsing non-decimal float strings.
81
81
radix = [
82
82
" 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"
87
87
]
88
88
# Add support for parsing custom numerical formats.
89
89
format = [
90
90
" 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"
95
95
]
96
96
# Reduce code size at the cost of performance.
97
97
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"
102
102
]
103
103
# Ensure only safe indexing is used.
104
104
# This is only relevant for the number writers, since the parsers
105
105
# are memory safe by default (and only use memory unsafety when
106
106
# is the trivial to prove correct).
107
107
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"
112
112
]
113
113
# Add support for nightly-only features.
114
114
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"
119
119
]
120
120
# Enable support for 16-bit floats.
121
121
f16 = [
122
122
" lexical-util/f16" ,
123
- " lexical-parse-float/f16" ,
124
- " lexical-write-float/f16"
123
+ " lexical-parse-float? /f16" ,
124
+ " lexical-write-float? /f16"
125
125
]
126
126
127
127
# Internal only features.
128
128
# Enable the lint checks.
129
129
lint = [
130
130
" 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"
135
135
]
136
136
# Add support for writing numbers.
137
137
write = []
@@ -146,8 +146,8 @@ floats = []
146
146
# Enable support for 128-bit floats.
147
147
f128 = [
148
148
" lexical-util/f128" ,
149
- " lexical-parse-float/f128" ,
150
- " lexical-write-float/f128"
149
+ " lexical-parse-float? /f128" ,
150
+ " lexical-write-float? /f128"
151
151
]
152
152
153
153
[package .metadata .docs .rs ]
0 commit comments