use full qualified reth_codecs:: path + syntax when deriving reth_codecs::Compact #11862
Labels
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
currently we expect that Compact trait is in scope:
reth/crates/storage/codecs/derive/src/compact/generator.rs
Lines 34 to 36 in bc43613
hence we have a bunch of these:
reth/crates/primitives/src/receipt.rs
Lines 13 to 14 in bc43613
we can get rid of this by using the fully qualified path and syntax in the code we generate.
we also need a new attribute so that we can use this in the reth_codes crate itself, e.g.:
reth/crates/storage/codecs/src/alloy/transaction/legacy.rs
Lines 6 to 9 in bc43613
this should be similar to serde crate attribute
https://serde.rs/container-attrs.html#crate
so that we can use in the quote!
This task is done if we can remove all feature gated
use reth_codecs::Compact
imports#11863 has some wip and can be taken over
Additional context
No response
The text was updated successfully, but these errors were encountered: