Commit Graph

278 Commits

Author SHA1 Message Date
Sylvestre Ledru fa1c4fec53 Use README.md as crate documentation via include_str!
Replace the duplicated inline doc comment with #![doc = include_str!("../README.md")]
to keep documentation DRY. This resolves the TODO from 2023-05-28.
2026-03-30 19:14:24 +02:00
renovate[bot] f4969372a0 chore(deps): update rust crate regex to v1.12.3 (#113)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-30 18:57:46 +02:00
Sylvestre Ledru 888ffd59ec ci: add MSRV job to verify minimum supported Rust version (1.65.0) (#114) 2026-03-30 17:33:53 +02:00
oech3 9ee25855c0 ci: simplify 2026-03-30 16:18:25 +02:00
Sylvestre Ledru 86c3c46247 ship Cargo.lck too 2026-03-30 16:15:01 +02:00
Sylvestre Ledru d73e982de0 bump version to 2.1.0 2026-03-30 16:15:01 +02:00
renovate[bot] bf601c6838 chore(deps): update codecov/codecov-action action to v6 2026-03-30 16:11:37 +02:00
renovate[bot] 65e5815552 chore(deps): update davidanson/markdownlint-cli2-action action to v23 2026-03-30 16:09:12 +02:00
Daniel Hofstetter c8b6c68aa6 Change "solaris" to "Solaris" (#103) 2026-03-30 15:41:09 +02:00
Sylvestre Ledru 84191123ec add precommit (copy of num-prime) (#107) 2026-03-30 15:40:45 +02:00
Sylvestre Ledru af7e14e094 Add WASI platform support (#106) 2026-03-30 15:38:27 +02:00
Daniel Hofstetter bca451510e Merge pull request #102 from 500-internal-server-error/cygwin
Add support for Cygwin
2025-12-25 08:30:00 +01:00
500-internal-server-error 24d272242e Add support for Cygwin 2025-12-24 22:13:05 +07:00
Daniel Hofstetter bad3b5462c Merge pull request #101 from uutils/renovate/davidanson-markdownlint-cli2-action-22.x
chore(deps): update davidanson/markdownlint-cli2-action action to v22
2025-12-09 14:04:15 +01:00
renovate[bot] 1fb3768356 chore(deps): update davidanson/markdownlint-cli2-action action to v22 2025-12-09 10:48:57 +00:00
Cả thế giới là Rust 2271b98c1b Add processor() method to UNameAPI trait (#96)
* Add processor() method to UNameAPI trait

Implements processor type mapping to provide GNU coreutils-compatible
processor information, addressing uutils/coreutils#8659.

Changes:
- Add processor() method to UNameAPI trait with comprehensive docs
- Implement map_processor() helper in lib_impl for arch-to-processor mapping
- Add processor field and implementation to all platform modules (Unix, Windows, unknown)
- Include platform-specific tests verifying correct processor mappings
- Update example code to demonstrate processor() usage
- Add workspace declaration to Cargo.toml to prevent parent workspace inheritance

Processor mapping behavior:
- macOS: arm64 → arm
- Linux: aarch64 → aarch64 (passthrough)
- x86_64/amd64 → x86_64
- i386/i486/i586/i686 → i686
- ARMv6/v7/v8 variants → arm
- Unknown architectures pass through unchanged (better than "unknown")

This provides the foundation for uutils/coreutils to migrate from its
local processor mapping implementation, consolidating platform knowledge
in the appropriate abstraction layer.

Ref: uutils/coreutils#8659

* docs: update README to include processor() method

Add processor() to example code and expected output as requested by @sylvestre

* docs: clarify processor() vs machine() difference and add comprehensive tests

Address review feedback:
- Remove incomplete archive.is placeholder
- Add detailed documentation explaining how processor() differs from machine()
- Include comparison table showing platform-specific behavior
- Add comprehensive unit test for map_processor() covering all branches
- Improves test coverage from 66.66% to 100% in lib_impl.rs
2025-11-27 14:41:41 +01:00
Daniel Hofstetter 2af766085a Merge pull request #100 from Skyline-23/main
Add support for iOS in unix.rs
2025-11-27 13:51:26 +01:00
Buseong Kim 843a032701 Add support for iOS in unix.rs 2025-11-27 21:40:26 +09:00
Daniel Hofstetter 2d02c08662 Merge pull request #99 from uutils/renovate/actions-checkout-6.x
chore(deps): update actions/checkout action to v6
2025-11-21 07:01:45 +01:00
renovate[bot] 856465ce29 chore(deps): update actions/checkout action to v6 2025-11-20 18:14:08 +00:00
Daniel Hofstetter 185ea9115f Merge pull request #98 from uutils/renovate/davidanson-markdownlint-cli2-action-21.x
chore(deps): update davidanson/markdownlint-cli2-action action to v21
2025-11-17 07:00:57 +01:00
renovate[bot] db8b4da786 chore(deps): update davidanson/markdownlint-cli2-action action to v21 2025-11-17 02:03:08 +00:00
Sylvestre Ledru 51260a4adf Merge pull request #97 from uutils/renovate/streetsidesoftware-cspell-action-8.x
chore(deps): update streetsidesoftware/cspell-action action to v8
2025-11-08 09:46:05 +01:00
renovate[bot] 0df9bdee16 chore(deps): update streetsidesoftware/cspell-action action to v8 2025-11-08 08:37:29 +00:00
Daniel Hofstetter dddde168eb Merge pull request #95 from uutils/renovate/actions-checkout-5.x
chore(deps): update actions/checkout action to v5
2025-08-11 17:36:58 +02:00