WIP: json using reqwest/serde#10
Conversation
4165f27 to
e50907a
Compare
|
Interesting! A few questions and thoughts:
So what I'm thinking is that to justify adding json support in rust we would have to be looking at a compelling performance advantage over what can be achieved by using jiffy + erqwest for example. |
An example is the term
Ah. Vestigial test data (though still valid! 😂). I'll push an update.
Yes definitely. Although thinking about how I use e.g. Requests, I basically don't have any other json encoding/decoding in my apps aside from the requests calls themselves.
Gotcha.
Hmm interesting idea!
Cool. I'll try to flesh this PR out and perhaps come up with some benchmark scenarios 👍 |
IMHO that's not too bad. Taking a look at serde_rustler it looks like
Yea from that perspective it could be a practical feature to offer. I wonder if there's a way we could follow reqwest's approach and offer features behind flags? Not sure if rebar3 supports that though... |
|
Had a go at feature flags in #11 |
This is the start of a little sketch of how json stuff might look if you were to use the Reqwest json support. Feel free to close if the direction seems bad!
There are some things I'm not sure about here: