Jonas Bushart
Jonas Bushart
This is not something directly supported by serde. As a workaround it might be possible to deserialize a Value type, merge the two values and use that to deserialize the...
Another example using rayon: The following program compiles, but clippy produces a warning on it: ```rust extern crate rayon; use rayon::prelude::*; fn main() { (0..1 + 1).into_par_iter(); } ``` The...
I don't think that can currently work for this crate and would require a new deserialization function. The reason is that `&str` would need to borrow from the input, which...
A couple of serde helper libraries also require the `Serializer`/`Deserializer` types to be exposed: * [`serde_stacker`](https://docs.rs/serde_stacker): Serde adapter that avoids stack overflow by dynamically growing the stack. * [`serde-transcode`](https://docs.rs/serde-transcode): Transcode...
Thanks for the info. The internal generic types could still remain private and only the `Serializer` and `Deserializer` types made public. I imagine something like this: https://github.com/jonasbb/ciborium/commit/4324dc3791fa638ada4c6d059b42e7d98aca34e1 For the Serializer...
@trepetti I'm not sure where the best place to post feedback is, so just place it here to keep the discussion in one place. Your changes already look quite complete....
You can write this to deserialize a `Vec`. ```rust #[serde_with::serde_as] #[derive(serde::Deserialize)] #[serde(transparent)] struct Wrapper( #[serde_as(as = "Vec")] Vec ); let j = r#"[ 1000000000, 2000000000, 0, -1000000000, -1500000000 ]"#; let...
There is support for the `well-known` formats in [`serde_with`](https://docs.rs/serde_with/2.0.0/serde_with/guide/serde_as_transformations/index.html#well-known-time-formats-for-offsetdatetime), such that you can write this code and support other nestings. ```rust #[serde_with::serde_as] #[derive(Debug, serde::Deserialize)] struct Data( #[serde_as(as = "Vec")] Vec...
> Would like to see this feature implemented still I would like to see this implemented too, that is why the issue is still open. But nothing has changed so...
There is an implementation for the first post in #555. You both indicated interest in the feature. If you still need the feature and could leave some feedback at #555,...