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 the ability to work in no-std (optionally with alloc) #132

Merged
merged 4 commits into from
Jun 25, 2024

Conversation

Dr-Emann
Copy link
Member

@Dr-Emann Dr-Emann commented May 22, 2024

By default, the std feature is enabled, but with disable-default-features, it can now be either no-std/no-alloc.

This did involve a breaking change with the serialization traits, to allow no-alloc serialization.

Serialize/Deserialize traits were sealed, and most functions were hidden

Per updated guidance, it is recommended to commit the Cargo.lock, even for libraries, so this removes it from the gitignore, and adds it.

Fixes #131

@Dr-Emann Dr-Emann force-pushed the no-std branch 2 times, most recently from a6782af to 4d79fc2 Compare May 22, 2024 01:10
By default, the `std` feature is enabled, but with
disable-default-features, it can now be either no-std/no-alloc.

This did involve a breaking change with the serialization traits, to allow
no-alloc serialization.

Serialize/Deserialize traits were sealed, and most functions were hidden
Per [updated guidance][1], it is recommended to commit the Cargo.lock, even for
libraries.

[1]: https://blog.rust-lang.org/2023/08/29/committing-lockfiles.html
@Dr-Emann Dr-Emann merged commit f1a9af1 into RoaringBitmap:master Jun 25, 2024
18 checks passed
@Dr-Emann Dr-Emann deleted the no-std branch June 25, 2024 18:56
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 std feature flag
2 participants