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
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
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
2cdf904daf
clippy: fix warning from unnecessary_map_or lint
2025-01-10 15:00:06 +01:00
Ben Wiederhake
df7bc4e2d9
fix nightly clippy warnings
...
Note that this still compiles warning-free with rustc 1.70.
2024-05-09 21:15:00 +02:00
renovate[bot]
1d0a41d4b5
fix(deps): update rust crate syn to 2.0.60
2024-04-17 22:16:38 +00:00
renovate[bot]
18b475c901
fix(deps): update rust crate proc-macro2 to 1.0.81
2024-04-17 02:18:06 +00:00
renovate[bot]
84cf44146a
fix(deps): update rust crate syn to 2.0.59
2024-04-15 05:11:15 +00:00
renovate[bot]
ff1ea79461
fix(deps): update rust crate quote to 1.0.36
2024-04-15 05:08:15 +00:00
renovate[bot]
850f78d2c3
fix(deps): update rust crate proc-macro2 to 1.0.80
2024-04-14 22:04:13 +00:00
renovate[bot]
e33a66bc56
fix(deps): update rust crate syn to 2.0.53
2024-03-17 01:41:35 +00:00
renovate[bot]
00a701e5af
fix(deps): update rust crate proc-macro2 to 1.0.79
2024-03-12 06:00:50 +00:00
renovate[bot]
975e8c13e8
fix(deps): update rust crate syn to 2.0.52
2024-02-28 22:04:56 +00:00
renovate[bot]
d62971d39a
fix(deps): update rust crate syn to 2.0.51
2024-02-26 09:41:19 +00:00
renovate[bot]
0824862dae
fix(deps): update rust crate syn to 2.0.50
2024-02-20 00:13:56 +00:00
renovate[bot]
e6814683e8
fix(deps): update rust crate syn to 2.0.49
2024-02-16 01:39:14 +00:00
Terts Diepraam
5c7bf4e3a7
add options_first argument for the arguments attribute
2024-02-05 09:10:05 +01:00
renovate[bot]
ea822bb51c
Update Rust crate proc-macro2 to 1.0.78
2024-01-21 03:03:12 +00:00
renovate[bot]
2fccafda99
Update Rust crate proc-macro2 to 1.0.76
2024-01-06 05:06:05 +00:00
renovate[bot]
c68ae76e0f
Update Rust crate syn to 2.0.48
2024-01-04 19:11:27 +00:00
Daniel Hofstetter
6b3f571671
Merge pull request #92 from uutils/renovate/proc-macro2-1.x
...
Update Rust crate proc-macro2 to 1.0.75
2024-01-04 07:17:44 +01:00