Skip to content

feat: support no_std for reth-storage-errors#8702

Closed
JackG-eth wants to merge 8 commits intoparadigmxyz:mainfrom
JackG-eth:feature_no_std_suppport
Closed

feat: support no_std for reth-storage-errors#8702
JackG-eth wants to merge 8 commits intoparadigmxyz:mainfrom
JackG-eth:feature_no_std_suppport

Conversation

@JackG-eth
Copy link
Contributor

@JackG-eth JackG-eth commented Jun 9, 2024

Description

have a subset of crates with no_std supports (evm specifically)
we need to do some prep for this first by making some crates no_std first

Motivation
closes #8459

@JackG-eth JackG-eth requested review from onbjerg and rakita as code owners June 9, 2024 14:42
@JackG-eth JackG-eth changed the title wip error no-std support feature: no-std support for in reth-storage-errors Jun 9, 2024
@JackG-eth
Copy link
Contributor Author

Couple more things to clean up.

@JackG-eth JackG-eth requested a review from gakonst as a code owner June 9, 2024 15:31
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.

last few nits

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.

we don't have proper no-std tests in ci yet, so this currently passes, but fails with cargo c --no-default-features, mainly std related imports

@JackG-eth
Copy link
Contributor Author

we don't have proper no-std tests in ci yet, so this currently passes, but fails with cargo c --no-default-features, mainly std related imports

added necessary imports where needed, also added a couple more feature std flags where std libs are used.

@JackG-eth JackG-eth force-pushed the feature_no_std_suppport branch from c0e0178 to 5671ee3 Compare June 9, 2024 23:29
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.

@DaniPopes I believe no-std-thiserror has a few limitations.

rolling this back once Error is available in no_std isn't a big deal so I'm fine with this, even if only temporary
wdyt?

@DaniPopes DaniPopes changed the title feature: no-std support for in reth-storage-errors feature: support no_std for reth-storage-errors Jun 10, 2024
@DaniPopes DaniPopes changed the title feature: support no_std for reth-storage-errors feat: support no_std for reth-storage-errors Jun 10, 2024
@mattsse mattsse closed this Jun 12, 2024
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.

Add no-std support for in reth-storage-errors

2 participants

Comments