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

become no_std compatible #17

Merged
merged 4 commits into from
May 3, 2024
Merged

become no_std compatible #17

merged 4 commits into from
May 3, 2024

Conversation

joseluis
Copy link
Contributor

Hi there!

I noticed the crate could be made no_std compatible easily enough.
Some tests do depend in std so I added a feature to make it optional.

I also fixed a couple warnings. I hope you like it.
Please feel free to change anything as you prefer.

joseluis and others added 4 commits May 1, 2024 00:37
- import items from `core` when possible.
- new `std` feature and `no_std` category.
- use the `alloc` crate for `Box` and `ToString`.
- enable `no_std` mode when `std` feature is disabled.
- require `std` for some tests.
@dureuill
Copy link
Owner

dureuill commented May 1, 2024

Hello @joseluis 👋

no_std compatibility is a nice addition.

I made the std feature a default feature, so that future "std-only" API additions are present by default.

I will merge this PR soon. Thank you for your contribution ❤️

@dureuill dureuill merged commit b1e6eb9 into dureuill:main May 3, 2024
7 checks passed
@joseluis joseluis deleted the no_std branch May 3, 2024 10:05
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