Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Serialize Rust enums as integers #372

Merged
merged 1 commit into from
Dec 18, 2022
Merged

Serialize Rust enums as integers #372

merged 1 commit into from
Dec 18, 2022

Conversation

wtfsck
Copy link
Member

@wtfsck wtfsck commented Dec 18, 2022

This finally removes the last HashMap usage in the code so we can remove hashbrown as a dependency if no_std + serde.

json (de)serialization is now faster (but still slow compared to eg. bincode).

Serializing them as integers instead of strings isn't a problem. The same version of iced must be used to serialize and deserialize anything, and it's documented in the README.

This finally removes the last `HashMap` usage in the code so we can
remove `hashbrown` as a dependency if `no_std + serde`.
@wtfsck wtfsck merged commit d901a8f into master Dec 18, 2022
@wtfsck wtfsck deleted the remove_hashbrown branch December 18, 2022 15:29
fengjixuchui added a commit to fengjixuchui/iced that referenced this pull request Dec 18, 2022
Merge pull request icedland#372 from icedland/remove_hashbrown
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant