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(crate): no-std support #60

Merged
merged 9 commits into from
Oct 22, 2024
Merged

Conversation

Evalir
Copy link
Member

@Evalir Evalir commented Oct 22, 2024

This adds a std feature (enabled by default), and adds support for a no-std environment. The most notable changes are:

  • OnceLock has been replaced for OnceCell on BlockOutput. We lose thread safety by doing this, but the EVM, and trevm by extension, has been designed to work on a single-thread context, so this is OK for now (and easily encapsulable with message passing if concurrency was indeed needed e.g for a fuzzer).
  • The 3155 tracer test util was std-gated. This is OK, as the 3155 tracer requires std anywhere.
  • Errors are now implemented manually.

Closes #39

This adds a std feature (enabled by default), and adds support for a no-std environment. The most notable changes are:

- `OnceLock` has been replaced for `OnceCell` on `BlockOutput`. We lose thread safety by doing this, but the EVM, and trevm by extension, has been designed to work on a single-thread context, so this is OK for now (and easily encapsulable with message passing if concurrency was indeed needed e.g for a fuzzer).
- The 3155 tracer test util was std-gated. This is OK, as the 3155 tracer requires std anywhere.
Copy link
Member Author

Evalir commented Oct 22, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @Evalir and the rest of your teammates on Graphite Graphite

@Evalir Evalir force-pushed the evalir/feat-crate-no-std-support branch from d161e1f to 4b2024a Compare October 22, 2024 14:53
@Evalir Evalir marked this pull request as ready for review October 22, 2024 16:45
@prestwich prestwich merged commit 67d3f6e into main Oct 22, 2024
6 checks passed
@Evalir Evalir deleted the evalir/feat-crate-no-std-support branch October 22, 2024 21:19
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.

Feature request: no-std
2 participants