Commit Graph

272 Commits

Author SHA1 Message Date
Ben Wiederhake bbb193d387 make 'complete' available to procmacro by conversion to module 2025-04-16 02:12:55 +02:00
Terts Diepraam 48aae19444 Merge pull request #131 from BenWiederhake/dev-remove-complete-featureflag
remove 'complete' feature flag, make it unconditional
2025-04-15 09:26:40 +02:00
Terts Diepraam fb6209a0e8 Merge pull request #133 from BenWiederhake/dev-derive-panic-no-unwrap
derive: make error messages slightly more readable, add manually-driven test
2025-04-14 21:59:14 +02:00
Ben Wiederhake b2e78d3f58 derive: make error messages slightly more readable, add manually-driven test 2025-04-13 20:59:24 +02:00
Ben Wiederhake 6e5f7b7ea3 remove 'complete' feature flag, make it unconditional
This avoids using cfg with the destination-crate's feature "complete"
in proc-macro "derive".

Quoting cargo:

    using a cfg inside a derive macro will use the cfgs from the
    destination crate and not the ones from the defining crate

In these two instances, the cfg was simply used to avoid emitting dead
code if the "complete" feature is not desired. By passing the "complete"
feature down to the derive crate and evaluating if there, we achieve the
same goal, without having to deal with suprisingly-valued and unexpected
cfgs downstream.

Alternatively, we could just evaluate the flag inside the derive crate,
and pass the feature flag to it.
2025-04-12 22:20:32 +02:00
Terts Diepraam 3e7b411292 Merge pull request #114 from BenWiederhake/dev-du
implement proof of concept for du -bkB
2025-04-12 14:20:48 +02:00
Ben Wiederhake 522f1850e2 implement proof of concept for du -bkB 2025-04-12 13:44:16 +02:00
Daniel Hofstetter 2c1caf0aa0 Merge pull request #127 from uutils/sylvestre-patch-1
adjust the README
2025-04-01 18:42:19 +02:00
Sylvestre Ledru fec391f6b9 adjust the README 2025-04-01 17:59:03 +02:00
Sylvestre Ledru 43b5bf4181 Merge pull request #126 from cakebaker/rust_edition_2024
Switch to Rust edition 2024
2025-04-01 17:57:19 +02:00
Daniel Hofstetter 7a126b5f45 Adapt formatting 2025-04-01 11:19:52 +02:00
Daniel Hofstetter 6b2f3d5aa5 Switch to rust edition 2024 2025-04-01 11:19:11 +02:00
Daniel Hofstetter f1eb49937e Remove ref 2025-04-01 11:17:55 +02:00
Daniel Hofstetter 32883b540a Merge pull request #115 from BenWiederhake/dev-bash-completion
Rudimentary bash completion
2025-04-01 10:51:13 +02:00
Daniel Hofstetter bf9fd5e2b0 Merge pull request #113 from BenWiederhake/dev-fallible-apply
Make Options::apply fallible
2025-04-01 10:50:24 +02:00
Ben Wiederhake e752a3f783 handle special-case program name '[' 2025-04-01 10:39:13 +02:00
Ben Wiederhake 1b5405cb0d implement rudimentary bash completion 2025-04-01 10:39:13 +02:00
Ben Wiederhake 6d2b4f423b fix documented list of supported shell completions 2025-04-01 10:39:13 +02:00
Ben Wiederhake e3f0b529fa Mark unused spaces to satisfy clippy
This causes CI failures, so let's fix this.
2025-04-01 10:37:50 +02:00
Ben Wiederhake 03b8dc1dd7 write date output format logic with exhaustive tests
Also, exhausting tests.
2025-04-01 10:37:50 +02:00
Ben Wiederhake 9bc178ae38 shuf: skip test that would exit the test suite too early 2025-04-01 10:37:50 +02:00
Ben Wiederhake 67373eb4df document new feature and add example / test 2025-04-01 10:37:50 +02:00
Ben Wiederhake dca1347b74 make Options::apply fallible 2025-04-01 10:37:50 +02:00
Terts Diepraam e50cf46ab7 Merge pull request #125 from cakebaker/clippy_fix_unnecessary_map_or
clippy: fix warning from unnecessary_map_or lint
2025-04-01 10:32:25 +02:00
Daniel Hofstetter 2cdf904daf clippy: fix warning from unnecessary_map_or lint 2025-01-10 15:00:06 +01:00