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

cfg: replace std feature gate alloc imports with extern crate alloc #10861

Merged
merged 6 commits into from
Sep 13, 2024

Conversation

tcoratger
Copy link
Contributor

Related #10853

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

smol nit and 1q

crates/primitives-traits/src/error.rs Outdated Show resolved Hide resolved
crates/revm/src/batch.rs Outdated Show resolved Hide resolved
Copy link
Member

@emhane emhane left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -1,9 +1,7 @@
use alloc::vec::Vec;
use std::{cell::RefCell, thread_local};
Copy link
Member

Choose a reason for hiding this comment

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

what about this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah I found this one, seems strange that is passes the no-std compilation before no?

Copy link
Member

Choose a reason for hiding this comment

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

yepp for sure weird

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For Refcell I think we should use use core::cell::RefCell; but for thread_local, I don't think this is available so maybe we should keep as is no?

Copy link
Member

Choose a reason for hiding this comment

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

yepp, would be great if you can open an issue for replacing thread_local with smthg that works

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

thanks

@mattsse mattsse added this pull request to the merge queue Sep 13, 2024
Merged via the queue into paradigmxyz:main with commit 47d188c Sep 13, 2024
34 checks passed
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.

3 participants