-
Notifications
You must be signed in to change notification settings - Fork 63
Rust enum support #94
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
Comments
I had one question when reading this: How does a complex rust enum map into
After researching |
This enables `serde_json` dependency, which is needed for deserializing response messages. This will mean that client-side API will not be available for `no_std` environments. This isn't as big an issue as it would seem since typically on micrcontrolers, one would implement services, not clients. Morever, this limitation will hopefully be lifted once [`serde-json-core` supports complex enums][ce]. On the bright side, we can now make `serde-json-core` and `heapless` optional dependencies, which will help `std` users avoid these dependencies that they are unlikely to otherwise depend on. This also adds a `embedded` feature, which will enable `heapless` and `serde-json-core` dependencies. Users must enable either `std` or `embedded` feature to use this crate. [ce]: rust-embedded-community/serde-json-core#94
Perhaps that's true for JSON de/ser but serde itself only supports externally-tagged enums representation without While This means that folks who can't do So, I wonder if the maintainers would consider adding an optional |
Thinking more about this, there is nothing stopping folks from enabling |
Hi, i could not find the reason on gh issues or in other places,
what is the current limitation that prevents an implementation that is able to Serialize/Deserialize rust non C-like enums?
is that some limitation because it is not possible in no_std or is just a missing feature?
The text was updated successfully, but these errors were encountered: