Commit Graph
251 Commits
Author SHA1 Message Date
xtqqczze 59cd5ab011 date: remove unsafe 2025-12-18 02:39:43 +00:00
xtqqczze 70fd10d335 clippy: fix ptr_as_ptr lint
https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr
2025-12-18 00:19:14 +00:00
renovate[bot]andGitHub 13ffdccd27 chore(deps): update rust crate console to v0.16.2 2025-12-16 15:19:56 +00:00
Sylvestre Ledru 61e0eae8fc prepare version 0.5.0 2025-12-07 16:55:01 +01:00
Christopher Dryden f90846824f Splitting parser feature into multiple subfeatures to reduce dependency bloat 2025-12-03 04:48:11 +00:00
naoNao89andDorian Péron 8d740257ac feat(uucore): add shared hardware detection module
Add shared CPU hardware capability detection in uucore to prevent
code duplication across utilities. This provides a unified interface
for detecting CPU features (AVX512, AVX2, PCLMUL, SSE2, ASIMD) and
respecting GLIBC_TUNABLES environment variable.

This unblocks PR #9088 (cksum --debug) and PR #9144 (wc --debug) by
providing a common implementation that both utilities can use.

Features:
- CPU feature detection with caching (singleton pattern)
- GLIBC_TUNABLES parsing for hwcaps restrictions
- Cross-platform support (x86/x86_64, aarch64)
- Comprehensive test coverage
- Zero-cost abstractions using std::arch

Implementation details:
- Uses std::arch feature detection (no external deps for detection)
- Adds cfg-if dependency for conditional compilation
- Feature-gated behind "hardware" feature flag
- Android excluded (no CPUID access in sandboxed environment)

Related: #9088, #9144
2025-11-24 12:53:58 +01:00
Sylvestre Ledru 0709890328 replace number_prefix by unit-prefix
See https://rustsec.org/advisories/RUSTSEC-2025-0119
2025-11-18 09:59:46 +01:00
Sylvestre LedruandGitHub 3eedd3a947 prepare version 0.4.0 (#9205) 2025-11-09 22:48:04 +01:00
naoNao89andDorian Péron 8f623574a4 fix(cksum): correct CRC32B implementation to match GNU cksum
- Implement correct CRC32B algorithm with proper polynomial and initialization
- Add comprehensive test fixtures for CRC32B validation
- Support raw output format for CRC32B checksums
- Update dependencies and lock files for compatibility
- Fix code formatting and style issues
2025-11-03 10:51:09 +01:00
Daniel HofstetterandSylvestre Ledru 15cecc933f date: remove chrono from Cargo.toml 2025-10-27 21:41:28 +01:00
Sylvestre Ledru b818481e5f date: fix parse_datetime 0.13 API compatibility issues 2025-10-26 22:09:02 +01:00
mattsuandGitHub a452d86a3a Improve sort buffer sizing heuristics and honor explicit --buffer-size (#8833)
* feat(sort): add adaptive buffer sizing and fast paths

- move heuristics into a new buffer_hint module and default to automatic sizing when the buffer flag is absent

- tune chunk and external sort buffers to avoid runaway allocations

- add fast lexicographic and ASCII case-insensitive comparisons for the default mode

- refresh spell-check and dependency metadata for the new code

* fix(sort): reuse SIGINT handler for temporary directory cleanup

- keep the latest path/lock pair in a shared registry so SIGINT always cleans the active directory

- guard handler installation with an atomic flag and reset state when the wrapper is dropped

* refactor(sort): simplify merge batch size to fixed value

Remove Linux-specific dynamic adjustment based on file descriptors and use a fixed batch size of 64 for consistency across platforms.

* fix Cargo.lock linux environments
2025-10-25 00:12:42 +02:00
mattsuandGitHub 909da50371 Merge pull request #8959 from mattsu2020/sort-memory-functions
feat(sort): auto-tune buffer sizing from available memory
2025-10-23 11:53:19 +02:00
Aaron Ang 2919027841 uudoc: move manpage generation away from the binary 2025-10-22 01:17:08 -07:00
mattsu 9cdcf951df fix Cargo.lock in linux environments 2025-10-20 03:05:06 +00:00
naoNao89 11593bd808 fuzz: enable debug symbols in release builds
Adds debug = true to the [profile.release] section in fuzz/Cargo.toml. This enables generation of backtraces with function names and line numbers when fuzzing discovers crashes, instead of just memory addresses.

Fixes #5343
2025-10-17 07:33:44 +07:00
Sylvestre LedruandGitHub f253efefaa prepare version 0.3.0 (#8890)
* prepare version 0.3.0

* also update uu_stdbuf_libstdbuf

* also update fuzz
2025-10-12 13:31:16 +02:00
renovate[bot]andGitHub c00bba4396 fix(deps): update rust crate tempfile to v3.23.0 2025-09-23 06:29:52 +00:00
Sylvestre LedruandDorian Peron b3d71e3c88 cksum: improve performance (Closes: #8573) 2025-09-15 11:37:30 +02:00
Daniel HofstetterandGitHub bb5d73e1b8 Merge pull request #8590 from uutils/renovate/tempfile-3.x-lockfile
fix(deps): update rust crate tempfile to v3.22.0
2025-09-10 07:15:02 +02:00
renovate[bot]andGitHub 602c408102 fix(deps): update rust crate tempfile to v3.22.0 2025-09-09 18:02:59 +00:00
Sylvestre Ledru fa06ce7eca Prepare release 0.2.2 2025-09-09 18:33:50 +02:00
56bbc14279 base64: improve perfs by using the base64-simd crate (#8578)
* base64: improve perfs by using the base64-simd crate Closes: #8574

* Update src/uu/basenc/BENCHMARKING.md

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update src/uu/basenc/BENCHMARKING.md

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-09-09 09:51:23 +02:00
renovate[bot]andGitHub 4c1c3f8fbf fix(deps): update rust crate console to v0.16.1 2025-09-08 11:14:08 +00:00
Sylvestre LedruandDaniel Hofstetter 59b94e181d prepare release 0.2.0
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-09-06 13:14:20 +02:00