Rust

7743 readers
2 users here now

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

Wormhole

!performance@programming.dev

Credits

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

founded 2 years ago
MODERATORS
126
127
128
129
 
 

cross-posted from: https://lemmy.ml/post/36542390

130
 
 

I can't figure out which crate(s) I should be using to create GUI applications. I only want to create simple 2D games like Conway's Game of Life, so I don't need anything fancy. At most I would like to be able to easily create polygons.

I've already looked at Are we game yet?, but it would be a waste of time to learn 20 different crates in order to decide on which one to use. Bevy is far too heavy and doesn't even work if you are low on memory. SDL3 isn't natively supported without some workarounds (but SDL2 is fine). Winit tries to use insecure X11 unless I manually add it as a dependency with the Wayland feature. I plan to eventually learn GTK4+Adwaitta, but that's unnecessary for simple games.

GUI in Rust seams like a mess. There's so many crates ranging from simple to complicated. Information becomes outdated quickly, so LLMs often fail to help. There's few clear comparisons between crates to help you decide, so it becomes a headache. I'm just looking for a modern, safe, easy, minimal GUI crate.

Does anyone have any advice?

131
132
17
submitted 4 months ago* (last edited 4 months ago) by artiman@piefed.social to c/rust@programming.dev
 
 

Why can't I open the thing it nags me about an operator but how is that relevant I'm just trying to open the thing

133
134
 
 

There has been another major update for Graphite.rs

For those who are not yet familiar with Graphite:

Graphite is a free, open-source editor for vector and raster graphics, currently available in alpha version. Get creative with a fully non-destructive editing workflow that combines layer-based compositing with node-based generative design.

135
136
17
submitted 4 months ago* (last edited 4 months ago) by Starfighter@discuss.tchncs.de to c/rust@programming.dev
 
 

cross-posted from: https://lemmy.ml/post/36210816

asciinema (aka asciinema CLI or asciinema recorder) is a command-line tool for recording and live streaming terminal sessions.

This is a complete rewrite of asciinema in Rust, upgrading the recording file format, introducing terminal live streaming, and bringing numerous improvements across the board.

137
 
 

cross post from: https://programming.dev/post/37369902

Hi everyone,

we, the iceoryx community, just released iceoryx2 v0.7, an ultra-low latency inter-process communication framework for Rust, C, C++ and with this release, Python.

If you are into robotics, embedded real-time systems (especially safety-critical), autonomous vehicles or just want to hack around, iceoryx2 is built with you in mind.

Check out our release announcement for more details: https://ekxide.io/blog/iceoryx2-0-7-release

And the link to the project: https://github.com/eclipse-iceoryx/iceoryx2

138
 
 

I'm happy to announce the release of Diesel 2.3. This release contains various extensions to the query DSL provided by Diesel and enables using Diesel in web browsers via the wasm32-unknown-unknown target.

Checkout the full release announcements for more details.

As always you can support my work on Diesel by contributing or sponsoring the project.

I would like to use this possibility to thank NLNet Foundation for funding the newly added window function extension.

I'm happy to answer any question that comes up.

139
140
141
 
 

This crate contains a macro for generating a struct which reads the environmental variables defined in the configured file.

This allows to have a single point of definition for the env configuration, thus avoiding a possible incoherence between the documentation and the implementation.

GitHub link: https://github.com/asperan/declarative-env

Note: I'm the developer of this crate, I'm sharing this hoping that it could help someone

142
 
 

Takes places May 18-23 in Utrecht, NL. Who's thinking of going?

143
144
145
146
147
15
This Week in Rust 615 (this-week-in-rust.org)
submitted 5 months ago by cm0002@lemmy.world to c/rust@programming.dev
148
149
150
 
 

New version of deku_string v 0.4.0. Notable changes:

  • Support for Vec<T> will all benefits of the library.
  • Full support for no_std (thanks for contribution).
  • Support for defmt library used in embedded environments.
  • New more readable documentation (including tests).

deku_string is a utility crate for deku, binary bit-aware parser with ability create serde-like models. Crate provides thin wrappers around String and Vec to support various common layouts such as fixed-length, prefix length (Pascal-like and .Net-like) and zero-ended strings.

Stay tuned for for more awesome news!

PS: Looking for contributors to provide 16-bit compile target support.

view more: ‹ prev next ›