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

No_std support #134

Open
skibon02 opened this issue Dec 5, 2024 · 2 comments
Open

No_std support #134

skibon02 opened this issue Dec 5, 2024 · 2 comments

Comments

@skibon02
Copy link

skibon02 commented Dec 5, 2024

This library would be nice to see in no std environment, especially considering the global trend for moving rust libraries to no_std (bincode, smallvec, thiserror).

I managed to make this library work on bare metal, but i did it very quickly without considering all possible use cases, please see commit skibon02@6bf09e4.

Some notes about this fork version:

  1. removed support HashSet and HashMap
  2. tests still require std support
  3. removed "std" feature from regex

As for further steps, we should introduce enabled by default feature "std" and feature-gate all std-specific functionality under this feature (which only covers HashSet and HashMap, and maybe some of other library features)

I can open PR and complete all the necessary changes for this library to work on both no_std and std

@skibon02
Copy link
Author

skibon02 commented Dec 5, 2024

smallvec is currently in alpha, but I don't think there'll be much breaking changes until 2.0.0 release

@jprochazk
Copy link
Owner

Please note that I don't have much time to work on this library or review PRs right now. The changes seems reasonable. It would also be nice to have a fully zero-alloc mode (related to #1), but that's out of scope for now.

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

No branches or pull requests

2 participants