Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: re-export used deps from reth-codecs #13167

Merged
merged 3 commits into from
Dec 6, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
make it compile
mattsse committed Dec 6, 2024
commit cb8116073986571699d719b0a57e60bebe75afcc
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/storage/codecs/derive/src/compact/generator.rs
Original file line number Diff line number Diff line change
@@ -239,7 +239,7 @@ fn generate_to_compact(fields: &FieldList, ident: &Ident, is_zstd: bool) -> Vec<
}

/// Function to extract the crate path from `reth_codecs(crate = "...")` attribute.
pub(crate)fn parse_reth_codecs_path(attrs: &[Attribute]) -> syn::Result<syn::Path> {
pub(crate) fn parse_reth_codecs_path(attrs: &[Attribute]) -> syn::Result<syn::Path> {
// let default_crate_path: syn::Path = syn::parse_str("reth-codecs").unwrap();
let mut reth_codecs_path: syn::Path = syn::parse_quote!(reth_codecs);
for attr in attrs {
2 changes: 1 addition & 1 deletion crates/storage/codecs/derive/src/compact/mod.rs
Original file line number Diff line number Diff line change
@@ -235,7 +235,7 @@ mod tests {
let mut output = quote! {};
let DeriveInput { ident, data, attrs, .. } = parse2(f_struct).unwrap();
let fields = get_fields(&data);
output.extend(generate_flag_struct(&ident, &attrs,false, &fields, false));
output.extend(generate_flag_struct(&ident, &attrs, false, &fields, false));
output.extend(generate_from_to(&ident, &attrs, false, &fields, false));

// Expected output in a TokenStream format. Commas matter!
2 changes: 1 addition & 1 deletion crates/storage/codecs/src/private.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
pub use modular_bitfield;

pub use bytes::Buf;
pub use bytes::Buf;
1 change: 1 addition & 0 deletions crates/storage/db-api/Cargo.toml
Original file line number Diff line number Diff line change
@@ -28,6 +28,7 @@ alloy-genesis.workspace = true
alloy-consensus.workspace = true

# codecs
modular-bitfield.workspace = true
roaring = "0.10.2"
parity-scale-codec = { version = "3.2.1", features = ["bytes"] }
serde = { workspace = true, default-features = false }
1 change: 1 addition & 0 deletions crates/storage/db-models/Cargo.toml
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ alloy-primitives.workspace = true
alloy-eips.workspace = true

# codecs
modular-bitfield.workspace = true
serde = { workspace = true, default-features = false }

# misc