fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

9.9K
active users

#serde

0 posts0 participants0 posts today
Tomáš Slíž<p><span class="h-card" translate="no"><a href="https://mastodon.social/@davedelong" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>davedelong</span></a></span>, they mention <span class="h-card" translate="no"><a href="https://social.rust-lang.org/@rust" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>rust</span></a></span> <a href="https://iosdev.space/tags/Serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Serde</span></a> framework, so they are not too far from your idea.</p><p>“The Serde ecosystem consists of data structures that know how to serialize and deserialize themselves along with data formats that know how to serialize and deserialize other things.”</p>
Mainmatter<p>New Rust crate alert: eserde! 🦀</p><p>Tired of getting just one error at a time when deserializing with `serde`? `eserde` (built on top of `serde`) reports multiple errors at once, making API debugging way smoother.</p><p>Read <span class="h-card" translate="no"><a href="https://hachyderm.io/@algo_luca" class="u-url mention">@<span>algo_luca</span></a></span> ’s deep dive on why we built it &amp; how to use it ➡️ <a href="https://mainmatter.com/blog/2025/02/13/eserde/" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">mainmatter.com/blog/2025/02/13</span><span class="invisible">/eserde/</span></a> </p><p><a href="https://fosstodon.org/tags/Rustlang" class="mention hashtag" rel="tag">#<span>Rustlang</span></a> <a href="https://fosstodon.org/tags/serde" class="mention hashtag" rel="tag">#<span>serde</span></a> <a href="https://fosstodon.org/tags/eserde" class="mention hashtag" rel="tag">#<span>eserde</span></a></p>
LavX News<p>Unlocking Data Efficiency: How Rust Interning Achieved 2000x Compression on RATP Transport Data</p><p>In a remarkable weekend project, a developer leveraged Rust's interning design pattern to compress a massive dataset from Paris' public transport network, achieving an astounding 2000x reduction in si...</p><p><a href="https://news.lavx.hu/article/unlocking-data-efficiency-how-rust-interning-achieved-2000x-compression-on-ratp-transport-data" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news.lavx.hu/article/unlocking</span><span class="invisible">-data-efficiency-how-rust-interning-achieved-2000x-compression-on-ratp-transport-data</span></a></p><p><a href="https://mastodon.cloud/tags/news" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>news</span></a> <a href="https://mastodon.cloud/tags/tech" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tech</span></a> <a href="https://mastodon.cloud/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> <a href="https://mastodon.cloud/tags/Serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Serde</span></a> <a href="https://mastodon.cloud/tags/Interning" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Interning</span></a></p>
Jons Mostovojs<p>If you're in King's Hall at <a href="https://social.doma.dev/tags/RustNationUK" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustNationUK</span></a>, I found the crate Adam Harvey told us not to post on the social media about!</p><p><a href="https://deps.dev/cargo/serde" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="">deps.dev/cargo/serde</span><span class="invisible"></span></a></p><p><a href="https://social.doma.dev/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> <a href="https://social.doma.dev/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> <a href="https://social.doma.dev/tags/rustnation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustnation</span></a></p>
LavX News<p>Unlocking the Power of Refinement Types in Rust with the 'refined' Library</p><p>The newly released 'refined' library for Rust offers developers a robust way to implement refinement types, enhancing type safety and reducing bugs. This innovative approach not only improves document...</p><p><a href="https://news.lavx.hu/article/unlocking-the-power-of-refinement-types-in-rust-with-the-refined-library" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news.lavx.hu/article/unlocking</span><span class="invisible">-the-power-of-refinement-types-in-rust-with-the-refined-library</span></a></p><p><a href="https://mastodon.cloud/tags/news" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>news</span></a> <a href="https://mastodon.cloud/tags/tech" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>tech</span></a> <a href="https://mastodon.cloud/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a> <a href="https://mastodon.cloud/tags/TypeSafety" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>TypeSafety</span></a> <a href="https://mastodon.cloud/tags/Serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Serde</span></a></p>
Andrija Petrovic<p>Ok, a (half a) day of satisfaction was enough.<br>Everything works well still, but there is room for optimization. Not the optimization of <a href="https://lor.sh/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> code, but of the RMI structure itself. There needs to be a family of RMI request structs, and I'm thankful to <a href="https://lor.sh/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> for not providing me with <a href="https://lor.sh/tags/oop" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>oop</span></a> stuff, because I really don't need going down that rabbithole.<br>Containment will suffice, I'm just eager to see what <a href="https://lor.sh/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> will have to say about it...</p>
argv minus one<p><span class="h-card"><a href="https://hachyderm.io/@fasterthanlime" class="u-url mention" rel="nofollow noopener noreferrer" target="_blank">@<span>fasterthanlime</span></a></span> </p><p>I see I'm not the only one who pronounces <a href="https://mastodon.sdf.org/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> in a way that rhymes with “merde”.</p>
Self-Directed Research Podcast<p>A sneak peek into tomorrow's episode of Self-Directed Research ... <br>❗😇 ☢️ </p><p><a href="https://hachyderm.io/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a><br> <br><a href="https://hachyderm.io/tags/unsafe" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>unsafe</span></a></p>
Kat Marchán 🐈<p><a href="https://github.com/kdl-org/kdl-rs/pull/83" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/kdl-org/kdl-rs/pull</span><span class="invisible">/83</span></a></p><p>the work has begun to add <a href="https://toot.cat/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> support to <a href="https://toot.cat/tags/kdl" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>kdl</span></a> rs!</p><p>It'll take me a bit, but the parser refactor that'll let me do this is going well.</p><p>anyway this is all very exciting because I think not being able to use serde has tbh been a huge blocker for folks adopting kdl in Rust</p>
balletproof vest<p>EDIT: answer found, please see downthread</p><p>Coding question: is there something for <a href="https://beach.city/tags/python" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>python</span></a> like <a href="https://beach.city/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> where the serialized version of the data can be a format you define, not Just Fucking JSON</p><p>Before you ask: no I can't change the format to JSON, it's hardcoded into this DVD player I have. Yes, you read that right.</p>
drmorr<p>Great article by Alisa Sireneva!</p><p><a href="https://purplesyringa.moe/blog/i-sped-up-serde-json-strings-by-20-percent/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">purplesyringa.moe/blog/i-sped-</span><span class="invisible">up-serde-json-strings-by-20-percent/</span></a></p><p><a href="https://hachyderm.io/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> <a href="https://hachyderm.io/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> <a href="https://hachyderm.io/tags/json" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>json</span></a></p>
Orhun Parmaksız 👾<p>Rust&#39;s serde should really support default literals! 🦀</p><p>➡️ Read more: <a href="https://serde.rs/attr-default.html" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="">serde.rs/attr-default.html</span><span class="invisible"></span></a></p><p>✨ Tracking issue: <a href="https://github.com/serde-rs/serde/issues/368" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://</span><span class="ellipsis">github.com/serde-rs/serde/issu</span><span class="invisible">es/368</span></a></p><p><a href="https://fosstodon.org/tags/rustlang" class="mention hashtag" rel="tag">#<span>rustlang</span></a> <a href="https://fosstodon.org/tags/serde" class="mention hashtag" rel="tag">#<span>serde</span></a> <a href="https://fosstodon.org/tags/serialization" class="mention hashtag" rel="tag">#<span>serialization</span></a></p>
Habr<p>Написать X-docker-isolation-provider сложно — но не невозможно</p><p>Вы когда-нибудь чувствовали себя пионерами? Вот именно так я себя и ощущал, когда писал docker-isolation-provider для платформы ассоциативного программирования Deep . Все было так: в один прекрасный день у нас на платформе связей решили - было бы славно портировать нашего бота в Deep . А для этого нужно было написать так называемые провайдеры . Провайдеры нужны лишь для одной цели - дать возможность пользователю выполнять пользовательские хэндлеры на любом языке. Тогда я просто подумал, что было бы неплохо помочь парням, которые вероятно Rust никогда в жизни не видели . Ох, как же я тогда ошибался…</p><p><a href="https://habr.com/ru/articles/822093/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">habr.com/ru/articles/822093/</span><span class="invisible"></span></a></p><p><a href="https://zhub.link/tags/deepfoundation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>deepfoundation</span></a> <a href="https://zhub.link/tags/%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>программирование</span></a> <a href="https://zhub.link/tags/%D0%B8%D1%81%D1%82%D0%BE%D1%80%D0%B8%D1%8F_%D1%80%D0%B0%D0%B7%D1%80%D0%B0%D0%B1%D0%BE%D1%82%D0%BA%D0%B8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>история_разработки</span></a> <a href="https://zhub.link/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> <a href="https://zhub.link/tags/actixweb" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>actixweb</span></a> <a href="https://zhub.link/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> <a href="https://zhub.link/tags/wasm" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>wasm</span></a></p>
Jarkko Sakkinen<p>TPM2 command encoding with <a class="hashtag" href="https://social.kernel.org/tag/bincode" rel="nofollow noopener noreferrer" target="_blank">#bincode</a> and <a class="hashtag" href="https://social.kernel.org/tag/serde" rel="nofollow noopener noreferrer" target="_blank">#serde</a>:</p><pre><code> let options = DefaultOptions::new() .with_fixint_encoding() .with_big_endian(); buf.extend(&amp;options.serialize(&amp;(Tag::NoSessions as u16)).unwrap()); buf.extend(&amp;options.serialize(&amp;22_u32).unwrap()); buf.extend( &amp;options .serialize(&amp;(CommandCode::GetCapability as u32)) .unwrap(), ); buf.extend(&amp;options.serialize(&amp;(Capability::Handles as u32)).unwrap()); buf.extend(&amp;options.serialize(&amp;HR_PERSISTENT).unwrap()); buf.extend(&amp;options.serialize(&amp;1_u32).unwrap()); </code></pre><p><a class="hashtag" href="https://social.kernel.org/tag/rust" rel="nofollow noopener noreferrer" target="_blank">#rust</a> <a class="hashtag" href="https://social.kernel.org/tag/rustlang" rel="nofollow noopener noreferrer" target="_blank">#rustlang</a></p>
silmeth 🇺🇦<p>Form data (x-www-form-urlencoded) support in <a href="https://mstdn.social/tags/Axum" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Axum</span></a> is a bit disappointing. It uses <a href="https://mstdn.social/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a>’s serde_urlencoded underneath, which in principle is fine. But the problem is that HTML forms don’t let you *not send* a value, which makes the whole thing useless with optional fields. You can set a field in a form to not be required and send an empty value (`?foo&amp;bar=3&amp;…` or `?foo=&amp;bar=3&amp;…` for empty `foo`) but then serde treats it as a present empty string and fails deserialization.</p><p><a href="https://mstdn.social/tags/Rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rust</span></a> <a href="https://mstdn.social/tags/Rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Rustlang</span></a></p>
Larry Garfield<p>I've just tagged a new release of Crell/Serde, version 1.2.</p><p>This release includes support for Unix timestamps, makes TypeFields more flexible and customizable, and fixes an issue with handling null values. Note that the latter fix has a very small BC break that only impacts a select number of custom Importers, so odds are you won't notice.</p><p>Get it while it's hot!</p><p><a href="https://github.com/Crell/Serde" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/Crell/Serde</span><span class="invisible"></span></a></p><p><a href="https://phpc.social/tags/Serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Serde</span></a> <a href="https://phpc.social/tags/Serialization" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Serialization</span></a> <a href="https://phpc.social/tags/PHP" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>PHP</span></a> <a href="https://phpc.social/tags/Programming" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Programming</span></a></p>
Yellow Flag<p>And I’ve thrown out that solution again. Instead of messing with <code>serde::Deserialize</code> which never quite works as it should, I’ve decided to extend the API and support flattened structs properly. I’ve added my solution to <a href="https://github.com/serde-rs/serde/issues/2186#issuecomment-2143387697" rel="nofollow noopener noreferrer" target="_blank">this already much too long thread</a> where lots of people spent lots of time trying to make things somehow work with Serde’s APIs.</p><p><a href="https://infosec.exchange/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> <a href="https://infosec.exchange/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a></p>
[MOVED TO HACHYDERM] Erik Ž<p>Any <a href="https://m.zkc.se/tags/rustlang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustlang</span></a> <a href="https://m.zkc.se/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> experts out there willing to help me out with a "Deserializer adapter" for skipping duplicate JSON keys when deserializing using serde_json? <a href="https://users.rust-lang.org/t/serde-how-to-create-a-deserializer-adapter-to-ignore-duplicate-fields-in-json-data/112252" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">users.rust-lang.org/t/serde-ho</span><span class="invisible">w-to-create-a-deserializer-adapter-to-ignore-duplicate-fields-in-json-data/112252</span></a></p>
Yellow Flag<p>I finally managed to create a <code>serde::Deserialize</code> implementation that would support <code>flatten</code> and <code>deny_unknown_fields</code> at the same time. The issue was mostly how the Serde API makes this task difficult for no good reason from what I can tell.</p><p>I sort of see why it has to be static strings everywhere, but why static slices as well? That’s an implementation detail of the default implementation and IMHO not actually required anywhere. And why is it so hard to get to the list of fields supported by an implementation?</p><p>I guess this use case was never a priority, but configuration files where a typo in a field name won’t be recognized are a major PITA…</p><p><a href="https://infosec.exchange/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> <a href="https://infosec.exchange/tags/RustLang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>RustLang</span></a></p>
Habr<p>Кратко про Serde в Rust</p><p>Serde — это высокопроизводительная библиотека для сериализации и десериализации данных в Rust. Она поддерживает различные форматы данных, включая JSON , YAML , TOML , BSON и многие другие. В этой статье рассмотрим основы Serde в Rust.</p><p><a href="https://habr.com/ru/companies/otus/articles/806247/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">habr.com/ru/companies/otus/art</span><span class="invisible">icles/806247/</span></a></p><p><a href="https://zhub.link/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a> <a href="https://zhub.link/tags/serde" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>serde</span></a> <a href="https://zhub.link/tags/%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC%D0%B8%D1%80%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>программирование</span></a></p>