1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2026-01-21 04:31:13 +00:00
Commit graph

251 commits

Author SHA1 Message Date
Sylvestre Ledru
94c1fad206 l10n: adjust the code to use the fluent files instead of the PROG.md docs 2025-06-04 19:23:57 +02:00
Sylvestre Ledru
28c16dd6d1 l10n: convert the PROG.md command to fluent 2025-06-04 19:19:02 +02:00
Sylvestre Ledru
d8bb7875cf l10n: adjust the code to use help_about & help_usage 2025-06-04 19:19:02 +02:00
yuankunzhang
d412f582cb split: fix a racing condition that causes issue #7869 2025-05-04 16:49:03 +08:00
Yuri Astrakhan
8a5a2eed2a
Merge pull request #7702 from nyurik/iters
feat: optimize iter matching
2025-04-15 19:54:58 +02:00
Ben Wiederhake
11cd0b1bbf replace Error::new(ErrorKind::Other, _) as suggested by clippy
See also:
https://rust-lang.github.io/rust-clippy/master/index.html#io_other_error
2025-04-13 04:35:38 +02:00
Sylvestre Ledru
e4c7bd0641
Merge pull request #7724 from nyurik/ref-option
chore: fix `ref_option` lint
2025-04-12 23:37:57 +02:00
Yuri Astrakhan
3b2d3716df chore: fix clippy::unnested_or_patterns
Used this command:

```shell
cargo clippy --fix --workspace --all-targets -- -A clippy::all -W clippy::unnested_or_patterns
cargo fmt --all
```
2025-04-11 18:00:07 -04:00
Yuri Astrakhan
ac5a913996 chore: fix ref_option lint
Resolve [ref_option](https://rust-lang.github.io/rust-clippy/master/index.html#ref_option) lint.  Also, I optimized `is_first_filename_timestamp` a bit to make it faster and more streamlined.

p.s. disclaimer: I'm the author of that lint
2025-04-11 12:12:54 -04:00
Sylvestre Ledru
5bfbc30fba
Merge pull request #7715 from nyurik/unused_qualifications
Enable and fix `unused_qualifications` lint
2025-04-10 18:11:08 -04:00
Yuri Astrakhan
76b1b6835c rm ptr::NonNull 2025-04-10 17:13:18 -04:00
Yuri Astrakhan
9f56bf5f07 Enable and fix unused_qualifications lint
Improve code readability
2025-04-10 16:54:18 -04:00
Yuri Astrakhan
895b208391 Consolidate crate config in workspace
Make all common data like version, edition, license, ... be managed in one central workspace. This makes management much simpler
2025-04-10 16:52:01 -04:00
Yuri Astrakhan
2d95850700 chore: manual inline formatting
Minor manual cleanup - inlined many format args.  This makes the code a bit more readable, and helps spot a few inefficiencies and possible bugs.  Note that `&foo` in a `format!` parameter results in a 6% extra performance cost, and does not get inlined by the compiler (yet).
2025-04-09 15:33:46 -04:00
Yuri Astrakhan
2413dc9168 Consolidate lint management with workspaces
At the moment, most crates rely on build scripts and other methods to keep lint-consistency. As of recent, Rust can use workspaces to globally set all the lint configurations.

This PR only adds lint configuration to each crate, but it does not introduce any changes to the code or lint configuration. In the subsequent PRs, I plan to gradually move lints from `uucore` to workspace, making all code consistent.

Note that `seq` relies on a custom lint config - which means its configuration may need to be managed by hand until Cargo introduces per-crate overrides.
2025-04-09 03:58:46 -04:00
Nicolas Boichat
6243dd5494 uucore: Move parser to a feature
This will eventually be needed as we'll want parse_time to
call into num_parser, which was previously contained in format
feature.
2025-04-04 15:25:06 +02:00
Solomon Victorino
9db51ec828 split: move to thiserror 2025-03-30 21:15:21 +02:00
Sylvestre Ledru
a85539f530 Run cargo fmt on the tree 2025-03-24 21:33:12 +01:00
Sylvestre Ledru
5b1b40bfd8 Fix 'binding modifiers may only be written when the default binding mode is' 2025-03-24 21:02:48 +01:00
Sylvestre Ledru
2739c19330 Fix unsafe attribute used without unsafe 2025-03-24 21:00:53 +01:00
Sylvestre Ledru
e0fbced116 rust edition 2021 => 2024 2025-03-24 21:00:35 +01:00
Daniel Hofstetter
d34eb25251 all: use crate_version! from uucore 2025-03-15 16:03:17 +01:00
Sylvestre Ledru
105a90c9df prepare version 0.0.30 2025-03-08 11:04:08 +01:00
danieleades
5d6a04ab71
Fix clippy warning manual_if_else (#7177)
and enable the rule
2025-01-23 22:49:13 +01:00
Jeffrey Finkelstein
071e72ffc8 split: fix bug with large arguments to -C
Fix the behavior of `split -C` when given large arguments. Before this
commit, bytes were being greedily assigned to a chunk too aggressively,
leading to a situation where a split happened in the middle of a line
even though the entire line could have fit within the next chunk. This
was appearing for large arguments to `-C` and long lines that extended
beyond the size of the read buffer. This commit fixes the behavior.

Fixes #7026
2025-01-13 09:36:48 +01:00
Sylvestre Ledru
aef4234fb5 New release 2025-01-11 14:01:27 +01:00
Sylvestre Ledru
7708f6e39a clippy: replace .as_bytes().len() => .len() 2024-12-17 22:47:45 +01:00
Sylvestre Ledru
41a3695b3f uucore: Fix a clippy warning
The following explicit lifetimes could be elided: 'a
2024-11-28 19:25:17 +01:00
Sylvestre Ledru
9932aec085 prepare version 0.0.28 2024-11-03 20:59:42 +01:00
David Campbell
353eb53367
Fix clippy::uninlined_format_args . 2024-09-19 17:56:27 -04:00
Luca Barbato
11bd0c7fc4 coreutils: Add a default readme for the packages 2024-06-30 10:52:10 +02:00
Sylvestre Ledru
276bebcf14 prepare version 0.0.27 2024-06-23 00:24:02 +02:00
Daniel Hofstetter
97c1633b5e clippy: fix warnings introduced by Rust 1.79 2024-06-14 07:55:31 +02:00
Sylvestre Ledru
01ea23ba21 Try to release 0.0.26 to see if the artifacts are generated 2024-03-30 22:51:24 +01:00
Sylvestre Ledru
2246a0fad1 0.0.24 => 0.0.25 2024-03-23 22:08:05 +01:00
Daniel Hofstetter
c619dbc99c split: fix error msg shown if file doesn't exist 2024-03-12 14:28:25 +01:00
Ulrich Hornung
dab02d005d
split: close as much fds as needed for opening new one 2024-03-07 23:49:27 +01:00
Ulrich Hornung
294c9de3ae extend error message for case when writer instanciation fails second time 2024-03-05 20:43:25 +01:00
Ulrich Hornung
e68312cae9 sane blksize to avoid memory kill in split -n 3 /dev/zero 2024-02-10 14:33:13 +01:00
kralo
d046d33bee split: use inclusive range
as suggested by clippy::range-plus-one
2024-01-28 09:42:40 +01:00
Sylvestre Ledru
dd5c6c2d00 0.0.23 => 0.0.24 2024-01-20 20:12:19 +01:00
zhitkoff
7b2a3e236e split: r-chunk tests and infinite input 2023-11-25 11:12:08 -05:00
zhitkoff
440e7b1a59 split: r-chunk test compliance 2023-11-25 11:12:08 -05:00
zhitkoff
dc92a434ef split: handling system limit on open files 2023-11-25 11:12:08 -05:00
zhitkoff
4dc46f10e9 split: pass GNU test l-chunk 2023-11-24 10:06:16 +01:00
Yury Zhytkou
eb00c195c6
split: pass GNU tests/b-chunk.sh (#5475)
---------

Co-authored-by: Terts Diepraam <terts.diepraam@gmail.com>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: Brandon Elam Barker <brandon.barker@gmail.com>
Co-authored-by: Kostiantyn Hryshchuk <statheres@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-17 17:19:10 +01:00
cswn
c4580df2a4 split: remove crash macro 2023-11-14 18:07:35 +01:00
Sylvestre Ledru
ff92bfb25b Prepare version 0.0.23 2023-11-13 22:02:01 +01:00
Kostiantyn Hryshchuk
6ac1af6953 Fix clippy::implicit_clone 2023-11-04 21:04:29 +01:00
zhitkoff
62887c7a58 split: directory separator in additional suffix 2023-11-02 17:17:38 +01:00