Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to using float16. #198

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lexical-core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,4 @@ f128 = [
]

[package.metadata.docs.rs]
features = ["radix", "format", "write-integers", "write-floats", "parse-integers", "parse-floats"]
features = ["radix", "format", "write-integers", "write-floats", "parse-integers", "parse-floats", "f16"]
2 changes: 1 addition & 1 deletion lexical-parse-float/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,4 @@ lint = [
f128 = ["lexical-util/f128"]

[package.metadata.docs.rs]
features = ["radix", "format"]
features = ["radix", "format", "f16"]
5 changes: 3 additions & 2 deletions lexical-util/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ exclude = [

[dependencies]
static_assertions = "1"
float16 = { version = "0.1.0", optional = true }

[dev-dependencies]
# FIXME: Replace back to "1.0.4" once the PR is merged.
Expand Down Expand Up @@ -57,7 +58,7 @@ parse-floats = ["parse", "floats"]
# Reduce code size at the cost of performance.
compact = []
# Add support for the `f16` and `b16` half-point floating point numbers.
f16 = ["parse-floats", "write-floats"]
f16 = ["parse-floats", "write-floats", "float16"]

# Internal only features.
# Enable the lint checks.
Expand All @@ -81,4 +82,4 @@ floats = []
f128 = ["parse-floats", "write-floats"]

[package.metadata.docs.rs]
features = ["radix", "format", "write-integers", "write-floats", "parse-integers", "parse-floats"]
features = ["radix", "format", "write-integers", "write-floats", "parse-integers", "parse-floats", "f16"]
Loading
Loading