Rust

6958 readers
19 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 2 years ago
MODERATORS
26
18
Stack advice (self.rust)
submitted 3 weeks ago by Matty_r to c/rust
 
 

Hey all, just looking for some advice. I'd like to do a WASM application, just generally like a calendar + notes app. I'd like it to work on mobile and desktop through the browser. It'll be served through Actix with Diesel for the backend. For the "frontend" I was thinking egui or leptos.

I'd like to avoid any JavaScript, so thought SSR might be the best approach.

Any thoughts/pitfalls? Should I look at something else for the frontend?

Its a lot of working parts for a calendar + notes app, but this will be a testing ground to see if I can get it all going :S

27
28
7
The new BLAKE3 hazmat API (www.iroh.computer)
submitted 3 weeks ago by [email protected] to c/rust
29
26
Announcing rustup 1.28.2 (blog.rust-lang.org)
submitted 3 weeks ago by [email protected] to c/rust
30
40
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/rust
 
 

Hi there Rustians! A few months ago I posted about my hobby project. Just wanted to give an update.

Axium is a template for an API backend.

In the last few months I have added:

  • HTTP-cookie authentication (got it to work with a javascript site),
  • Password resetting,
  • User registration,
  • Example routes for interacting with S3 storage
  • Lots of input validation,
  • Caching,
  • Mailing (for the password reset and user registration).

I think that it is almost ready to be used as a backend for my website. Almost everything is marked off my wishlist, just need a few helper to help me check the security of the authentication and registration functions.

GitHub: https://github.com/Riktastic/Axium

31
24
submitted 1 month ago* (last edited 1 month ago) by thisdavej to c/rust
 
 

This article delves into various techniques for reclaiming disk space from Cargo build artifacts.

32
48
Bevy 0.16 (bevyengine.org)
submitted 1 month ago by [email protected] to c/rust
33
29
submitted 1 month ago by secana to c/rust
 
 

Kellnr, the registry to self host crates, has a new UI. I rewrote it to make it more consistent and responsive. Give it a try, if you want to host crates on your own infrastructure. https://kellnr.io/

34
 
 

Instead of emitting one giant crate containing everything, we tweaked our SQL-to-Rust compiler to split the output into many smaller crates. Each one encapsulating just a portion of the logic, neatly depending on each other, with a single top-level main crate pulling them all in.

35
44
Rust GUI survey 2025 (www.boringcactus.com)
submitted 1 month ago by [email protected] to c/rust
36
37
9
submitted 1 month ago by blazebra to c/rust
 
 

I just released helper library for deku to decode and encode strings in popular binary layouts (fixed length, pascal-like and c-like)

https://crates.io/crates/deku_string

38
 
 

I made a small project using leptos, but after updating leptos ended up with some unfixable bugs. The error and warning messages are too inaccurate, and due to all reactivity being implicit, it is hard to read my code now and figure out what would be wrong.

I thought about rewriting everything in yew, but was wondering if things work better there. As far as I understand, there is no such thing as implicit reactivity in yew, and everything that needs to be reactive needs to be wrapped in certain types. But I am fine with that, even though #[derive(Store)] in leptos was convenient.

Does anyone use leptos or yew in production or for any more serious projects, and can share some experiences? How do you usually debug your applications? Have you given up on some application that just didn't work?

39
17
March Project Goals Update (blog.rust-lang.org)
submitted 1 month ago by [email protected] to c/rust
40
16
submitted 1 month ago by antoyo to c/rust
 
 

I've been pretty busy in my life recently, but I finally got around writing this blog post. Hopefully, things are sorted out in my personal life and I should be able to be more regular about these updates in the future.

I'm very happy to see good progress towards rustup distribution (thanks to Kobzol again!).

41
42
43
4
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/rust
44
5
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/rust
 
 

Ok so I am currently using FLTK-rs for GUI design so if there's an fellow rustacean I would like your input.

Am I making any progress in this project I have undertaken (I advise you navigate to the Files section/tab). I need some feedback

I am using FLUID to build the GUI & basically I wish to recreate LBRY-Desktop. Please do note that, I come from a non-programming background.

45
61
Announcing Rust 1.86.0 (blog.rust-lang.org)
submitted 1 month ago by [email protected] to c/rust
46
12
submitted 1 month ago* (last edited 1 month ago) by absolutely_vivid to c/rust
 
 

I built a library for working with a compression format used by Godot. It’s my first Rust library and I thought the little bit of reverse engineering I did for the format would make for an interesting blog post. Let me know what you think!

(Reposting because I still don't know understand the lemmy UI lol)

47
86
Typst is hiring (typst.app)
submitted 2 months ago by [email protected] to c/rust
 
 

Typst, a very nice Latex alternative, written in rust has published job listings.

48
 
 

We're very happy to announce the first release of Ariel OS, an embedded Rust library OS. Ariel OS runs on small MCUs like nRF5x, RP2xxx, STM32 and ESP32. It is based on Embassy, and turns that into a full-blown RTOS, with preemptive multi-core scheduling and many OS-like conveniences.

We believe it offers a new combination of features that might be interesting:

  • It supports writing applications as both async and threaded code, mix-and-match.
  • It helps a lot in reducing boilerplate. Networking, threads & multi-core suppport, random numbers, flash storage are all readily available, with a sane and usually customizable default configuration.
  • It helps writing portable applications. Ariel applications start out being fully ported to all supported boards, then get specialized. This might be interesting to library authors as well, for simplified testing on multiple platforms.
  • It helps handling the little differences between MCUs. E.g, rustc target configuration, using defmt or not, probe-rs or esp-flash, are just build system flags. Ariel OS' meta build system handles the necessary Cargo and tooling configuration.
  • It integrates embedded-test for turn-key testing on real hardware.
  • It's all Embassy & smoltcp & embedded-hal(-async) & embedded-nal(-async) & ... under the hood, and it is easy to not use the abstractions if needed.

What we're working on right now or very soon:

  • building on stable Rust
  • BLE support
  • a nice DSL for defining boards, aiming at no-code porting of applications
  • low power handling
  • a native "port" where Ariel can run as Linux/OSX application

We're at the beginning, but think that Ariel OS might already be useful to many of you, especially for reducing boiler plate and getting started more quickly.

Let us know what you think!

Join us on Matrix in #ariel-os:matrix.org.

49
50
23
Adopting the FLS (blog.rust-lang.org)
submitted 2 months ago by [email protected] to c/rust
view more: ‹ prev next ›