shakedown.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A community for live music fans with roots in the jam scene. Shakedown Social is run by a team of volunteers (led by @clifff and @sethadam1) and funded by donations.

Administered by:

Server stats:

271
active users

#rustlang

15 posts13 participants3 posts today
Kushal Das :python: :tor:<p>I should remember to use more of `if let Some(data)` <br><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></p>
Cybnews<p>RustDesk is a free, open-source remote desktop software written in Rust. Designed as an alternative to proprietary solutions like TeamViewer and AnyDesk, RustDesk allows users to securely access and control remote computers across platforms, including Windows, macOS, Linux, Android, and iOS.</p><p>Key features include:</p><p>Self-Hosting: Users can deploy their own relay and rendezvous servers for complete control over connections and data privacy.<br>End-to-End Encryption: Ensures that all remote sessions are secure and private.<br>Cross-Platform Support: Compatible with multiple operating systems.<br>User-Friendly Interface: Simple setup and intuitive user experience.<br>Whether for IT support, remote work, or personal use, RustDesk offers a transparent and customizable remote desktop experience backed by a vibrant open-source community</p><p><a href="https://github.com/rustdesk/rustdesk" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/rustdesk/rustdesk</span><span class="invisible"></span></a></p><p><a href="https://defcon.social/tags/RustDesk" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustDesk</span></a> <a href="https://defcon.social/tags/RemoteDesktop" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RemoteDesktop</span></a> <a href="https://defcon.social/tags/OpenSource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>OpenSource</span></a> <a href="https://defcon.social/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://defcon.social/tags/SelfHosted" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>SelfHosted</span></a> <a href="https://defcon.social/tags/Privacy" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Privacy</span></a> <a href="https://defcon.social/tags/CrossPlatform" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>CrossPlatform</span></a></p>
ISSOtm<p>Feels to me like C makes the easy cases easy but the edge cases 10x as hard, whereas Rust makes easy cases twice as hard, but edge cases only 3x.<br>Maybe it's my perfectionism speaking, but I prefer the latter, since it's easier to get both right—in other words, to be reliable.<br><a href="https://social.treehouse.systems/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://social.treehouse.systems/tags/programming" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>programming</span></a></p>
"Musty Bits" McGee<p>Macros / Protobuf gen :neocat_googly_shocked: </p><p><a href="https://eigenmagic.net/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a></p>
"Musty Bits" McGee<p>So for a struct that's from an external crate, is there a nice way to turn this more data-driven/less repetitive?</p><p>First thought was implement a trait with just the `type_attribute` function but Rust doesn't do duck-typing so I'd have to reimplement the function which would then clash.</p><p>I suppose I could make a different-named function on the trait and connect the two there but that feels off?</p><p><a href="https://eigenmagic.net/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://eigenmagic.net/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a></p>
"Musty Bits" McGee<p>Is it even possible to do Generics with Clap?</p><p>What about with a couple `Box&lt;dyn IntoRequest&gt;` ?</p><p><a href="https://eigenmagic.net/tags/RustLang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>RustLang</span></a> <a href="https://eigenmagic.net/tags/Rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>Rust</span></a></p>
bµg<p>In <a href="https://fosstodon.org/tags/C" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>C</span></a> the f suffix is necessary to prevent the automatic float to double promotion. For example this does not compile to the same:<br>float f0(float x) { return x*1.2; } // 2 extra cvt instructions generated on x86<br>float f1(float x) { return x*1.2f; }</p><p>In <a href="https://fosstodon.org/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> apparently whether I do x*-1.2 or x*-1.2_f32, I always get a single f32 instruction on x86, which seems good but I'm still a bit uncomfortable not being explicit.</p><p>What guarantees do I have in <a href="https://fosstodon.org/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> here?</p>
Jeremy 🇨🇦<p>"We don't do exhaustive matching at this company because we don't want the compiler to get tired." <a href="https://coales.co/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> 🦀</p>
Sebastian Cohnen<p>Currently doing some Rust exercises from exercism.org. Maybe I just got lucky, but I asked for feedback on my solution twice and got two awesome mentors! They took quite a bit of time to read my solution, understood how I came to the not-so-idiomatic code and guided me in multiple steps to a much cleaner and better approach. Just wonderful, thank you! 💕 <a href="https://ruby.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
Aho<p><span class="h-card" translate="no"><a href="https://mastodon.social/@richardknott" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>richardknott</span></a></span> that must be a lot of <a href="https://mastodon.social/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a> code to fill that container 😜</p><p>just couldn't resist to write this 😺 </p><p><a href="https://mastodon.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
Jan :rust: :ferris:<p><span class="h-card" translate="no"><a href="https://toots.dgplug.org/@kushal" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>kushal</span></a></span> Rustaceans who like `Vec::retain` also like `Vec::extract_if`...</p><p><a href="https://doc.rust-lang.org/std/vec/struct.Vec.html#method.extract_if" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">doc.rust-lang.org/std/vec/stru</span><span class="invisible">ct.Vec.html#method.extract_if</span></a></p><p>...if they want to use the removed elements (via an Iterator).</p><p>:ferris: 😉 </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></p>
codepilot<p><span class="h-card" translate="no"><a href="https://hachyderm.io/@thomasfuchs" class="u-url mention" rel="nofollow noopener" target="_blank">@<span>thomasfuchs</span></a></span> <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/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a></p>
omg! ubuntu<p>Fish might be the Bash alternative you don't know you need thanks to features like colourful syntax highlighting, smart command suggestions, and genuinely helpful tab completion. Anyone here already using it?</p><p><a href="https://www.omgubuntu.co.uk/2025/07/fish-shell-ubuntu-terminal" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://www.</span><span class="ellipsis">omgubuntu.co.uk/2025/07/fish-s</span><span class="invisible">hell-ubuntu-terminal</span></a> </p><p><a href="https://floss.social/tags/linux" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>linux</span></a> <a href="https://floss.social/tags/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> <a href="https://floss.social/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a></p>
Ian Wagner<p>Something I periodically rediscover: <a href="https://ianwwagner.com/til/optimizing-rustc-target-features" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">ianwwagner.com/til/optimizing-</span><span class="invisible">rustc-target-features</span></a></p><p>I always forget the commands around target features so I wrote up a little post the other day.</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>
nixCraft 🐧<p>The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite <a href="https://github.com/launchbadge/sqlx" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/launchbadge/sqlx</span><span class="invisible"></span></a></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/opensource" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>opensource</span></a> <a href="https://mastodon.social/tags/sql" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>sql</span></a></p>
Kushal Das :python: :tor:<p><a href="https://toots.dgplug.org/tags/TIL" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>TIL</span></a> <a href="https://doc.rust-lang.org/std/vec/struct.Vec.html#method.retain" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">doc.rust-lang.org/std/vec/stru</span><span class="invisible">ct.Vec.html#method.retain</span></a> the retain method in <a href="https://toots.dgplug.org/tags/rustlang" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rustlang</span></a> <a href="https://toots.dgplug.org/tags/rust" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>rust</span></a></p>
Orhun Parmaksız 👾<p>A little update on my Guitar + Ratatui project 📢🎉</p><p>🎸 Now shows the realtime fretboard by connecting directly to your guitar.</p><p>⏳ Ignore the breadboard mess / PCB coming soon!</p><p>🦀 All powered by embedded Rust &amp; <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/orhun/tuitar" rel="nofollow noopener" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/orhun/tuitar</span><span class="invisible"></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/embedded" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>embedded</span></a> <a href="https://fosstodon.org/tags/esp32" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>esp32</span></a> <a href="https://fosstodon.org/tags/fretboard" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>fretboard</span></a> <a href="https://fosstodon.org/tags/guitar" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>guitar</span></a> <a href="https://fosstodon.org/tags/visualization" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>visualization</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>
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>
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>