1
8
2
68
3
12
This Week in Rust 603 (this-week-in-rust.org)
submitted 2 days ago by cm0002@lemmy.world to c/rust@programming.dev
4
24

We've got a few bugs fixed that allowed us to fully bootstrap the Rust compiler with rustc_codegen_gcc and to fix the CI for Rust for Linux compiled with rustc_codegen_gcc. We hope to improve our testing within the Rust repo in order to allow us to move faster towards our goals.

5
3
submitted 3 days ago by cm0002@lemmy.world to c/rust@programming.dev
6
31
Your own ferris plushie (programming.dev)

I got some Ferris plushies made which you can now order at https://trustyswag.com/product/ferris-plushie/

Ideal for stress relief when fighting the borrow checker!

7
10
This Week in Rust 602 (this-week-in-rust.org)
submitted 1 week ago by cm0002@lemmy.world to c/rust@programming.dev
8
17

Hi everyone!

I'm conducting a brief survey (takes less than 1 minute) to better understand the Rust open source community. I'm particularly interested in learning about who contributes to Rust projects and what motivates or prevents people from getting involved.

I hope insights from this survey will help us identify better ways to support and engage potential contributors in the Rust community.

Thanks for taking the time to share your perspective!

Survey link: https://tripetto.app/run/MHPMRBFVKT

9
14
April Project Goals Update (blog.rust-lang.org)
submitted 2 weeks ago by neme@lemm.ee to c/rust@programming.dev
10
13
submitted 2 weeks ago by cm0002@lemmy.world to c/rust@programming.dev
11
14

I just learned the basics of macros and figured I'd give a shot trying to solve a problem I've had for a while. Theres just one derive trait in this crate, Variants, that when derived will generate a constant array that holds all of the enum's variants along with a method that exposes a static reference to the constant array.

Give it a look, leave some feedback, maybe even open up a PR. I hope you like what you see!

12
16

cross-posted from: https://lemmy.world/post/30361372

Hi all,

I don't know where would be the best place to post this, but I wanted some people's feedback on a DSL that I wrote for network analysis.

I am using nom for writing the lexer and parser, then using abi_stable crate for data types so that you can write plugins to the language and load them dynamically as well.

This language is made to work by loading a tree graph (network) and then call a bunch of node or network functions that work on it. There are different ways you can run functions, and use node/network attributes.

I am mostly self-taught, so it took a lot of years to get to a level where I could write something like this. I am learning a lot and having a lot of fun in the process, but I want this to develop into something that can have a practical usefulness to people. Since I am in the field of hydrology, I am making it with river networks in the mind.

To try it out, you can either download the executables for windows from the releases page, or you can compile it using cargo (for all OS; except android where GUI won't work, CLI will work in termux). I have some basic examples in the Learn By Examples section of the User Guide that you can follow.

Please let me know if you can't compile/use it as well. I have tried to make sure it has required instructions, but I could have missed something.

13
26
submitted 2 weeks ago by cm0002@lemmy.world to c/rust@programming.dev
14
16
submitted 2 weeks ago by neme@lemm.ee to c/rust@programming.dev
15
62
submitted 3 weeks ago by clot27@lemm.ee to c/rust@programming.dev
16
61
Oxidise Your Command Line (2025 Edition) (videos.abnormalbeings.space)
17
16
This Week in Rust 600 (this-week-in-rust.org)
submitted 3 weeks ago by cm0002@lemmy.world to c/rust@programming.dev
18
26
19
17
submitted 3 weeks ago by cm0002@lemmy.world to c/rust@programming.dev
20
1
21
8
This Week in Rust 599 (this-week-in-rust.org)
submitted 4 weeks ago by cm0002@lemmy.world to c/rust@programming.dev
22
17
submitted 4 weeks ago* (last edited 4 weeks ago) by elBoberido@programming.dev to c/rust@programming.dev

Cross posting from https://programming.dev/post/30565644

Hi everyone,

yesterday, we released iceoryx2 v0.6, an ultra-low latency inter-process communication framework for Rust, C and C++. Python support is also on the horizon. The main new feature is Request-Response-Stream, but there’s much more.

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-6-release

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

23
28
24
24

So I've had this idea for an API for a while but the problem I keep coming back to is authentication. I'm using rocket to actually code it. I looked through the rocket docs and it looks like the closest thing to API key authentication it has are cookies.

I then went and looked at some other APIs to see if I can copy their layouts and it looks like a lot of them use an API key and then a secret API key for authentication. Did some more googling and stackoverflow said that it's more secure to use a pair like that.

So that leaves me with the actual question: how do you actually implement this feature? Do you just generate API keys and throw them a database to be looked up later? Should they be written/read to a file to be used later(probably not a good option I'd guess).

Just for reference I'm using rocket, sqlx and postgres.

25
80
submitted 1 month ago by neme@lemm.ee to c/rust@programming.dev
view more: next ›

Rust

7056 readers
13 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