@@ -5,28 +5,6 @@ edition = "2024"
55publish = false
66license = " MIT OR Apache-2.0"
77
8- [features ]
9- default = [" build-mpfr" , " unstable-float" ]
10-
11- # Propagated from libm because this affects which functions we test.
12- unstable-float = [" libm/unstable-float" , " rug?/nightly-float" ]
13-
14- # Generate tests which are random inputs and the outputs are calculated with
15- # musl libc.
16- build-mpfr = [" dep:rug" , " dep:gmp-mpfr-sys" ]
17-
18- # Build our own musl for testing and benchmarks
19- build-musl = [" dep:musl-math-sys" ]
20-
21- # Enable report generation without bringing in more dependencies by default
22- benchmarking-reports = [" criterion/plotters" , " criterion/html_reports" ]
23-
24- # Enable icount benchmarks (requires gungraun-runner and valgrind locally)
25- icount = [" dep:gungraun" ]
26-
27- # Run with a reduced set of benchmarks, such as for CI
28- short-benchmarks = []
29-
308[dependencies ]
319anyhow.workspace = true
3210# This is not directly used but is required so we can enable `gmp-mpfr-sys/force-cross`.
@@ -52,6 +30,28 @@ rand = { workspace = true, optional = true }
5230criterion.workspace = true
5331libtest-mimic.workspace = true
5432
33+ [features ]
34+ default = [" build-mpfr" , " unstable-float" ]
35+
36+ # Propagated from libm because this affects which functions we test.
37+ unstable-float = [" libm/unstable-float" , " rug?/nightly-float" ]
38+
39+ # Generate tests which are random inputs and the outputs are calculated with
40+ # musl libc.
41+ build-mpfr = [" dep:rug" , " dep:gmp-mpfr-sys" ]
42+
43+ # Build our own musl for testing and benchmarks
44+ build-musl = [" dep:musl-math-sys" ]
45+
46+ # Enable report generation without bringing in more dependencies by default
47+ benchmarking-reports = [" criterion/plotters" , " criterion/html_reports" ]
48+
49+ # Enable icount benchmarks (requires gungraun-runner and valgrind locally)
50+ icount = [" dep:gungraun" ]
51+
52+ # Run with a reduced set of benchmarks, such as for CI
53+ short-benchmarks = []
54+
5555[[bench ]]
5656name = " icount"
5757harness = false
0 commit comments