Skip to content

Comments

fix(op): Optionally disable op feature for reth-optimism-primitives #19018

Closed
emhane wants to merge 5 commits intomainfrom
emhane/op-feat-prims
Closed

fix(op): Optionally disable op feature for reth-optimism-primitives #19018
emhane wants to merge 5 commits intomainfrom
emhane/op-feat-prims

Conversation

@emhane
Copy link
Collaborator

@emhane emhane commented Oct 15, 2025

Makes it possible to disable op feature in crates that don't use implementations of following traits for op-alloy types:

  • Compact
  • PayloadAttributesBuilder
  • TransactionEnv
  • ExecutionPayload
  • PayloadAttributes
  • SerdeBincodeCompat
  • InMemorySize
  • FromConsensusTx
  • TryIntoTxEnv
  • TryIntoSimTx
  • TryFromReceiptResponse
  • SignableTxRequest
  • TryFromTransactionResponse
  • Compress
  • Decompress

Currently most crates that use reth-primitives-traits don't have an op feature leading to failing lint for obscure reasons when adding optimism crates, hence would be good to have option to disable op feature.

@emhane emhane added the C-debt A clean up/refactor of existing code label Oct 15, 2025
@emhane emhane added the A-op-reth Related to Optimism and op-reth label Oct 15, 2025
@emhane emhane requested a review from fgimenez as a code owner October 15, 2025 09:44
@github-project-automation github-project-automation bot moved this to Backlog in Reth Tracker Oct 15, 2025
@emhane
Copy link
Collaborator Author

emhane commented Oct 15, 2025

@meyer9 @dhyaniarun1993 does the proof window work stream use the impl of any of these traits on op-alloy types? e.g. transaction, block, etc.

@emhane
Copy link
Collaborator Author

emhane commented Oct 16, 2025

closing as not needed, but still wondering if it makes sense to move some of those traits out of reth...

@emhane emhane closed this Oct 16, 2025
@github-project-automation github-project-automation bot moved this from Backlog to Done in Reth Tracker Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-op-reth Related to Optimism and op-reth C-debt A clean up/refactor of existing code

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant