Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Add support for no_std #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

daxpedda
Copy link

This adds support to no_std environments by using default-features = false and adding features = ["alloc"] to the serde dependency. To preserve the MSRV, I added an std crate feature and enabled it by default, as unfortunately the Error trait hadn't been moved to core at v1.56 yet. So I'm unsure if there are any guidelines if this counts as a breaking change, but I believe not.

I also adjusted the CI to test without default features and with. Let me know if you want me to add that matrix to cargo doc as well.

@daxpedda
Copy link
Author

Apparently serdes v1.69 support for alloc was broken and fixed in serde-rs/serde#1336. So I had to bump the serde dependency to v1.70.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant