this post was submitted on 04 Aug 2024
19 points (100.0% liked)

Rust

5751 readers
21 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

[email protected]

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
 

Hi rustaceans! What are you working on this week? Did you discover something new, you want to share?

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 9 points 1 month ago

I've not built anything beyond simple scripts in rust but I'm looking at some of the cosmic codebase to see what I can do.

[–] [email protected] 6 points 1 month ago

Playing around with iced.

[–] [email protected] 4 points 1 month ago

I once again encountered something where const generics for something other than the current supported types would be awesome but alas... Guess I'll live with the inconvenience for now.

[–] [email protected] 4 points 1 month ago (1 children)

testcontainers is a cool crate. It basically allows you to launch a container to test against in your unit tests.

My use-case was when integrating Postgres+Diesel for persisting our data.
I really wanted to make sure that we can save our data into there and load it back out in identical form.
And yeah, rather than writing some elaborate scripts to do a full-blown integration test, it's three lines of code with this crate to launch a Postgres container and have it cleaned up after the test.

Diesel is also quite cool here when you've got your migrations embedded, as it will automatically set up your database schema in the blank Postgres.

[–] [email protected] 2 points 1 month ago

I use that too. Unfortunately it does only work with Docker and on some machines I've only containerd+nerdctl available. Would be cool if test containers supports more than Docker as a runtime.

[–] [email protected] 4 points 1 month ago* (last edited 1 month ago)

I discovered dust. That's a new favourite tool. https://github.com/bootandy/dust/

I should be trying to talk to mqtt but haven't got to the rust side of that yet.

[–] [email protected] 3 points 1 month ago

I reworked the whole CI/CD pipeline for https://kellnr.io. Switched from Ubuntu as the base image to the official Rust (Debian) image. Additionally, musl targets are build and released on github. This should allow kellnr to run out-of-the-box on any Linux distro.

[–] [email protected] 3 points 1 month ago

After controlling a PTZ camera with an Xbox controller, we realized that wasn't ideal, so now we're switching to controlling said camera with a Logitech flight stick (to arrive from Amazon this week)

[–] [email protected] 2 points 1 month ago

Started contributing to https://github.com/mario-eth/soldeer , mainly refactoring but also helping with new features.

[–] [email protected] 2 points 1 month ago

Started using niri a few weeks ago, so reading Wayland docs to contribute.