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

Modifications to be able to run cargo test on Reth primitives crate #2

Open
wants to merge 3 commits into
base: 1.1.1-delendum
Choose a base branch
from

Conversation

lewis1revill
Copy link

This is a first step to be able to test the list of crates that we're interested in. The majority of the changes required were simply in various dependencies, to be able to compile them for Valida, since performing a cargo test build involves a lot more dependencies than a standard build.

Currently cargo test on Reth primitives is not passing, something to do with threading. But it does compile and reach the testing phase.

We build a lot more dependencies for a test build compared to a normal
library build, a lot of which needed to be forked for valida. We also
need to register a getrandom implementation, just like we would as if we
were creating a binary crate build.

Included for convenience is also a cargo config.toml to allow us to
simply run cargo with no extra RUSTFLAGS etc.
runner = "/valida-toolchain/valida-runner.sh"
linker = "/valida-toolchain/bin/ld.lld"
rustflags = [
"-C", "link-arg=/valida-toolchain/ValidaEntryPoint.o",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing io.o. That's not reported because of --noinhibit-exec 👯‍♂️

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it does not affect this PR yet if it's based on older toolchain but on the most recent one it will

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, I've added it because that patch got merged to the toolchain

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 this pull request may close these issues.

2 participants