Skip to content

Commit ca29d5d

Browse files
authored
[rust] Use pure Rust implementation for which command (#14114)
* [rust] Use pure Rust implementation for which command * [rust] Temporal disable of windows worker to run tests in CI * Revert "[rust] Temporal disable of windows worker to run tests in CI" This reverts commit 1b88d56.
1 parent e4501f4 commit ca29d5d

File tree

5 files changed

+318
-40
lines changed

5 files changed

+318
-40
lines changed

rust/Cargo.Bazel.lock

Lines changed: 276 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"checksum": "14dbf17d9e872e55d0e978b15ce60660603017dfddf7a924539a1085d1255e3f",
2+
"checksum": "2e41cb73375f93664a33a387f57c14d87cccc43361197a1b4f325e2bc05f6954",
33
"crates": {
44
"addr2line 0.21.0": {
55
"name": "addr2line",
@@ -3713,6 +3713,52 @@
37133713
],
37143714
"license_file": "LICENSE"
37153715
},
3716+
"either 1.12.0": {
3717+
"name": "either",
3718+
"version": "1.12.0",
3719+
"package_url": "https://github.com/rayon-rs/either",
3720+
"repository": {
3721+
"Http": {
3722+
"url": "https://static.crates.io/crates/either/1.12.0/download",
3723+
"sha256": "3dca9240753cf90908d7e4aac30f630662b02aebaa1b58a3cadabdb23385b58b"
3724+
}
3725+
},
3726+
"targets": [
3727+
{
3728+
"Library": {
3729+
"crate_name": "either",
3730+
"crate_root": "src/lib.rs",
3731+
"srcs": {
3732+
"allow_empty": false,
3733+
"include": [
3734+
"**/*.rs"
3735+
]
3736+
}
3737+
}
3738+
}
3739+
],
3740+
"library_target_name": "either",
3741+
"common_attrs": {
3742+
"compile_data_glob": [
3743+
"**"
3744+
],
3745+
"crate_features": {
3746+
"common": [
3747+
"default",
3748+
"use_std"
3749+
],
3750+
"selects": {}
3751+
},
3752+
"edition": "2018",
3753+
"version": "1.12.0"
3754+
},
3755+
"license": "MIT OR Apache-2.0",
3756+
"license_ids": [
3757+
"Apache-2.0",
3758+
"MIT"
3759+
],
3760+
"license_file": "LICENSE-APACHE"
3761+
},
37163762
"encoding_rs 0.8.34": {
37173763
"name": "encoding_rs",
37183764
"version": "0.8.34",
@@ -5814,6 +5860,56 @@
58145860
],
58155861
"license_file": "LICENSE-APACHE"
58165862
},
5863+
"home 0.5.9": {
5864+
"name": "home",
5865+
"version": "0.5.9",
5866+
"package_url": "https://github.com/rust-lang/cargo",
5867+
"repository": {
5868+
"Http": {
5869+
"url": "https://static.crates.io/crates/home/0.5.9/download",
5870+
"sha256": "e3d1354bf6b7235cb4a0576c2619fd4ed18183f689b12b006a0ee7329eeff9a5"
5871+
}
5872+
},
5873+
"targets": [
5874+
{
5875+
"Library": {
5876+
"crate_name": "home",
5877+
"crate_root": "src/lib.rs",
5878+
"srcs": {
5879+
"allow_empty": false,
5880+
"include": [
5881+
"**/*.rs"
5882+
]
5883+
}
5884+
}
5885+
}
5886+
],
5887+
"library_target_name": "home",
5888+
"common_attrs": {
5889+
"compile_data_glob": [
5890+
"**"
5891+
],
5892+
"deps": {
5893+
"common": [],
5894+
"selects": {
5895+
"cfg(windows)": [
5896+
{
5897+
"id": "windows-sys 0.52.0",
5898+
"target": "windows_sys"
5899+
}
5900+
]
5901+
}
5902+
},
5903+
"edition": "2021",
5904+
"version": "0.5.9"
5905+
},
5906+
"license": "MIT OR Apache-2.0",
5907+
"license_ids": [
5908+
"Apache-2.0",
5909+
"MIT"
5910+
],
5911+
"license_file": "LICENSE-APACHE"
5912+
},
58175913
"http 0.2.12": {
58185914
"name": "http",
58195915
"version": "0.2.12",
@@ -11581,10 +11677,6 @@
1158111677
"id": "infer 0.15.0",
1158211678
"target": "infer"
1158311679
},
11584-
{
11585-
"id": "is_executable 1.0.1",
11586-
"target": "is_executable"
11587-
},
1158811680
{
1158911681
"id": "log 0.4.21",
1159011682
"target": "log"
@@ -11629,6 +11721,10 @@
1162911721
"id": "walkdir 2.5.0",
1163011722
"target": "walkdir"
1163111723
},
11724+
{
11725+
"id": "which 6.0.1",
11726+
"target": "which"
11727+
},
1163211728
{
1163311729
"id": "zip 1.3.0",
1163411730
"target": "zip"
@@ -11642,6 +11738,10 @@
1164211738
"id": "assert_cmd 2.0.14",
1164311739
"target": "assert_cmd"
1164411740
},
11741+
{
11742+
"id": "is_executable 1.0.1",
11743+
"target": "is_executable"
11744+
},
1164511745
{
1164611746
"id": "rstest 0.19.0",
1164711747
"target": "rstest"
@@ -16115,6 +16215,72 @@
1611516215
],
1611616216
"license_file": "LICENSE"
1611716217
},
16218+
"which 6.0.1": {
16219+
"name": "which",
16220+
"version": "6.0.1",
16221+
"package_url": "https://github.com/harryfei/which-rs.git",
16222+
"repository": {
16223+
"Http": {
16224+
"url": "https://static.crates.io/crates/which/6.0.1/download",
16225+
"sha256": "8211e4f58a2b2805adfbefbc07bab82958fc91e3836339b1ab7ae32465dce0d7"
16226+
}
16227+
},
16228+
"targets": [
16229+
{
16230+
"Library": {
16231+
"crate_name": "which",
16232+
"crate_root": "src/lib.rs",
16233+
"srcs": {
16234+
"allow_empty": false,
16235+
"include": [
16236+
"**/*.rs"
16237+
]
16238+
}
16239+
}
16240+
}
16241+
],
16242+
"library_target_name": "which",
16243+
"common_attrs": {
16244+
"compile_data_glob": [
16245+
"**"
16246+
],
16247+
"deps": {
16248+
"common": [
16249+
{
16250+
"id": "either 1.12.0",
16251+
"target": "either"
16252+
}
16253+
],
16254+
"selects": {
16255+
"cfg(any(unix, target_os = \"wasi\", target_os = \"redox\"))": [
16256+
{
16257+
"id": "rustix 0.38.34",
16258+
"target": "rustix"
16259+
}
16260+
],
16261+
"cfg(any(windows, unix, target_os = \"redox\"))": [
16262+
{
16263+
"id": "home 0.5.9",
16264+
"target": "home"
16265+
}
16266+
],
16267+
"cfg(windows)": [
16268+
{
16269+
"id": "winsafe 0.0.19",
16270+
"target": "winsafe"
16271+
}
16272+
]
16273+
}
16274+
},
16275+
"edition": "2021",
16276+
"version": "6.0.1"
16277+
},
16278+
"license": "MIT",
16279+
"license_ids": [
16280+
"MIT"
16281+
],
16282+
"license_file": "LICENSE.txt"
16283+
},
1611816284
"winapi 0.3.9": {
1611916285
"name": "winapi",
1612016286
"version": "0.3.9",
@@ -16539,11 +16705,14 @@
1653916705
"Win32_Storage",
1654016706
"Win32_Storage_FileSystem",
1654116707
"Win32_System",
16708+
"Win32_System_Com",
1654216709
"Win32_System_Console",
1654316710
"Win32_System_IO",
1654416711
"Win32_System_SystemInformation",
1654516712
"Win32_System_Threading",
1654616713
"Win32_System_WindowsProgramming",
16714+
"Win32_UI",
16715+
"Win32_UI_Shell",
1654716716
"default"
1654816717
],
1654916718
"selects": {}
@@ -17868,6 +18037,50 @@
1786818037
],
1786918038
"license_file": "LICENSE"
1787018039
},
18040+
"winsafe 0.0.19": {
18041+
"name": "winsafe",
18042+
"version": "0.0.19",
18043+
"package_url": "https://github.com/rodrigocfd/winsafe",
18044+
"repository": {
18045+
"Http": {
18046+
"url": "https://static.crates.io/crates/winsafe/0.0.19/download",
18047+
"sha256": "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"
18048+
}
18049+
},
18050+
"targets": [
18051+
{
18052+
"Library": {
18053+
"crate_name": "winsafe",
18054+
"crate_root": "src/lib.rs",
18055+
"srcs": {
18056+
"allow_empty": false,
18057+
"include": [
18058+
"**/*.rs"
18059+
]
18060+
}
18061+
}
18062+
}
18063+
],
18064+
"library_target_name": "winsafe",
18065+
"common_attrs": {
18066+
"compile_data_glob": [
18067+
"**"
18068+
],
18069+
"crate_features": {
18070+
"common": [
18071+
"kernel"
18072+
],
18073+
"selects": {}
18074+
},
18075+
"edition": "2021",
18076+
"version": "0.0.19"
18077+
},
18078+
"license": "MIT",
18079+
"license_ids": [
18080+
"MIT"
18081+
],
18082+
"license_file": "LICENSE.md"
18083+
},
1787118084
"x509-certificate 0.23.1": {
1787218085
"name": "x509-certificate",
1787318086
"version": "0.23.1",
@@ -18837,6 +19050,62 @@
1883719050
"x86_64-unknown-linux-gnu",
1883819051
"x86_64-unknown-nixos-gnu"
1883919052
],
19053+
"cfg(any(unix, target_os = \"wasi\", target_os = \"redox\"))": [
19054+
"aarch64-apple-darwin",
19055+
"aarch64-apple-ios",
19056+
"aarch64-apple-ios-sim",
19057+
"aarch64-fuchsia",
19058+
"aarch64-linux-android",
19059+
"aarch64-unknown-linux-gnu",
19060+
"aarch64-unknown-nixos-gnu",
19061+
"aarch64-unknown-nto-qnx710",
19062+
"arm-unknown-linux-gnueabi",
19063+
"armv7-linux-androideabi",
19064+
"armv7-unknown-linux-gnueabi",
19065+
"i686-apple-darwin",
19066+
"i686-linux-android",
19067+
"i686-unknown-freebsd",
19068+
"i686-unknown-linux-gnu",
19069+
"powerpc-unknown-linux-gnu",
19070+
"s390x-unknown-linux-gnu",
19071+
"wasm32-wasi",
19072+
"x86_64-apple-darwin",
19073+
"x86_64-apple-ios",
19074+
"x86_64-fuchsia",
19075+
"x86_64-linux-android",
19076+
"x86_64-unknown-freebsd",
19077+
"x86_64-unknown-linux-gnu",
19078+
"x86_64-unknown-nixos-gnu"
19079+
],
19080+
"cfg(any(windows, unix, target_os = \"redox\"))": [
19081+
"aarch64-apple-darwin",
19082+
"aarch64-apple-ios",
19083+
"aarch64-apple-ios-sim",
19084+
"aarch64-fuchsia",
19085+
"aarch64-linux-android",
19086+
"aarch64-pc-windows-msvc",
19087+
"aarch64-unknown-linux-gnu",
19088+
"aarch64-unknown-nixos-gnu",
19089+
"aarch64-unknown-nto-qnx710",
19090+
"arm-unknown-linux-gnueabi",
19091+
"armv7-linux-androideabi",
19092+
"armv7-unknown-linux-gnueabi",
19093+
"i686-apple-darwin",
19094+
"i686-linux-android",
19095+
"i686-pc-windows-msvc",
19096+
"i686-unknown-freebsd",
19097+
"i686-unknown-linux-gnu",
19098+
"powerpc-unknown-linux-gnu",
19099+
"s390x-unknown-linux-gnu",
19100+
"x86_64-apple-darwin",
19101+
"x86_64-apple-ios",
19102+
"x86_64-fuchsia",
19103+
"x86_64-linux-android",
19104+
"x86_64-pc-windows-msvc",
19105+
"x86_64-unknown-freebsd",
19106+
"x86_64-unknown-linux-gnu",
19107+
"x86_64-unknown-nixos-gnu"
19108+
],
1884019109
"cfg(fuzzing)": [],
1884119110
"cfg(not(all(windows, target_env = \"msvc\", not(target_vendor = \"uwp\"))))": [
1884219111
"aarch64-apple-darwin",
@@ -19124,7 +19393,6 @@
1912419393
"exitcode 1.1.2",
1912519394
"flate2 1.0.30",
1912619395
"infer 0.15.0",
19127-
"is_executable 1.0.1",
1912819396
"log 0.4.21",
1912919397
"regex 1.10.4",
1913019398
"reqwest 0.12.4",
@@ -19136,10 +19404,12 @@
1913619404
"tokio 1.37.0",
1913719405
"toml 0.8.13",
1913819406
"walkdir 2.5.0",
19407+
"which 6.0.1",
1913919408
"zip 1.3.0"
1914019409
],
1914119410
"direct_dev_deps": [
1914219411
"assert_cmd 2.0.14",
19412+
"is_executable 1.0.1",
1914319413
"rstest 0.19.0"
1914419414
]
1914519415
}

0 commit comments

Comments
 (0)