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

Add std feature #1971

Merged
merged 8 commits into from
Dec 19, 2023
Merged

Add std feature #1971

merged 8 commits into from
Dec 19, 2023

Conversation

chipshort
Copy link
Collaborator

regarding #1484

This adds the std feature as a default and replaces the most obvious usages of std.
It does not provide full no_std support.

Some notes for anyone tackling full no_std support in the future:
The next big problem is thiserror. It should be possible to only enable it when std is enabled and provide alternative Display / Debug implementations otherwise.
The JsonSchema derive macro also would need to be patched to use core / alloc instead of std, but that should be straightforward.
Apart from that, some of our dependencies are likely not no_std, so changes might be needed there.

Copy link
Member

@webmaster128 webmaster128 left a comment

Choose a reason for hiding this comment

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

Cool! Could you add CHANGELOG and MIGRATING adjustments?

packages/std/src/errors/backtrace.rs Show resolved Hide resolved
packages/std/src/query/query_response.rs Show resolved Hide resolved
packages/std/src/testing/mock.rs Outdated Show resolved Hide resolved
MIGRATING.md Outdated Show resolved Hide resolved
MIGRATING.md Show resolved Hide resolved
@chipshort chipshort merged commit 4c673f4 into main Dec 19, 2023
3 checks passed
@chipshort chipshort deleted the 1484-std-feature branch December 19, 2023 14:33
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