Skip to content

Commit 6be7a5c

Browse files
authored
Merge branch 'main' into update-intermittent-gnu
2 parents 0782844 + ec7e81e commit 6be7a5c

File tree

46 files changed

+1340
-546
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1340
-546
lines changed

Cargo.lock

Lines changed: 16 additions & 82 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coreutils (uutils)
22
# * see the repository LICENSE, README, and CONTRIBUTING files for more information
33

4-
# spell-checker:ignore (libs) bigdecimal datetime serde wincode gethostid kqueue libselinux mangen memmap uuhelp startswith constness expl unnested logind cfgs interner
4+
# spell-checker:ignore (libs) ahash bigdecimal datetime serde gethostid kqueue libselinux mangen memmap uuhelp startswith constness expl unnested logind cfgs interner
55

66
[package]
77
name = "coreutils"
@@ -311,6 +311,7 @@ readme = "README.package.md"
311311
version = "0.6.0"
312312

313313
[workspace.dependencies]
314+
ahash = "0.8.12"
314315
ansi-width = "0.1.0"
315316
bigdecimal = "0.4"
316317
binary-heap-plus = "0.5.0"
@@ -329,7 +330,6 @@ dns-lookup = { version = "3.0.0" }
329330
exacl = "0.12.0"
330331
file_diff = "1.0.0"
331332
filetime = "0.2.23"
332-
fnv = "1.0.7"
333333
fs_extra = "1.3.0"
334334
fts-sys = "0.2.16"
335335
gcd = "2.3"
@@ -587,11 +587,6 @@ nix = { workspace = true, features = [
587587
] }
588588
rlimit = { workspace = true }
589589

590-
# Used in test_uptime::test_uptime_with_file_containing_valid_boot_time_utmpx_record
591-
# to deserialize an utmpx struct into a binary file
592-
[target.'cfg(all(target_family= "unix",not(target_os = "macos")))'.dev-dependencies]
593-
wincode = "0.3.1"
594-
wincode-derive = "0.3.1"
595590

596591
[build-dependencies]
597592
phf_codegen.workspace = true
@@ -612,8 +607,6 @@ codegen-units = 1
612607
# FIXME: https://github.com/uutils/coreutils/issues/10654
613608
[profile.release.package.uu_expand]
614609
codegen-units = 16
615-
[profile.release.package.uu_unexpand]
616-
codegen-units = 16
617610

618611
# A release-like profile that is as small as possible.
619612
[profile.release-small]

build.rs

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,26 +72,37 @@ pub fn main() {
7272
.unwrap();
7373

7474
let mut phf_map = phf_codegen::OrderedMap::<&str>::new();
75+
let mut entries = Vec::new();
76+
7577
for krate in &crates {
7678
let map_value = format!("({krate}::uumain, {krate}::uu_app)");
7779
match krate.as_ref() {
7880
// 'test' is named uu_test to avoid collision with rust core crate 'test'.
7981
// It can also be invoked by name '[' for the '[ expr ] syntax'.
8082
"uu_test" => {
81-
phf_map.entry("test", map_value.clone());
82-
phf_map.entry("[", map_value.clone());
83+
entries.push(("test", map_value.clone()));
84+
entries.push(("[", map_value.clone()));
8385
}
8486
k if k.starts_with(OVERRIDE_PREFIX) => {
85-
phf_map.entry(&k[OVERRIDE_PREFIX.len()..], map_value.clone());
87+
entries.push((&k[OVERRIDE_PREFIX.len()..], map_value.clone()));
8688
}
8789
"false" | "true" => {
88-
phf_map.entry(krate, format!("(r#{krate}::uumain, r#{krate}::uu_app)"));
90+
entries.push((
91+
krate.as_str(),
92+
format!("(r#{krate}::uumain, r#{krate}::uu_app)"),
93+
));
8994
}
9095
_ => {
91-
phf_map.entry(krate, map_value.clone());
96+
entries.push((krate.as_str(), map_value.clone()));
9297
}
9398
}
9499
}
100+
entries.sort_by_key(|(name, _)| *name);
101+
102+
for (name, value) in entries {
103+
phf_map.entry(name, value);
104+
}
105+
95106
write!(mf, "{}", phf_map.build()).unwrap();
96107
mf.write_all(b"\n}\n").unwrap();
97108

0 commit comments

Comments
 (0)