You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to run a project that uses both alloy and reth (different versions), I've tried to trim down the dependencies to the minimum possible and found that this combination of dependencies breaks alloy-sol-type-parser compilation.
[dependencies]
alloy-sol-type-parser = "0.8.0"alloy-sol-types = { version = "0.8.0", features = ["json"] }
reth = { git = "https://github.com/paradigmxyz/reth", tag = "v1.0.6" }
Either removing reth or the json feature in alloy-sol-types makes the compilation error go away.
This is the compilation error:
error[E0277]: the trait bound `CustomError: StdError` is not satisfied
--> /Users/alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/alloy-sol-type-parser-0.8.0/src/input.rs:46:13
|
46 | winnow::error::ErrMode::from_external_error(input, winnow::error::ErrorKind::Eof, err)
| ^^^^^^^^^^^^^^^^^^^^^^ the trait `StdError` is not implemented for `CustomError`, which is required by `ErrMode<_>: FromExternalError<_, _>`
|
= help: the trait `FromExternalError<I, EXT>` is implemented for `ErrMode<E>`
= note: required for `ContextError` to implement `FromExternalError<Stateful<&str, RecursionCheck>, CustomError>`
= note: 1 redundant requirement hidden
= note: required for `ErrMode<ContextError>` to implement `FromExternalError<Stateful<&str, RecursionCheck>, CustomError>`
I've also tried a couple different alloy and reth versions but it fails anyway. Anyone has any idea?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hey everyone,
I'm trying to run a project that uses both alloy and reth (different versions), I've tried to trim down the dependencies to the minimum possible and found that this combination of dependencies breaks
alloy-sol-type-parser
compilation.Either removing reth or the json feature in
alloy-sol-types
makes the compilation error go away.This is the compilation error:
I've also tried a couple different alloy and reth versions but it fails anyway. Anyone has any idea?
Beta Was this translation helpful? Give feedback.
All reactions