veganism.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Veganism Social is a welcoming space on the internet for vegans to connect and engage with the broader decentralized social media community.

Administered by:

Server stats:

295
active users

#rustlang

78 posts59 participants0 posts today
Rust tips<p>The next release of <a href="https://mas.to/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> will start warning about "mismatched lifetime syntaxes".</p><p>You can already automatically fix many of these cases by applying an auto-fix for the `elided_lifetimes_in_paths` warning:</p><p> RUSTFLAGS="-Welided_lifetimes_in_paths" cargo fix --all --all-targets</p>
rustunit<p>Did you miss our last virtual <a href="https://mastodon.social/tags/Bevy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Bevy</span></a> meetup? Here are the recordings of the individual talks and the interesting panel discussion: <a href="https://www.youtube.com/playlist?list=PLbvvWoCXmXkIQgt14jQ0XcnFcP5JDGdU_" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/playlist?list=PLbv</span><span class="invisible">vWoCXmXkIQgt14jQ0XcnFcP5JDGdU_</span></a> have a watch <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/gamedev" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>gamedev</span></a> 🦀🎮</p>
Guillaume Gomez<p>Two (very) nice improvements got merged today in docs.rs:</p><ol><li>Content is now streamed directly from storage, allowing a much smoother experience for users: <a href="https://github.com/rust-lang/docs.rs/pull/2872" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rust-lang/docs.rs/p</span><span class="invisible">ull/2872</span></a></li><li>You can search for Rust project crates like <code>std</code> on docs.rs search directly: <a href="https://github.com/rust-lang/docs.rs/pull/2868" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/rust-lang/docs.rs/p</span><span class="invisible">ull/2868</span></a></li></ol><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>
Orhun Parmaksız 👾<p>Finally, I can chat with my rat friends over Bluetooth 🙏🔥</p><p>💬 **bitchat-tui** — Secure, anonymous, P2P Bluetooth chat in your terminal.</p><p>📡 Communicate off-grid with E2E encryption, public channels, and direct messaging.</p><p>🦀 Written in Rust &amp; built with <span class="h-card" translate="no"><a href="https://fosstodon.org/@ratatui_rs" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>ratatui_rs</span></a></span></p><p>⭐ GitHub: <a href="https://github.com/vaibhav-mattoo/bitchat-tui" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/vaibhav-mattoo/bitc</span><span class="invisible">hat-tui</span></a></p><p><a href="https://fosstodon.org/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</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/tui" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>tui</span></a> <a href="https://fosstodon.org/tags/bluetooth" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>bluetooth</span></a> <a href="https://fosstodon.org/tags/ble" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>ble</span></a> <a href="https://fosstodon.org/tags/chat" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>chat</span></a> <a href="https://fosstodon.org/tags/p2p" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>p2p</span></a> <a href="https://fosstodon.org/tags/encryption" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>encryption</span></a> <a href="https://fosstodon.org/tags/terminal" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>terminal</span></a></p>
RustConf<p>New to <a href="https://hachyderm.io/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a>? Don’t miss these sessions at <a href="https://hachyderm.io/tags/rustconf25" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustconf25</span></a> from Sept 2-5!</p><p>🛠 Async Fundamentals Workshop: Build fast APIs with async Rust</p><p>💡 Ellie Huxtable: Use Rust at every layer</p><p>🎤 Sam Lijin: Ship Rust to Python, TS, Ruby</p><p>Sign up: <a href="https://ti.to/rustconf/2025?source=mastodon" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">ti.to/rustconf/2025?source=mas</span><span class="invisible">todon</span></a></p>
AerynOS.com<p>Joey Riches has been working on packagekit integration for moss so that we can have a nicer GUI experience for package installation of our stone based packages.</p><p>A short summary of his progress:</p><p>- Generated rust bindings for packagekit<br>- Wrote the moss backend for packagekit and implemented all functionality that moss supports<br>- Gnome software can list, install &amp; update packages - working on getting a appstream catalog hosted for full functionality</p><p>TODO:</p><p>- Figure out C/rust interop story to minimise usage of unsafe<br>- Get support for misc. items implemented in moss such as repo origin of packages<br>- Get progress bar callback support in<br>- Implement support for remaining more niche packagekit filters e.g. newest, devel, basename, etc<br>- Figure out build system: integrate rust bindings &amp; our backend upstream or develop it downstream for now?</p><p>It sometimes needs saying that we are fleshing out our distro from scratch, which I means we are having to build new integrations like this from scratch. This is a good thing as we have been finding opportunities for optimisation across our code base, but it does require time.</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/AerynOS" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>AerynOS</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/packagekit" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>packagekit</span></a> <a href="https://hachyderm.io/tags/GUI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>GUI</span></a></p>
veeso<p>Can you actually move a Copy in <a href="https://hachyderm.io/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> </p><p><a href="https://blog.veeso.dev/blog/en/can-you-move-a-copy-in-rust/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.veeso.dev/blog/en/can-you</span><span class="invisible">-move-a-copy-in-rust/</span></a></p><p><a href="https://hachyderm.io/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
rustrover<p>100 Exercises to Learn Rust: RustRover Edition<br><a href="https://techhub.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://techhub.social/tags/Jetbrainsacademy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Jetbrainsacademy</span></a> <a href="https://techhub.social/tags/Learnprogramming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Learnprogramming</span></a> <a href="https://techhub.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a> <a href="https://techhub.social/tags/Rustrover" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rustrover</span></a></p><p><a href="https://blog.jetbrains.com/education/2025/07/28/rust-exercises-rustrover/" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">blog.jetbrains.com/education/2</span><span class="invisible">025/07/28/rust-exercises-rustrover/</span></a></p>
Pragmatic Bookshelf 📚<p>Beta Update - Advanced Hands-on Rust<br>by Herbert Wolverson<br><span class="h-card" translate="no"><a href="https://fosstodon.org/@herberticus" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>herberticus</span></a></span></p><p>pragprog.com/titles/hwmrust?utm_source=m</p><p>B5.0 Release Notes:<br>* The book is final draft complete and headed to production</p><p>(Already purchased? Check your email for a download link.)<br><a href="https://techhub.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://techhub.social/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a></p>
Xarizzar Phantasma (玄)<p>One thing that weirded me out in <a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> is that in order to use modules, at least ones that are in a single file and not a directory, you have to include them all in main.rs. I wonder how that works, why that is and how that came to be? 🤔</p>

What are you doing during a rainy weekend? Instructing CoPilot in #VScode 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. #GenAI #rust #rustlang #ratatui #wasm #blockchain #crypto #crytography

Ok I'm tired... In #ratatui How Am I supposed to return a Span<'_> from a function ? Where does this lifetime comes from? #rustlang

everything is owned in my function:

fn display_battery_level(bat: f32) -> Span<'_> {
let bat_s = bat.to_string();
match bat {
_ if bat > 50.0 => bat_s.green(),
_ if bat > 25.0 => bat_s.yellow(),
_ => bat_s.red(),
}
}

Replied in thread

@kloetzl You can use a concept called "Borrow Splitting" in combination with scoped threads.

This way, your slices that your threads operate on, can have a lifetime shorter than 'static and you don't need to use #unsafe shenanigans. :ferris:

Please see this playground with comments on how to do this:
play.rust-lang.org/?version=st

On Borrrow Splitting:
doc.rust-lang.org/nomicon/borr

On scoped threads API:
doc.rust-lang.org/std/thread/f

play.rust-lang.orgRust PlaygroundA browser interface to the Rust compiler to experiment with the language

The latest issue of @thisweekinrust 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.

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.

this-week-in-rust.org/blog/202

this-week-in-rust.orgThis Week in Rust 609 · This Week in Rust