toad.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Mastodon server operated by David Troy, a tech pioneer and investigative journalist addressing threats to democracy. Thoughtful participation and discussion welcome.

Administered by:

Server stats:

270
active users

#Rust

44 posts43 participants5 posts today
RM 🏳️‍🌈Red and Rust<br> <a href="https://pixelfed.social/discover/tags/rust?src=hash" class="u-url hashtag" rel="nofollow noopener" target="_blank">#rust</a> <a href="https://pixelfed.social/discover/tags/japan?src=hash" class="u-url hashtag" rel="nofollow noopener" target="_blank">#japan</a> <a href="https://pixelfed.social/discover/tags/abandoned?src=hash" class="u-url hashtag" rel="nofollow noopener" target="_blank">#abandoned</a> <a href="https://pixelfed.social/discover/tags/architecture?src=hash" class="u-url hashtag" rel="nofollow noopener" target="_blank">#architecture</a> <a href="https://pixelfed.social/discover/tags/tokyo?src=hash" class="u-url hashtag" rel="nofollow noopener" target="_blank">#tokyo</a> <a href="https://pixelfed.social/discover/tags/downtown?src=hash" class="u-url hashtag" rel="nofollow noopener" target="_blank">#downtown</a>
𝕂𝚞𝚋𝚒𝚔ℙ𝚒𝚡𝚎𝚕<p>»Crate Layout Best Practices: lib.rs, mod.rs, and src/bin«</p><p>Slowly, slowly, I'm learning what Rust uses for what in its coding.</p><p>🦀 <a href="https://dev.to/sgchris/crate-layout-best-practices-librs-modrs-and-srcbin-4abd" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">dev.to/sgchris/crate-layout-be</span><span class="invisible">st-practices-librs-modrs-and-srcbin-4abd</span></a></p><p><a href="https://chaos.social/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://chaos.social/tags/code" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>code</span></a> <a href="https://chaos.social/tags/lib" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lib</span></a> <a href="https://chaos.social/tags/mod" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>mod</span></a> <a href="https://chaos.social/tags/src" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>src</span></a> <a href="https://chaos.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://chaos.social/tags/it" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>it</span></a> <a href="https://chaos.social/tags/bestpractices" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bestpractices</span></a> <a href="https://chaos.social/tags/coding" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>coding</span></a> <a href="https://chaos.social/tags/blog" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>blog</span></a> <a href="https://chaos.social/tags/structure" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>structure</span></a></p>
Bozhidar Batsov (a.k.a. Bug)<p>RV (something like Python's UV, but for <a href="https://hachyderm.io/tags/Ruby" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Ruby</span></a>) looks pretty cool <a href="https://andre.arko.net/2025/08/25/rv-a-new-kind-of-ruby-management-tool/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">andre.arko.net/2025/08/25/rv-a</span><span class="invisible">-new-kind-of-ruby-management-tool/</span></a></p><p>I liked using UV with Python and I'm guessing the experience with RV would be similar as well. It's a bit said that all such tools have to be rewritten in <a href="https://hachyderm.io/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> (or similar), but nothing's perfect. On the bright side - perhaps that would encourage me to do something meaningful with Rust… (RuboCop in Rust anyone? :D)</p>
argv minus one<p>The existence of SIGPIPE is…odd.</p><p>If SIGPIPE is ignored, then write() will raise EPIPE when trying to write to a broken pipe. So, at first glance, it seems that SIGPIPE is unnecessary.</p><p>A lot of simple C programs don't check if printf() returns an error, so if stdout is a pipe, then SIGPIPE will timely terminate these programs…but only if the error is EPIPE. If it's a disconnected socket or something, there's no signal.</p><p>🤷‍♂️</p><p>FWIW, <a href="https://mastodon.sdf.org/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> panics on println failure.</p><p><a href="https://mastodon.sdf.org/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://mastodon.sdf.org/tags/Unix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Unix</span></a> <a href="https://mastodon.sdf.org/tags/POSIX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>POSIX</span></a></p>
David Cantrell 🏏<p>Just optimised a <a href="https://fosstodon.org/tags/ShellScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ShellScript</span></a> for speed. This was definitely the right thing to do, rewriting it in <a href="https://fosstodon.org/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> or <a href="https://fosstodon.org/tags/c" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>c</span></a> would be silly.</p>
Jan :rust: :ferris:<p>Second: Pinning helpers!</p><p>When doing async <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a>, there will be a point, where you'll get the ominous "Doesn't implement Unpin" error and "You need to pin your value".</p><p>First, learn about Pinning:<br><a href="https://doc.rust-lang.org/std/pin/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">doc.rust-lang.org/std/pin/</span><span class="invisible"></span></a></p><p>Like, _really_ learn and understand it:<br><a href="https://fasterthanli.me/articles/pin-and-suffering" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">fasterthanli.me/articles/pin-a</span><span class="invisible">nd-suffering</span></a></p><p>And then use smol's pin! macro and the `pin_project` crate:<br><a href="https://docs.rs/pin-project/latest/pin_project/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">docs.rs/pin-project/latest/pin</span><span class="invisible">_project/</span></a></p><p>I might continue this thread with more insights I gain during this little project - stay tuned! 🙂 </p><p>4/4?</p><p><a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://floss.social/tags/AsyncRust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AsyncRust</span></a></p>
Jan :rust: :ferris:<p>Async <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> is actually awesome! :awesome: </p><p>The last few days I've built a prototype(!) of a global "Hotkey" system e.g.:</p><p>Press &amp; Hold `LCtrl + Space`<br>=&gt; an async stream starts and only finishes if:<br>- another key is pressed or<br>- one of the Hotkeys is released</p><p>If it is not clear by now: this is a state-machine, which fits _perfectly_ into Rust's <a href="https://floss.social/tags/async" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>async</span></a> model!</p><p>And the best part: This is actually _the first time_ I've ever touched async <a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a>! Such a pleasant experience!</p><p>1/?</p><p><a href="https://floss.social/tags/AsyncRust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AsyncRust</span></a></p>
Hacker News 50<p>The unexpected productivity boost of Rust</p><p>Link: <a href="https://lubeno.dev/blog/rusts-productivity-curve" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">lubeno.dev/blog/rusts-producti</span><span class="invisible">vity-curve</span></a><br>Discussion: <a href="https://news.ycombinator.com/item?id=45041286" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">news.ycombinator.com/item?id=4</span><span class="invisible">5041286</span></a></p><p><a href="https://social.lansky.name/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a></p>
Jarkko SakkinenThis is the gist how you would go on implementing TPM emulator, or vTPM inside confidential computing (SGX, SNP, TDX) enclave:<br><br><a class="hashtag" href="https://social.kernel.org/tag/linux" rel="nofollow noopener" target="_blank">#linux</a> <a class="hashtag" href="https://social.kernel.org/tag/kernel" rel="nofollow noopener" target="_blank">#kernel</a> <a class="hashtag" href="https://social.kernel.org/tag/rust" rel="nofollow noopener" target="_blank">#rust</a> <a class="hashtag" href="https://social.kernel.org/tag/tpm" rel="nofollow noopener" target="_blank">#tpm</a>
Jobs for Developers<p>Scaleway is hiring Site Reliability Engineer - Network</p><p>🔧 <a href="https://mastodon.world/tags/golang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>golang</span></a> <a href="https://mastodon.world/tags/python" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>python</span></a> <a href="https://mastodon.world/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mastodon.world/tags/cicd" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>cicd</span></a><br>🌎 Paris, France<br>⏰ Full-time<br>🏢 Scaleway</p><p>Job details <a href="https://jobsfordevelopers.com/jobs/site-reliability-engineer-network-at-scaleway-com-may-26-2025-01716f?utm_source=mastodon.world&amp;utm_medium=social&amp;utm_campaign=posting" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">jobsfordevelopers.com/jobs/sit</span><span class="invisible">e-reliability-engineer-network-at-scaleway-com-may-26-2025-01716f?utm_source=mastodon.world&amp;utm_medium=social&amp;utm_campaign=posting</span></a><br><a href="https://mastodon.world/tags/jobalert" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jobalert</span></a> <a href="https://mastodon.world/tags/jobsearch" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>jobsearch</span></a> <a href="https://mastodon.world/tags/hiring" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hiring</span></a></p>
Marc<p>This is probably a slight case of "I'm not cafeinated (enough) yet", but in implementing a tracing layer in <a href="https://mamot.fr/tags/tracing" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tracing</span></a> <a href="https://mamot.fr/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> , how am I supposed to get the values of the fields stored in the span from on_event() ? It's easy to get the field names through ctx.current_span().metadata().fields() but how do I get the values? 😤</p>
jagoda<p>:blobcatgoogly2: Some more silliness. <a href="https://fosstodon.org/tags/RADIOFORESTRION" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RADIOFORESTRION</span></a> <a href="https://fosstodon.org/tags/bevy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bevy</span></a> <a href="https://fosstodon.org/tags/ratatui" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ratatui</span></a> <a href="https://fosstodon.org/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://fosstodon.org/tags/gamedev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gamedev</span></a></p>
jeffluszcz<p>My superpower is finding rusty cast-iron pans on the street. My latest find was these two super large Lodge pans. I did a quick vinegar bath and then a steel wool scrub and four rounds in the oven to season them. A little splotchy still, but they’ll even out with some use. <a href="https://mastodon.social/tags/castiron" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>castiron</span></a> <a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a></p>
Charrvein<p>Rusty tank </p><p>Oil tank in Siglufjörður </p><p>Just somehow fascinating to me, visually that is</p><p>This is how it feels</p><p><a href="https://mastodon.online/tags/photography" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>photography</span></a> <a href="https://mastodon.online/tags/oiltank" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>oiltank</span></a> <a href="https://mastodon.online/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mastodon.online/tags/decay" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>decay</span></a> <a href="https://mastodon.online/tags/beauty" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>beauty</span></a> <a href="https://mastodon.online/tags/InspiralCarpets" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>InspiralCarpets</span></a></p>
Trifecta Tech Foundation<p>** Major milestone ** our sudo-rs is the default sudo for the upcoming Ubuntu 🚀 🦀 </p><p>More on the Ubuntu blog:<br><a href="https://discourse.ubuntu.com/t/sudo-rs-is-now-default-for-questing-quokka/66912" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">discourse.ubuntu.com/t/sudo-rs</span><span class="invisible">-is-now-default-for-questing-quokka/66912</span></a> </p><p><a href="https://fosstodon.org/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://fosstodon.org/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
Marce Coll<p>After some learning with zones and the crossbow virtualized networking system I now have successfully migrated <a href="https://katarineko.com" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">katarineko.com</span><span class="invisible"></span></a> into my <a href="https://functional.cafe/tags/omnios" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>omnios</span></a> system!</p><p>It's currently not hosting the main site yet while I try that everything works correctly, the <a href="https://functional.cafe/tags/illumos" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>illumos</span></a> deployment is in <a href="https://beta.katarineko.com" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">beta.katarineko.com</span><span class="invisible"></span></a>.</p><p>The stack is <a href="https://functional.cafe/tags/elixir" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>elixir</span></a> (with some <a href="https://functional.cafe/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> NIFs, using <a href="https://functional.cafe/tags/phoenix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phoenix</span></a> and <a href="https://functional.cafe/tags/ash" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ash</span></a>), <a href="https://functional.cafe/tags/postgres" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>postgres</span></a> and <a href="https://functional.cafe/tags/rabbitmq" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rabbitmq</span></a> </p><p>It was all quite painless except for a couple of libraries I had to write patches for.</p>
Ben Pfaff<p>I wish there was something that was the opposite of `is_empty()` for many <a href="https://framapiaf.org/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> types, because 99% of the time I write `!is_empty()` and so often would be nice to be able to write something like `foo.is_nonempty().then(|| ...)`, whereas `(!foo.is_empty()).then(|| ...)` looks bad to my eyes.</p><p><a href="https://framapiaf.org/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
Jan :rust: :ferris:<p>Doc aliases are such an underrated feature in <a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> docs! Please use it. 🙏 </p><p>Doc aliases:<br><a href="https://blog.rust-lang.org/2020/11/19/Rust-1.48/#adding-search-aliases" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.rust-lang.org/2020/11/19/</span><span class="invisible">Rust-1.48/#adding-search-aliases</span></a></p><p><a href="https://blog.guillaume-gomez.fr/articles/2020-12-04+doc%28alias%29+is+stable+and+it%27s+gonna+be+super+useful%21" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.guillaume-gomez.fr/articl</span><span class="invisible">es/2020-12-04+doc%28alias%29+is+stable+and+it%27s+gonna+be+super+useful%21</span></a></p><p>Example:<br><a href="https://github.com/smol-rs/async-io/pull/242" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/smol-rs/async-io/pu</span><span class="invisible">ll/242</span></a></p><p>cc <span class="h-card" translate="no"><a href="https://toot.cat/@imperio" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>imperio</span></a></span> </p><p><a href="https://floss.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://floss.social/tags/UX" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>UX</span></a> <a href="https://floss.social/tags/A11y" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>A11y</span></a> <a href="https://floss.social/tags/Documentation" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Documentation</span></a></p>
Brett Sheffield (he/him)<p>I've been meaning to take a look at the <a href="https://chaos.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> language for a while now. Thanks to <span class="h-card" translate="no"><a href="https://toot.liw.fi/@liw" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>liw</span></a></span> I've taken the first steps on that journey.</p><p>I suspect it'll be a while yet before I give up my C compiler, but Rust has a lot more to it than just "memory safety".</p><p>Thanks Lars!</p><p><a href="https://blog.brettsheffield.com/rust-with-lars" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.brettsheffield.com/rust-w</span><span class="invisible">ith-lars</span></a></p>
bsag<p>New post: Fun with niri window manager</p><p>(or: the geeky parts of my recent holiday activity)</p><p><a href="https://www.rousette.org.uk/archives/fun-with-niri-window-manager/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">rousette.org.uk/archives/fun-w</span><span class="invisible">ith-niri-window-manager/</span></a></p><p><a href="https://social.lol/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://social.lol/tags/niri" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>niri</span></a> <a href="https://social.lol/tags/wayland" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wayland</span></a> <a href="https://social.lol/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://social.lol/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a></p>