railing[i-1..=i+2].copy_from_slice(&[cat.tail, cat.hind_legs, cat.front_legs, cat.head]);<br>
#RustCataStructures #rust #RustLang #RustLanguage #cat #CatsOfMastodon
railing[i-1..=i+2].copy_from_slice(&[cat.tail, cat.hind_legs, cat.front_legs, cat.head]);<br>
#RustCataStructures #rust #RustLang #RustLanguage #cat #CatsOfMastodon
let four_cats: Vec<(Cat, Color)> = vec![rand::random::(Cat, Color); 4];<br>let cats = [vec![rand::random::(Cat, Color); 2], four_cats.clone(), four_cats, vec![rand::random::(Cat, Color)]].into_iter().flatten().collect::<Vec<_>>();<br>
Ahhh, this one was tricky 😅
Source: mastodon.nl/@ErikSchouten73/10…
#cat #CatsOfMastodon #rust #RustLanguage #RustLang #RustCataStructures
🥳 A new version of csv-diff has just been released! 🚀
docs.rs/csv-diff/latest/csv_di…
csv-diff is the fastest CSV-diffing library in the world - written in #Rust
It can compare two 1,000,000 rows x 9 columns CSVs in < 600ms!
Note that this is still a beta release and the library itself is still very young.
#RustLang #Release #CSV #CSVDiff #Performance #DataScience #Data #Diff #Difference #OpenSource #Crate
One of the ways I disagree with many of my esteemed fellow Rust people is that I think #async #RustLang is great. Switching #nextest over to #asynchronous Rust has yielded incredible dividends, including but not limited to what I described in sunshowers.io/posts/nextest-an….
The ability to write cross-platform heterogenous selects provides an extraordinary amount of power.
BTW, now that I'm at @oxidecomputer, I've been trying out nextest on #illumos and it works with zero (0) code changes!
How my open source test runner uses async Rust.How (and why) nextest uses tokio
Wirefish, a crossplatform packet sniffer build with Tauri!
github.com/stefanodevenuto/wir…
Discussions: discu.eu/q/github.com/stefanod…
A blazingly fast multiplatform packet sniffer built with Tauri! - GitHub - stefanodevenuto/wirefish: A blazingly fast multiplatform packet sniffer built with Tauri!GitHub
We're looking for a #c / #cpp or #rust #freelance developer! It's mostly about Linux namespaces, PAM modules, and patches in 3rd-party software. Low volume. Take a look, mail us, or spread the word!
blog.uberspace.de/freelance-jo…
Boosts very welcome! #rustlang #jobad #job
This job posting is written in German. However, we all speak English here. Feel free to apply even if you don't know German. Translating this post is left as an exercise to the applicant.luto (Behind the Asteroid)
Our @zbus Windows CI jobs fails 60-80% of the time (almost guaranteed on the first run) with an "Unable to open shared memory" error. Would anyone with some Windows dev xp happen to know or can take a look what happens?
I've noticed that typically it's the doc tests that fail.
Little #RustLang trivia for the crate `anyhow`:
if `FooError` and `BarError` are both error types, then you can do:
let wrapped = anyhow::anyhow!(FooError).context(BarError);
and `wrapped` will `downcast_ref` to both `FooError` and `BarError`.
Useful to inspect the context independently of the error! Just a bit unintuitive in my opinion.
Hi, folks! Please participate in our short survey:
> We’d like to learn from #RustLang developers about their experience and best practices with C and C++ code in their Rust code base. <...>
One of the coolest tools we use at #1Password has been #opensource ’d!
I present to you Typeshare 2.0! A way to share Rust types across the FFI (supports, Swift, Kotlin, TypeScript, and Go). We use it everyday and I love it, makes things so easy and awesome.
github.com/1Password/typeshare
#rust #swift #kotlin #go #golang #rustlang
Typeshare is the ultimate tool for synchronizing your type definitions between Rust and other languages for seamless FFI. - GitHub - 1Password/typeshare: Typeshare is the ultimate tool for synchron...GitHub
While playing with the #Mastodon api, i wrote a little desktop notification daemon in #rustlang.
So much fun!!
The code is available here
github.com/wolf4ood/mastodon-n…
Mastodon desktop notification daemon. Contribute to wolf4ood/mastodon-notifier development by creating an account on GitHub.GitHub
Hey folks,
I'm currently looking for new permanent and remote-only opportunities in Europe.
I'm really willing to get my hands dirty with some Rust. My day job is mostly about TypeScript and NodeJS but I have plenty of projects on my GitHub account you can check github.com/yamafaktory .
Boost really appreciated ❤️ !
#rust #rustlang #typescript #nodejs #job
Senior software engineer who love to learn on a daily basis (he/him) #Rustlang #TypeScript - yamafaktoryGitHub
cargo-nextest 0.9.44 is out! A call for testing:
This version of my next-gen #RustLang #TestRunner supports pausing and resuming test runs on Unix (#NextestCtrlZ).
To make this work reliably, #nextest needs to use a "double-spawn" approach. This is currently off by default but can be turned on with an env var, `NEXTEST_EXPERIMENTAL_DOUBLE_SPAWN=1`.
Call for testing: If you're on Unix, please help test this! Update to 0.9.44, then set this environment variable. Thanks!
Ohhhhh, amazing! It’s looking like the #rustlang restrictions RFC will likely be accepted!
This will remove the need for sealed traits, and will instead allow writing:
pub impl(crate) trait Foo {}
Which indicates the trait is public, but can only be implemented by the crate! It will also include:
pub struct Time {
pub mut(crate) millis: usize,
}
To enable fields to be marked read-only in public APIs!
github.com/rust-lang/rfcs/pull…
(aka sealed traits and read-only fields, sort of) RenderedGitHub
We just reached the 100th version of our core library since we moved from #c to #rustlang 🎉
Thanks to everyone that contributed!
github.com/deltachat/deltachat…
after commit, on master make sure to: git tag -a 1.100.0 git push origin 1.100.0 git tag -a py-1.100.0 git push origin py-1.100.0GitHub
I keep rambling about #rustlang for quite a while now and like to share where this excitement comes from. So I'm giving an intro to "Rust for curious developers":
First, quite an extensive 80-minute session with the folks from Frontend Rhein-Main in English: youtube.com/watch?v=lDYRwDwAmz…
Second, A much terser version with the people from devjobs.at in German-ish: youtube.com/watch?v=HydIJYLx5G…
The TLDR: For me, it made programming fun again
Stefan Baumgartner zeigt in seinem devjobs.at TechTalk die Besonderheiten von Rust und spricht über die Vor- und Nachteile für das Entwickeln mit dieser Prog...YouTube
Hi, I'm treefit, a #foss dev working on #deltachat. I'm responsible for the desktop client together with @jikstra.
My favorite coding language is #rustlang, but I "speak" #typescript, #javascript, #html, #css, too.
I'm also capable in #python and #swift, but not as much.
I'm new to the mastodon/toot style of communication (never used Twitter, either), so I'm still learning of how this all works.
My goal is to give you some behind-the scenes peeks onto the DeltaChat development.
SVG images aren’t just images, they’re documents and it’s not safe to serve random people’s svg images on your website.
Here’s a tool that fixes it, and sanitizes #SVG #images to make them as innocent as a JPEG:
github.com/cloudflare/svg-hush
(In #Rustlang, of course)
Make it safe to serve untrusted SVG files. Contribute to cloudflare/svg-hush development by creating an account on GitHub.GitHub
RT @mnt_io@twitter.com
Latest project released, npmjs.com/package/@matrix-org/…. Node.js bindings to the Rust matrix-sdk-crypto crate. It exposes the required API to write bots and bridges for Matrix and other networks. Please come try it!
#matrix #rustlang #nodejs #napi #bot #bridge #decentralization twitter.com/matrixdotorg/statu…
🐦🔗: twitter.com/mnt_io/status/1548…
Welcome to the [Node.js] binding for the Rust [`matrix-sdk-crypto`] library! This binding is part of the [`matrix-rust-sdk`] project, which is a library implementation of a [Matrix] client-server.. Latest version: 0.1.0-beta.npm
Topics you'd like to see more tutorials on?
lpalmieri.com/posts/error-hand…
Discussions: discu.eu/q/lpalmieri.com/posts…
Error handling in Rust can be confusing - should you use a library? Which one? For what purpose? This chapter provides a structured framework to reason about errors as well as a guide on how to leverage the existing ecosystem (`thiserror`, `anyhow`).www.lpalmieri.com
Comparing Rust supply chain safety tools
blog.logrocket.com/comparing-r…
Discussions: discu.eu/q/blog.logrocket.com/…
These Rust tools will give you a modicum of security for minimal effort and improve the community’s supply chain security.Andre Bogus (LogRocket Blog)