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

Getting compile error when I use silius as library #268

Closed
zsluedem opened this issue Dec 27, 2023 · 0 comments · Fixed by #271
Closed

Getting compile error when I use silius as library #268

zsluedem opened this issue Dec 27, 2023 · 0 comments · Fixed by #271
Assignees

Comments

@zsluedem
Copy link
Collaborator

[dependencies]
silius-bundler = { git = "https://github.com/zsluedem/silius.git" }
silius-contracts = { git = "https://github.com/zsluedem/silius.git" }
silius-grpc = { git = "https://github.com/zsluedem/silius.git" }
silius-mempool = { git = "https://github.com/zsluedem/silius.git" }
silius-p2p = { git = "https://github.com/zsluedem/silius.git" }
silius-primitives = { git = "https://github.com/zsluedem/silius.git" }
silius-rpc = { git = "https://github.com/zsluedem/silius.git" }

Got error

error[E0432]: unresolved import `revm_primitives::B160`
   --> /home/will/.cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/rlp/src/decode.rs:255:58
    |
255 |     use revm_primitives::{ruint::aliases::U128 as RU128, B160, B256, U256 as RU256};
    |                                                          ^^^^ no `B160` in the root

error[E0432]: unresolved import `revm_primitives::B160`
   --> /home/will/.cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/rlp/src/encode.rs:216:58
    |
216 |     use revm_primitives::{ruint::aliases::U128 as RU128, B160, B256, U256 as RU256};
    |                                                          ^^^^ no `B160` in the root

error[E0432]: unresolved import `revm_primitives::B160`
 --> /home/will/.cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/storage/codecs/src/lib.rs:3:23
  |
3 | use revm_primitives::{B160 as H160, B256 as H256, U256};
  |                       ^^^^^^^^^^^^ no `B160` in the root

For more information about this error, try `rustc --explain E0432`.
error: could not compile `reth-codecs` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: the `Self` constructor can only be used with tuple or unit structs
   --> /home/will/.cargo/git/checkouts/reth-36d3ea1d1152b20c/aa6f2cb/crates/rlp/src/decode.rs:261:48
    |
261 |                     Decodable::decode(buf).map(Self)
    |                                                ^^^^
...
267 |     fixed_hash_impl!(B160);
    |     ---------------------- in this macro invocation
    |
    = note: this error originates in the macro `fixed_hash_impl` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `reth-rlp` (lib) due to 3 previous errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant