1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-06 16:07:47 +00:00
Commit graph

15884 commits

Author SHA1 Message Date
Sylvestre Ledru
52a5f1929d
Merge pull request #7386 from drinkcat/ci
.github: CICD: add workspace test to build matrix
2025-03-05 11:09:46 +01:00
Sylvestre Ledru
f85c6956f0
Merge pull request #7404 from cakebaker/uucore_remove_lazy_static
uucore: remove `lazy_static` and use `LazyLock` instead
2025-03-05 11:09:18 +01:00
Daniel Hofstetter
e177f7a6b0 Remove once_cell dependency & use LazyLock 2025-03-05 11:02:56 +01:00
Daniel Hofstetter
3b9b8c51cf uucore: remove lazy_static & use LazyLock instead 2025-03-05 10:13:30 +01:00
Sylvestre Ledru
0f9b36b0d4
Merge pull request #7403 from cakebaker/cksum_use_is_none_or
cksum: replace `is_some_and` with `is_none_or`
2025-03-05 09:33:34 +01:00
Daniel Hofstetter
1a316e80c0 cksum: replace is_some_and with is_none_or
for better readability
2025-03-05 08:52:08 +01:00
Daniel Hofstetter
9e94692b50
Merge pull request #7402 from uutils/renovate/time-0.x-lockfile
chore(deps): update rust crate time to v0.3.38
2025-03-05 08:39:06 +01:00
renovate[bot]
011d2c7f60
chore(deps): update rust crate time to v0.3.38 2025-03-05 07:11:51 +00:00
Sylvestre Ledru
cda24c678a
Merge pull request #7400 from cakebaker/mktemp_tr_use_repeat_n
mktemp,tr: replace `repeat().take()` with `repeat_n()`
2025-03-04 16:06:09 +01:00
Daniel Hofstetter
da6d00b876 mktemp,tr: replace repeat().take() with repeat_n() 2025-03-04 15:26:38 +01:00
Sylvestre Ledru
a82987b151
Merge pull request #7398 from cakebaker/clippy_unnecessary_map_or
clippy: fix warnings from `unnecessary_map_or` lint
2025-03-04 15:08:59 +01:00
Daniel Hofstetter
aa6c03885a clippy: fix warnings from unnecessary_map_or lint 2025-03-04 14:53:32 +01:00
Nicolas Boichat
3503783761 .github: CICD: add workspace test to build matrix
Add a new Linux build that runs without `cross`, and adds
`--workspace` to the cargo test command.

From cargo test documentation, this option "tests all members in
the workspace.". For example, this includes running tests within
the `uucore` package (see #7383).

Fixes #7392.
2025-03-04 14:46:28 +01:00
Sylvestre Ledru
37a94b4bec
Merge pull request #7395 from cakebaker/uucore_use_panic_hook_info
uucore: replace `PanicInfo` with `PanicHookInfo`
2025-03-04 14:22:49 +01:00
Daniel Hofstetter
ac30e4cf92 uucore: replace PanicInfo with PanicHookInfo 2025-03-04 11:03:18 +01:00
Dorian Peron
a9d8eed217 expr: Remove useless arg in enum variant 2025-03-04 10:27:55 +01:00
Dorian Peron
985ac3b381 test(expr): Add GNU tests to rust testsuite 2025-03-04 10:27:55 +01:00
Sylvestre Ledru
72299d3e16
Merge pull request #7394 from drinkcat/msrv-1.82.0
Bump MSRV to 1.82.0
2025-03-04 10:26:52 +01:00
Daniel Hofstetter
c8fa10766e
Merge pull request #7391 from sylvestre/use-new-function
Use the new function 'fails_with_code' - followup
2025-03-04 10:04:27 +01:00
Nicolas Boichat
c6e06af84a tests/common/util: Use is_none_or instead of map_or
Following clippy advice:
error: this `map_or` can be simplified
     --> tests\common\util.rs:411:9
      |
  411 |         self.exit_status.map_or(true, |e| e.success())
      |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use is_none_or instead: `self.exit_status.is_none_or(|e| e.success())`
2025-03-04 09:57:13 +01:00
Nicolas Boichat
a43fd11266 Bump MSRV to 1.82.0
Fixes #7393.
2025-03-04 09:46:55 +01:00
Sylvestre Ledru
3e1adf40ee Use the new function 'fails_with_code' v2 2025-03-04 09:27:47 +01:00
Sylvestre Ledru
0936cee9d5
Merge pull request #7371 from sylvestre/use-new-function
use the new function fails_with_code
2025-03-04 08:31:18 +01:00
Sylvestre Ledru
320486e2a3
Merge pull request #7390 from cakebaker/deny_toml_remove_three_crates_from_skip_list
deny.toml: remove three crates from skip list
2025-03-04 07:51:25 +01:00
Daniel Hofstetter
c14a60b3cd
Merge pull request #7389 from uutils/renovate/unindent-0.x-lockfile
chore(deps): update rust crate unindent to v0.2.4
2025-03-04 07:32:37 +01:00
Daniel Hofstetter
4b618dc7bb deny.toml: remove three crates from skip list
linux-raw-sys, rustix, and terminal_size
2025-03-04 07:18:21 +01:00
Daniel Hofstetter
1c1fae2ea3
Merge pull request #7387 from uutils/renovate/textwrap-0.x-lockfile
chore(deps): update rust crate textwrap to v0.16.2
2025-03-04 07:06:51 +01:00
renovate[bot]
a83cfe14a1
chore(deps): update rust crate unindent to v0.2.4 2025-03-04 02:33:33 +00:00
renovate[bot]
f743c470ea
chore(deps): update rust crate textwrap to v0.16.2 2025-03-03 20:06:25 +00:00
Sylvestre Ledru
439b146b5e
Merge pull request #7385 from dezgeg/build-fix
uucore: Fix proc_info compilation
2025-03-03 16:14:23 +01:00
Tuomas Tynkkynen
8f119fba5e uucore: Fix proc_info compilation
Fixes #7383
2025-03-03 16:51:35 +02:00
Daniel Hofstetter
8b6bd7c791
Merge pull request #7381 from uutils/renovate/quote-1.x-lockfile
fix(deps): update rust crate quote to v1.0.39
2025-03-03 11:42:37 +01:00
renovate[bot]
5bfe0ff34a
fix(deps): update rust crate quote to v1.0.39 2025-03-03 10:13:35 +00:00
Daniel Hofstetter
ba57fdb027
Merge pull request #7380 from uutils/renovate/proc-macro2-1.x-lockfile
fix(deps): update rust crate proc-macro2 to v1.0.94
2025-03-03 07:32:24 +01:00
Daniel Hofstetter
f4694d2f16
Merge pull request #7379 from uutils/renovate/thiserror-2.x-lockfile
chore(deps): update rust crate thiserror to v2.0.12
2025-03-03 07:30:21 +01:00
renovate[bot]
5c62a2b5c2
fix(deps): update rust crate proc-macro2 to v1.0.94 2025-03-03 06:06:03 +00:00
renovate[bot]
6c39a530e4
chore(deps): update rust crate thiserror to v2.0.12 2025-03-03 06:05:57 +00:00
Daniel Hofstetter
c4eb6bf9d5
Merge pull request #7377 from uutils/renovate/rstest-0.x
chore(deps): update rust crate rstest to 0.25.0
2025-03-03 07:03:34 +01:00
renovate[bot]
cef8d35f07
chore(deps): update rust crate rstest to 0.25.0 2025-03-02 17:49:56 +00:00
Daniel Hofstetter
4fda78a026
Merge pull request #7373 from uutils/renovate/rand_core-0.x-lockfile
chore(deps): update rust crate rand_core to v0.9.3
2025-03-02 13:31:34 +01:00
Sylvestre Ledru
daeffacf70
Merge pull request #7374 from uutils/renovate/console-0.x-lockfile
fix(deps): update rust crate console to v0.15.11
2025-03-02 09:23:58 +01:00
renovate[bot]
e21f7cd784
fix(deps): update rust crate console to v0.15.11 2025-03-02 01:36:38 +00:00
renovate[bot]
eadf00c70f
chore(deps): update rust crate rand_core to v0.9.3 2025-03-01 19:12:38 +00:00
Sylvestre Ledru
18cb7dcf9e Use the new function fails_with_code
Done with
```
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.no_stdout\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2)\n\1.no_stdout();/gs' *rs
$ sed -i -e "s|.fails()(.*).code_is(|.fails_with_code(|g" *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)[ \t]*\n[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\2);/gs' *rs
$ perl -0777 -i -pe 's/([ \t]+)\.fails\(\)(.*?)[ \t]+\.code_is\(([0-9]+)\);/\1.fails_with_code(\3)\2;/gs' *rs
...
```
2025-03-01 17:26:20 +01:00
Dorian Péron
76ad6042b5
Merge pull request #7253 from karlmcdowall/head_stdio_file
Head: ensure stdin input stream is correct on exit
2025-02-28 17:05:06 +01:00
Dorian Péron
5c29054a40
Merge pull request #7365 from drinkcat/printf-float-hex-exponent
printf: (partially) fix hex format: exponent is decimal, correctly print negative numbers
2025-02-28 15:53:39 +01:00
Daniel Hofstetter
854000e394
Merge pull request #7351 from dezgeg/process-sync
uucore: Sync proc_info methods from procps
2025-02-28 09:33:09 +01:00
Daniel Hofstetter
0c50271869
Merge pull request #7370 from uutils/renovate/blake3-1.x-lockfile
chore(deps): update rust crate blake3 to v1.6.1
2025-02-28 07:24:41 +01:00
renovate[bot]
d9ef80b177
chore(deps): update rust crate blake3 to v1.6.1 2025-02-27 22:38:57 +00:00
Sylvestre Ledru
d14ece900c
Merge pull request #7369 from RenjiSann/peron/uutest-fails_with_code
test-utils: Add fails_with_code() function
2025-02-27 15:09:04 +01:00