Skip to content

Commit 81d960f

Browse files
committed
Move test-float-parse to the global workspace
Since `test-float-parse` is now implemented in Rust, we can move it into the global workspace and check dependency licenses.
1 parent c0a6814 commit 81d960f

File tree

3 files changed

+89
-1
lines changed

3 files changed

+89
-1
lines changed

Cargo.lock

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2580,12 +2580,76 @@ dependencies = [
25802580
"windows-sys 0.48.0",
25812581
]
25822582

2583+
[[package]]
2584+
name = "num"
2585+
version = "0.4.3"
2586+
source = "registry+https://github.com/rust-lang/crates.io-index"
2587+
checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
2588+
dependencies = [
2589+
"num-bigint",
2590+
"num-complex",
2591+
"num-integer",
2592+
"num-iter",
2593+
"num-rational",
2594+
"num-traits",
2595+
]
2596+
2597+
[[package]]
2598+
name = "num-bigint"
2599+
version = "0.4.6"
2600+
source = "registry+https://github.com/rust-lang/crates.io-index"
2601+
checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
2602+
dependencies = [
2603+
"num-integer",
2604+
"num-traits",
2605+
]
2606+
2607+
[[package]]
2608+
name = "num-complex"
2609+
version = "0.4.6"
2610+
source = "registry+https://github.com/rust-lang/crates.io-index"
2611+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
2612+
dependencies = [
2613+
"num-traits",
2614+
]
2615+
25832616
[[package]]
25842617
name = "num-conv"
25852618
version = "0.1.0"
25862619
source = "registry+https://github.com/rust-lang/crates.io-index"
25872620
checksum = "51d515d32fb182ee37cda2ccdcb92950d6a3c2893aa280e540671c2cd0f3b1d9"
25882621

2622+
[[package]]
2623+
name = "num-integer"
2624+
version = "0.1.46"
2625+
source = "registry+https://github.com/rust-lang/crates.io-index"
2626+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
2627+
dependencies = [
2628+
"num-traits",
2629+
]
2630+
2631+
[[package]]
2632+
name = "num-iter"
2633+
version = "0.1.45"
2634+
source = "registry+https://github.com/rust-lang/crates.io-index"
2635+
checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf"
2636+
dependencies = [
2637+
"autocfg",
2638+
"num-integer",
2639+
"num-traits",
2640+
]
2641+
2642+
[[package]]
2643+
name = "num-rational"
2644+
version = "0.4.2"
2645+
source = "registry+https://github.com/rust-lang/crates.io-index"
2646+
checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
2647+
dependencies = [
2648+
"num-bigint",
2649+
"num-integer",
2650+
"num-traits",
2651+
]
2652+
25892653
[[package]]
25902654
name = "num-traits"
25912655
version = "0.2.19"
@@ -5586,6 +5650,17 @@ dependencies = [
55865650
"std",
55875651
]
55885652

5653+
[[package]]
5654+
name = "test-float-parse"
5655+
version = "0.1.0"
5656+
dependencies = [
5657+
"indicatif",
5658+
"num",
5659+
"rand",
5660+
"rand_chacha",
5661+
"rayon",
5662+
]
5663+
55895664
[[package]]
55905665
name = "textwrap"
55915666
version = "0.16.1"

Cargo.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ members = [
44
"compiler/rustc",
55
"library/std",
66
"library/sysroot",
7+
"src/etc/test-float-parse",
78
"src/rustdoc-json-types",
89
"src/tools/build_helper",
910
"src/tools/cargotest",
@@ -105,6 +106,18 @@ rustc-demangle.debug = 0
105106
debug = 0
106107
strip = true
107108

109+
# Bigint libraries are slow without optimization, speed up testing
110+
[profile.dev.package.test-float-parse]
111+
opt-level = 3
112+
113+
# Speed up the binary as much as possible
114+
[profile.release.package.test-float-parse]
115+
opt-level = 3
116+
codegen-units = 1
117+
# FIXME: LTO cannot be enabled for binaries in a workspace
118+
# <https://github.com/rust-lang/cargo/issues/9330>
119+
# lto = true
120+
108121
[patch.crates-io]
109122
# See comments in `library/rustc-std-workspace-core/README.md` for what's going on
110123
# here

src/tools/tidy/src/deps.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pub(crate) const WORKSPACES: &[(&str, ExceptionList, Option<(&[&str], &[&str])>)
6565
//("library/stdarch", EXCEPTIONS_STDARCH, None), // FIXME uncomment once rust-lang/stdarch#1462 has been synced back to the rust repo
6666
("src/bootstrap", EXCEPTIONS_BOOTSTRAP, None),
6767
("src/ci/docker/host-x86_64/test-various/uefi_qemu_test", EXCEPTIONS_UEFI_QEMU_TEST, None),
68-
//("src/etc/test-float-parse", &[], None), // FIXME uncomment once all deps are vendored
68+
("src/etc/test-float-parse", EXCEPTIONS, None),
6969
("src/tools/cargo", EXCEPTIONS_CARGO, None),
7070
//("src/tools/miri/test-cargo-miri", &[], None), // FIXME uncomment once all deps are vendored
7171
//("src/tools/miri/test_dependencies", &[], None), // FIXME uncomment once all deps are vendored

0 commit comments

Comments
 (0)