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:

8.8K
active users

#rustlang

100 posts79 participants0 posts today
Klaus Aschenbrenner<p>What are you doing during a rainy weekend? Instructing CoPilot in <a href="https://mas.to/tags/VScode" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>VScode</span></a> to implement a fully working Blockchain implementation in Rust - with a TUI and WASM-based frontend. I haven't written any line of code, just prompted CoPilot in the right direction. In sum I have spent less than 4 hours on this. I learned a lot about CoPilot, Generative AI, cryptography, and the blockchain technology itself. <a href="https://mas.to/tags/GenAI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GenAI</span></a> <a href="https://mas.to/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mas.to/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://mas.to/tags/ratatui" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ratatui</span></a> <a href="https://mas.to/tags/wasm" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>wasm</span></a> <a href="https://mas.to/tags/blockchain" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>blockchain</span></a> <a href="https://mas.to/tags/crypto" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crypto</span></a> <a href="https://mas.to/tags/crytography" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>crytography</span></a></p>
Marc<p>Ok I'm tired... In <a href="https://mamot.fr/tags/ratatui" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ratatui</span></a> How Am I supposed to return a Span&lt;'_&gt; from a function ? Where does this lifetime comes from? <a href="https://mamot.fr/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> </p><p>everything is owned in my function:</p><p>fn display_battery_level(bat: f32) -&gt; Span&lt;'_&gt; {<br> let bat_s = bat.to_string();<br> match bat {<br> _ if bat &gt; 50.0 =&gt; bat_s.green(),<br> _ if bat &gt; 25.0 =&gt; bat_s.yellow(),<br> _ =&gt; bat_s.red(),<br> }<br>}</p>
Rust Bytes<p>Red Hat Has Been Rewriting Bash-Based Greenboot in Rust 🦀</p><p><a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> </p><p><a href="https://www.phoronix.com/news/Greenboot-Bash-Rust" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">phoronix.com/news/Greenboot-Ba</span><span class="invisible">sh-Rust</span></a></p>
Jan :rust: :ferris:<p><span class="h-card" translate="no"><a href="https://genomic.social/@kloetzl" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kloetzl</span></a></span> You can use a concept called "Borrow Splitting" in combination with scoped threads.</p><p>This way, your slices that your threads operate on, can have a lifetime shorter than 'static and you don't need to use <a href="https://floss.social/tags/unsafe" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>unsafe</span></a> shenanigans. :ferris: </p><p>Please see this playground with comments on how to do this:<br><a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2024&amp;gist=6b028d5bab84d739d34d76d66a750578" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">play.rust-lang.org/?version=st</span><span class="invisible">able&amp;mode=debug&amp;edition=2024&amp;gist=6b028d5bab84d739d34d76d66a750578</span></a></p><p>On Borrrow Splitting:<br><a href="https://doc.rust-lang.org/nomicon/borrow-splitting.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">doc.rust-lang.org/nomicon/borr</span><span class="invisible">ow-splitting.html</span></a></p><p>On scoped threads API:<br><a href="https://doc.rust-lang.org/std/thread/fn.scope.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">doc.rust-lang.org/std/thread/f</span><span class="invisible">n.scope.html</span></a></p><p><a href="https://floss.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> <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/BorrowChk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BorrowChk</span></a> <a href="https://floss.social/tags/Concurrency" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Concurrency</span></a> <a href="https://floss.social/tags/Threads" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Threads</span></a></p>
Orhun Parmaksız 👾<p>Another Sunday, another release day.<br />New version of **git-cliff** is out! 🥳💯</p><p>🦀 A customizable Changelog Generator written in Rust!<br />⛰️ Now supports adding release statistics to the changelog!<br />✨ Other highlights: <a href="https://git-cliff.org/blog/2.10.0/" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">git-cliff.org/blog/2.10.0/</span><span class="invisible"></span></a></p><p>⭐ GitHub: <a href="https://github.com/orhun/git-cliff" target="_blank" rel="nofollow noopener" translate="no"><span class="invisible">https://</span><span class="">github.com/orhun/git-cliff</span><span class="invisible"></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/commandline" class="mention hashtag" rel="tag">#<span>commandline</span></a> <a href="https://fosstodon.org/tags/changelog" class="mention hashtag" rel="tag">#<span>changelog</span></a> <a href="https://fosstodon.org/tags/generation" class="mention hashtag" rel="tag">#<span>generation</span></a> <a href="https://fosstodon.org/tags/automation" class="mention hashtag" rel="tag">#<span>automation</span></a> <a href="https://fosstodon.org/tags/cli" class="mention hashtag" rel="tag">#<span>cli</span></a> <a href="https://fosstodon.org/tags/git" class="mention hashtag" rel="tag">#<span>git</span></a></p>
Eduardo Pinho<p>Just released DICOM-rs 0.8.2! DICOM-rs is an ecosystem of DICOM libraries and tools for the next generation of medical imaging systems.</p><p>This new revision brings a wide array of backward-compatible contributions. A major release is already in the works as we pave the way for v0.9.0, but until then, version 0.8.2 already offers some interesting features, including a new API to read DICOM data in small parts, and several improvements to pixel data decoding.</p><p><a href="https://github.com/Enet4/dicom-rs/releases/tag/v0.8.2" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Enet4/dicom-rs/rele</span><span class="invisible">ases/tag/v0.8.2</span></a></p><p><a href="https://hachyderm.io/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> <a href="https://hachyderm.io/tags/dicom" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>dicom</span></a> <a href="https://hachyderm.io/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
Guillaume Gomez<p>In rust, if the macro expansion failed, you get a lot of errors related to the missing macro expansion, which is just noise basically.</p><p>I implemented in <a href="https://github.com/rust-lang/rust/pull/144409" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rust-lang/rust/pull</span><span class="invisible">/144409</span></a> a check to stop compilation if a macro expansion failed, greatly reducing the number of noisy errors.</p><p>Enjoy!</p><p><a href="https://toot.cat/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://toot.cat/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
AerynOS.com<p>The latest issue of <span class="h-card" translate="no"><a href="https://mastodon.social/@thisweekinrust" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>thisweekinrust</span></a></span> is out. We have included 3 issues in the “Call for Participation” section. If you are a Rust developer and want to help fix some issues in our project then please check them out. </p><p>These blog posts is a great way to learn about what is going on in the Rust world so definitely worth a read in general.</p><p><a href="https://this-week-in-rust.org/blog/2025/07/23/this-week-in-rust-609/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">this-week-in-rust.org/blog/202</span><span class="invisible">5/07/23/this-week-in-rust-609/</span></a></p><p><a href="https://hachyderm.io/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://hachyderm.io/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://hachyderm.io/tags/Linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Linux</span></a> <a href="https://hachyderm.io/tags/AerynOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AerynOS</span></a></p>
Pablo Fernandez 🧉<p>I'm not sure I understand this JavaScript to Rust migration that I've heard some people talk about. Is it even happening? <a href="https://mastodon.social/tags/js" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>js</span></a> <a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://mastodon.social/tags/javascript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>javascript</span></a></p>
Kushal Das :python: :tor:<p>In <a href="https://toots.dgplug.org/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> / <a href="https://toots.dgplug.org/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> I have a <a href="https://toots.dgplug.org/tags/HTTP" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>HTTP</span></a> endpoint (<a href="https://toots.dgplug.org/tags/actix" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>actix</span></a>) , where for a given query, it fetches <a href="https://toots.dgplug.org/tags/JWT" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JWT</span></a> from the given parameter (URLS) and validates, puts some logic and returns the result. How to write unittest for this care in rust?</p>
Ainiriand<p>Just launched a new project where I’m learning (and building!) high-frequency trading systems using Rust - from scratch.</p><p>I'm documenting everything in a series of hands-on articles: system design, performance tricks, real trading concepts, and clean, idiomatic Rust.</p><p>If you're into trading, low latency systems, or just love Rust, follow the journey here: <a href="https://rustquant.dev" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">rustquant.dev</span><span class="invisible"></span></a></p><p>No fluff, just serious tech and a bit of fun.</p><p><a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://mastodon.social/tags/trading" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>trading</span></a> <a href="https://mastodon.social/tags/hft" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>hft</span></a> <a href="https://mastodon.social/tags/lowlatency" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>lowlatency</span></a> <a href="https://mastodon.social/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> <a href="https://mastodon.social/tags/rustacean" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustacean</span></a></p>
Roger BW 😷<p>The Weekly Challenge 331: Stringing Up Your Last Buddy <a href="https://discordian.social/tags/Perl" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Perl</span></a> <a href="https://discordian.social/tags/RakuLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RakuLang</span></a> <a href="https://discordian.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://discordian.social/tags/Postscript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Postscript</span></a> <a href="https://discordian.social/tags/CrystalLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CrystalLang</span></a> <a href="https://discordian.social/tags/Typst" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Typst</span></a> <a href="https://discordian.social/tags/PerlWeeklyChallenge" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>PerlWeeklyChallenge</span></a> <a href="https://discordian.social/tags/BlogFiredrakeOrg" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>BlogFiredrakeOrg</span></a> <a href="https://blog.firedrake.org/archive/2025/07/The_Weekly_Challenge_331__Stringing_Up_Your_Last_Buddy.html" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.firedrake.org/archive/202</span><span class="invisible">5/07/The_Weekly_Challenge_331__Stringing_Up_Your_Last_Buddy.html</span></a></p>
Rust Bytes<p>"Hiiii Rust haters!! Everyone else... hi I guess..."</p><p>credit: <a href="https://www.reddit.com/r/rustjerk/comments/1m6px3p/hiiii_rust_haters_everyone_else_hi_i_guess/?utm_source=share&amp;utm_medium=web3x&amp;utm_name=web3xcss&amp;utm_term=1&amp;utm_content=share_button" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">reddit.com/r/rustjerk/comments</span><span class="invisible">/1m6px3p/hiiii_rust_haters_everyone_else_hi_i_guess/?utm_source=share&amp;utm_medium=web3x&amp;utm_name=web3xcss&amp;utm_term=1&amp;utm_content=share_button</span></a><br><a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://mastodon.social/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
This Week in Rust<p>This Week in Rust #609 <a href="https://this-week-in-rust.org/blog/2025/07/23/this-week-in-rust-609/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">this-week-in-rust.org/blog/202</span><span class="invisible">5/07/23/this-week-in-rust-609/</span></a> <a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
Francis Beaudet<p>Finished setting-up github access on my little Tauri app. <br>- oAuth login<br>- Use API to get repo info<br>- Clone repo<br>- Store the auth tokens in the OS credential manager so I don't have to login each time I start he app.</p><p>I'm pretty happy about the progress.</p><p><a href="https://cosocial.ca/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://cosocial.ca/tags/tauri" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tauri</span></a></p>
ǝʌɐp<p>Working on <a href="https://social.treehouse.systems/tags/anvilope" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>anvilope</span></a> some more this weekend. Initial support for writing labels to emails after classification seems to be working, which is kind of the crux of the whole project.</p><p>The operation isn't difficult because it's just copying between IMAP folders, but I had to stop cutting corners in a couple places to get it hooked up:</p><p>a.) Reworked the IDLE handling so it can be properly interrupted when the LLM finishes the classification</p><p>b.) Got rid of a bunch of &amp;mut self functions by being more specific with mutexes, just <a href="https://social.treehouse.systems/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> things</p><p>Anyways, I need to run it overnight to make sure I didn't make things too unstable. I am very satisfied with this simple screenshot though!</p>
Christian Noll<p>Rust running on every GPU - by Christian Legnitto</p><p><a href="https://rust-gpu.github.io/blog/2025/07/25/rust-on-every-gpu/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">rust-gpu.github.io/blog/2025/0</span><span class="invisible">7/25/rust-on-every-gpu/</span></a></p><p><a href="https://mas.to/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a> <a href="https://mas.to/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://mas.to/tags/gpu" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gpu</span></a></p>
musicmatze :rust: :nixos:<p>My hobby project - a notmuch-backened TUI/GUI mailreader (which can only do TUI for now) - can now show mails. Next step is to hide headers by default and then show the individual parts of a multipart message individually ... <a href="https://social.linux.pizza/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> <a href="https://social.linux.pizza/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
phosh<p>Thanks to <span class="h-card"><a href="https://mastodon.social/@arunmani" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>arunmani</span></a></span> the app chooser <a href="https://social.phosh.mobi/tags/portal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>portal</span></a> is now adaptive too (and in <a href="https://social.phosh.mobi/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a>):</p><p><a href="https://social.phosh.mobi/tags/phosh" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>phosh</span></a> <a href="https://social.phosh.mobi/tags/linuxmobile" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>LinuxMobile</span></a></p>
glyn<p>Rust is one of the few programming languages for which I don&#39;t feel the need to discover a safe/correct/comprehensible subset in which to write my code (except, of course, for &quot;unsafe&quot; which is declared as such, rather than needing to be discovered). This is part of the suitability of Rust for use in teams: there&#39;s no need to agree on, and police the use of, such a subset.</p><p><a href="https://fosstodon.org/tags/RustLang" class="mention hashtag" rel="tag">#<span>RustLang</span></a></p>