Commit graph

13364 commits

Author SHA1 Message Date
Andrew Liebenow
ed04f14ba8 basenc: also perform faster, streaming decoding
Same as previous changes, just applied to decoding
2024-09-21 04:02:09 -05:00
Andrew Liebenow
4d71c10279 Replace truncate with clear 2024-09-20 17:09:47 -05:00
Andrew Liebenow
eaf74cd1f6 Fix spelling warning 2024-09-20 16:23:13 -05:00
Andrew Liebenow
167586f6fb Fix compilation error and spelling warning 2024-09-20 15:40:22 -05:00
Andrew Liebenow
846cf06272 basenc: perform faster, streaming encoding
Improve the performance, both in memory and time, of the encoding
performed by the basenc (except in --z85 mode), base32, and base64
programs.

These programs now perform encoding in a buffered/streaming manner,
so encoding is not constrained by the amount of available memory.
2024-09-20 14:34:18 -05:00
Sylvestre Ledru
50f99580b4
Merge pull request #6761 from cakebaker/users_use_option_instead_of_vec
users: use `Option` instead of `Vec` for file arg
2024-10-03 08:50:29 +02:00
Sylvestre Ledru
5ae8316ace
Merge pull request #6764 from cakebaker/cat_remove_duplicate_code
cat: use `write_end_of_line()`  to avoid duplicate code
2024-10-03 08:50:19 +02:00
Sylvestre Ledru
2d90bda67c
Merge pull request #6765 from cakebaker/ci_use_ubuntu_v24
ci: use ubuntu v24 for GNU tests workflow
2024-10-03 08:50:03 +02:00
Daniel Hofstetter
91e7355064 ci: install libselinux1-dev 2024-10-02 16:47:33 +02:00
Daniel Hofstetter
96cb1646e9 ci: use ubuntu v24 for GNU tests 2024-10-02 16:35:26 +02:00
Daniel Hofstetter
db36051383 cat: use write_end_of_line to avoid duplicate code 2024-10-02 15:21:35 +02:00
Peng Zijun
382e787d1c
cat: handle CRLF delimiters correctly (#6763)
* fix issue #6248

* add test to cat for the case of issue #6248
2024-10-02 15:15:06 +02:00
Daniel Hofstetter
462b1deb51 users: use Option instead of Vec for file arg 2024-10-01 16:41:29 +02:00
Sylvestre Ledru
e0e3ea6996
Merge pull request #6757 from uutils/renovate/lscolors-0.x
chore(deps): update rust crate lscolors to 0.20.0
2024-10-01 14:05:32 +02:00
Sylvestre Ledru
095819b22e
Merge pull request #6758 from BenWiederhake/dev-rm-unused-file-printf
printf: delete unused file
2024-10-01 13:29:25 +02:00
Ben Wiederhake
5824ce5890 printf: delete unused file
Found by #6721.
2024-10-01 12:58:59 +02:00
renovate[bot]
e500d6d711
chore(deps): update rust crate lscolors to 0.20.0 2024-10-01 10:14:43 +00:00
Sylvestre Ledru
f1cad085ef
Merge pull request #6756 from BenWiederhake/dev-tr-unignore
tr: enable ignored tests that have already been fixed
2024-10-01 08:01:10 +02:00
Ben Wiederhake
576374d0c6 tr: enable ignored tests that have already been fixed
Specifically:
- check_against_gnu_tr_tests_e: Yes, the test is about octal interpretation.
- check_against_gnu_tr_tests_ross_0a: Yes, the [Y*] generates multiple Y's, which causes conflicting replacements, which is why the operation is rejected.
- check_against_gnu_tr_tests_ross_0b: Same, plus a newline character was accidentally forgotten.
- check_against_gnu_tr_tests_fowler_1: Apparently the problem was fixed at some point.
2024-10-01 00:57:53 +02:00
Sylvestre Ledru
1f0b519ee1
Merge pull request #6754 from BenWiederhake/dev-stable-precommit
Change the git pre-commit actions to *actually* use stable
2024-09-30 23:35:00 +02:00
Ben Wiederhake
caa4d1c57b Change the git pre-commit actions to *actually* use stable
This is in response to #6715: e8bb8dffa1
The pre-commit actions have a higher MSRV than the overall project (1.70.0),
so if 1.70.0 is the configured default, this lead to problems (#6730).
This commit fixes the situation by specifying 'stable', whatever that means on the user's system.
2024-09-30 22:51:30 +02:00
Daniel Hofstetter
57557c6d7c
Merge pull request #6753 from uutils/renovate/redox_syscall-0.x-lockfile
chore(deps): update rust crate redox_syscall to v0.5.7
2024-09-30 10:37:51 +02:00
renovate[bot]
71fc8c5c61
chore(deps): update rust crate redox_syscall to v0.5.7 2024-09-30 07:35:16 +00:00
Sylvestre Ledru
892e9a4bc0
Merge pull request #6748 from dcampbell24/fix-clippy-reduced-commits-try-try-again
Clippy Pedantic Acceptable Commits Try Again
2024-09-30 09:34:10 +02:00
Sylvestre Ledru
941db26559
Merge pull request #6751 from jtracey/lints
move lints from rustflags to Cargo.toml
2024-09-29 20:59:13 +02:00
Sylvestre Ledru
352967e572
Merge pull request #6752 from jtracey/android-metrics
Android CI: enable emulator metrics
2024-09-29 20:54:41 +02:00
Justin Tracey
0035d0c810
Android CI: enable emulator metrics
The emulator executable has a warning that enabling or disabling metrics
collection (for the emulator developers) will at some point become blocking.
Since there's nothing sensitive about CI runs, this commit enables them now.
2024-09-29 14:35:10 -04:00
Justin Tracey
5994759560
move lints from rustflags to Cargo.toml
This prevents unnecessary rebuilds when mixing runs of `cargo clippy` and other
cargo commands (e.g., `cargo c && cargo clippy && cargo c` no longer rebuilds).
2024-09-29 14:14:15 -04:00
Daniel Hofstetter
aaa541a8ad
Merge pull request #6750 from uutils/renovate/regex-1.x-lockfile
chore(deps): update rust crate regex to v1.11.0
2024-09-29 17:57:05 +02:00
renovate[bot]
d1ebd0a1c9
chore(deps): update rust crate regex to v1.11.0 2024-09-29 15:30:02 +00:00
Daniel Hofstetter
d938fda022
Merge pull request #6749 from uutils/renovate/rstest-0.x
chore(deps): update rust crate rstest to 0.23.0
2024-09-29 15:55:27 +02:00
renovate[bot]
f44f244236
chore(deps): update rust crate rstest to 0.23.0 2024-09-29 13:24:35 +00:00
Daniel Hofstetter
21e1b628e2
Merge pull request #6745 from uutils/renovate/tempfile-3.x-lockfile
fix(deps): update rust crate tempfile to v3.13.0
2024-09-29 11:00:34 +02:00
Daniel Hofstetter
b790e4c71b
Merge pull request #6747 from uutils/renovate/platform-info-2.x-lockfile
chore(deps): update rust crate platform-info to v2.0.4
2024-09-29 10:48:13 +02:00
David Campbell
d338206a62
Rename bytes to hex, allocate String with capacity. 2024-09-28 19:03:53 -04:00
David Campbell
ae01996066
Fix clippy::format_collect. 2024-09-28 19:03:30 -04:00
renovate[bot]
39a6fadf01
chore(deps): update rust crate platform-info to v2.0.4 2024-09-28 21:56:15 +00:00
renovate[bot]
d3ba132690
fix(deps): update rust crate tempfile to v3.13.0 2024-09-28 15:51:02 +00:00
Daniel Hofstetter
d47ce253a3
Merge pull request #6743 from uutils/renovate/mozilla-actions-sccache-action-0.x
chore(deps): update mozilla-actions/sccache-action action to v0.0.6
2024-09-27 13:45:23 +02:00
renovate[bot]
6fd3c78513
chore(deps): update mozilla-actions/sccache-action action to v0.0.6 2024-09-27 10:35:36 +00:00
Daniel Hofstetter
a0d258d3f2
Merge pull request #6739 from uutils/renovate/redox_syscall-0.x-lockfile
chore(deps): update rust crate redox_syscall to v0.5.6
2024-09-26 07:09:30 +02:00
renovate[bot]
c42a1ee557
chore(deps): update rust crate redox_syscall to v0.5.6 2024-09-25 16:46:34 +00:00
Sylvestre Ledru
f24f8fddf4
Merge pull request #6737 from cakebaker/tr_enable_test_on_unix
tr: enable ignored test on unix
2024-09-25 16:13:32 +02:00
Daniel Hofstetter
c6f29407b1 tr: enable ignored test on unix 2024-09-25 15:31:03 +02:00
Daniel Hofstetter
457f0ad8ef
Merge pull request #6731 from BenWiederhake/dev-tr-trailing-backslash
tr: properly determine trailing backslash
2024-09-25 15:24:33 +02:00
Daniel Hofstetter
a408847583
Merge pull request #6735 from uutils/renovate/terminal_size-0.x
chore(deps): update rust crate terminal_size to 0.4.0
2024-09-25 07:20:59 +02:00
Daniel Hofstetter
ce4c37f46e
Merge pull request #6734 from uutils/renovate/redox_syscall-0.x-lockfile
chore(deps): update rust crate redox_syscall to v0.5.5
2024-09-25 07:18:13 +02:00
renovate[bot]
d623b7931f
chore(deps): update rust crate terminal_size to 0.4.0 2024-09-25 04:48:26 +00:00
David Campbell
3c26dd869e
Fix clippy::flat_map_option. 2024-09-24 20:33:08 -04:00
David Campbell
392344c93a
Fix clippy::cloned_instead_of_copied. 2024-09-24 20:33:08 -04:00