when i open #serde documentation for "deriving for a remote crate" its just a huge middle finger what does it mean
Latest posts tagged with #serde on Bluesky
when i open #serde documentation for "deriving for a remote crate" its just a huge middle finger what does it mean
Just released a new crate, it lets you serialize output of methods using `serde`.
github.com/j-g00da/serd...
#serde #rust #rustlang
RE: https://masto.asonix.dog/@asonix/115487539746688367
quooting to improve hashtag visibility
serde-knower-abouters please help
#rustlang #serde #rust
Can anyone point me to a serde data format that uses multiple distinct string representations?
Or a serde data format that isn't self-describing?
Or a serde data format that has distinct "top level" types that are different from inner types
Unfortunately I'm implementing a data format that […]
You’ll learn how to build your own deserializer.
No macros. No extra traits. Just smart use of Serde to enable reflection-like behavior in Rust.
Learn more ➡️ eurorust.eu/talks/serde-...
#RustLang #Serde #Reflection
🧵2/3
I love how you can add your own input validation to you newtypes using serde’s deserialization trait: You implement deserialize method on your newtype, call serde’s checks first and then add your own. This means your json is completely checked when it enters your handler. #rustlang #serde #axum 🦀🥰
DON'T USE #serde !!! IT'S UNSAFE!!!!
```rs
# [derive(Serialize)]
struct User {
pub username: String,
plain_text_password: String,
}
```
an attacker can serialise the user and read their plain-text password in the JSON text, EVEN IF THE PASSWORD FIELD IS NOT `pub`!!!
If you're in King's Hall at #RustNationUK, I found the crate Adam Harvey told us not to post on the social media about!
https://deps.dev/cargo/serde
#serde #rust #rustnation
Bref, c'est la #Serde.
New blog article, for Rust programmers only
dystroy.org/blog/string-...
Feedback welcome
#rustlang #serde