This repository was archived by the owner on Jan 27, 2026. It is now read-only.
forked from dtolnay/ryu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
61 lines (52 loc) · 1.58 KB
/
Cargo.toml
File metadata and controls
61 lines (52 loc) · 1.58 KB
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
[package]
name = "ryuu"
version = "2.0.0+ryu.86d20a5"
edition = "2021"
rust-version = "1.83.0"
# === Publication info ===
authors = ["David Tolnay <dtolnay@gmail.com>", "Hantong Chen <cxwdyx620@gmail.com>"]
categories = ["value-formatting", "no-std", "no-std::no-alloc"]
description = "Fast floating point to string conversion"
exclude = ["build.rs", "*.png"]
keywords = ["float"]
documentation = "https://docs.rs/ryuu"
license = "Apache-2.0 OR BSL-1.0"
repository = "https://github.com/hanyu-dev/ryuu"
readme = "README.md"
[features]
# Use smaller lookup tables. Instead of storing every required power of
# 5, only store every 26th entry, and compute intermediate values with a
# multiplication. This reduces the lookup table size by about 10x (only
# one case, and only f64) at the cost of some performance.
small = []
# Experimental parsing functions.
feat-exp-parse = []
[dependencies]
unroll-lite = "0.1.0"
[dev-dependencies]
num_cpus = "1.8"
rand = "0.9"
rand_xorshift = "0.4"
ryu = "1.0.20"
[target.'cfg(not(miri))'.dev-dependencies]
criterion = { version = "0.8", default-features = false }
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
"--generate-link-to-definition",
"--generate-macro-expansion",
"--extern-html-root-url=core=https://doc.rust-lang.org",
"--extern-html-root-url=alloc=https://doc.rust-lang.org",
"--extern-html-root-url=std=https://doc.rust-lang.org",
]
[[bench]]
name = "bench"
harness = false
# For release builds
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
incremental = false
panic = "abort"
strip = true