20 Commits

Author SHA1 Message Date
Ben Wiederhake f47e84c714 derive: split 'compile_error' toy into many test cases, demonstrate new issues 2025-04-18 16:31:29 +02:00
Ben Wiederhake bbb193d387 make 'complete' available to procmacro by conversion to module 2025-04-16 02:12:55 +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
Daniel Hofstetter 6b2f3d5aa5 Switch to rust edition 2024 2025-04-01 11:19:11 +02:00
renovate[bot] 20417509c4 fix(deps): update rust crate strsim to 0.11.1 2024-04-02 22:56:36 +00:00
renovate[bot] 066d69c476 Update Rust crate strsim to 0.11.0 2024-01-08 01:40:19 +00:00
renovate[bot] 008ade0c5d Update Rust crate strsim to 0.10.1 2024-01-07 14:08:51 +00:00
Terts Diepraam 5f84e8b958 initial implementation of completion for fish 2023-12-08 10:46:52 +01:00
Terts Diepraam 2e814ac872 fix links after changing repository ownership 2023-12-02 17:10:59 +01:00
Terts Diepraam 657474ea3c 'derive' -> 'uutils-args-derive' 2023-11-30 11:22:26 +01:00
Terts Diepraam baa088baf1 add suggestions for long and dd-style options 2023-11-09 14:18:51 +01:00
Terts Diepraam 0d7c1b747f remove markdown rendering and make help write to stdout
The markdown rendering is too complicated at the moment
and slows the rest of development down too much. We can
add it back in later.

The generated code for the help string now writes
directly to stdout, instead of building up a String,
this leads to nicer code and is probably faster.
2023-06-04 14:09:07 +02:00
Terts Diepraam c4021602f8 remove dev-dependencies for ls test 2023-02-14 01:17:10 +01:00
Terts Diepraam 065eb17b19 remove Options derive in favor of manual implementation 2023-01-19 16:57:11 +01:00
Terts Diepraam 744c729605 add ls tests 2023-01-03 19:06:35 +01:00
Terts Diepraam 4a9e86436a some fixes on the markdown 2022-12-14 23:54:44 +01:00
Terts Diepraam 8fcfbf08de add custom names for fields 2022-11-27 16:33:09 +01:00
Terts Diepraam e935ce4698 very first semi-functional version 2022-11-27 14:22:27 +01:00
Terts Diepraam 1d22baae00 put proc-macro attribute in the right place 2022-11-27 00:22:15 +01:00
Terts Diepraam e33ae975c8 scaffold project 2022-11-27 00:16:52 +01:00