Skip to content

Commit 7c9ae5b

Browse files
committed
meta: Sort Cargo.toml [features] table after [dependencies]
1 parent 0538f7b commit 7c9ae5b

3 files changed

Lines changed: 32 additions & 32 deletions

File tree

library/compiler-builtins/crates/util/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ edition = "2024"
55
publish = false
66
license = "MIT OR Apache-2.0"
77

8-
[features]
9-
default = ["build-musl", "build-mpfr", "unstable-float"]
10-
build-musl = ["libm-test/build-musl", "dep:musl-math-sys"]
11-
build-mpfr = ["libm-test/build-mpfr", "dep:rug"]
12-
unstable-float = ["libm/unstable-float", "libm-test/unstable-float", "rug?/nightly-float"]
13-
148
[dependencies]
159
libm.workspace = true
1610
libm-macros.workspace = true
1711
libm-test.workspace = true
1812
musl-math-sys = { workspace = true, optional = true }
1913
rug = { workspace = true, optional = true }
14+
15+
[features]
16+
default = ["build-musl", "build-mpfr", "unstable-float"]
17+
build-musl = ["libm-test/build-musl", "dep:musl-math-sys"]
18+
build-mpfr = ["libm-test/build-mpfr", "dep:rug"]
19+
unstable-float = ["libm/unstable-float", "libm-test/unstable-float", "rug?/nightly-float"]

library/compiler-builtins/libm-test/Cargo.toml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,6 @@ edition = "2024"
55
publish = false
66
license = "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]
319
anyhow.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 }
5230
criterion.workspace = true
5331
libtest-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]]
5656
name = "icount"
5757
harness = false

library/compiler-builtins/libm/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ license = "MIT"
1515
edition = "2021"
1616
rust-version = "1.63"
1717

18+
[dev-dependencies]
19+
# FIXME(msrv): switch to `no-panic.workspace` when possible
20+
no-panic = "0.1.35"
21+
1822
[features]
1923
default = ["arch"]
2024

@@ -42,10 +46,6 @@ unstable-float = []
4246
# hard float operations.
4347
force-soft-floats = []
4448

45-
[dev-dependencies]
46-
# FIXME(msrv): switch to `no-panic.workspace` when possible
47-
no-panic = "0.1.35"
48-
4949
[lints.rust]
5050
unexpected_cfgs = { level = "warn", check-cfg = [
5151
# compiler-builtins sets this feature, but we use it in `libm`

0 commit comments

Comments
 (0)