Reddit » The Rust Programming Language
175 FOLLOWERS
A place for all things related to the Rust programming language - an open-source systems language that emphasizes performance, reliability, and productivity.
Reddit » The Rust Programming Language
11m ago
I'm using Ubuntu (now with Rust in the kernel) as my OS. For text editing I'm using Zellij for screen management, Helix for editing, and Alacritty for terminal emulator, which are all written in Rust! And for my browser Firefox, which is a very rusty browser indeed ;]
We're doing it lads. The day of memory safety is upon us.
heres some rocket emojis since they are required for this sub
:rocket::rocket::rocket:
submitted by /u/RylanStylin57
[visit reddit] [comments ..read more
Reddit » The Rust Programming Language
11m ago
submitted by /u/bestia_dev
[visit reddit] [comments ..read more
Reddit » The Rust Programming Language
2h ago
submitted by /u/CyberSoulWriter
[visit reddit] [comments ..read more
Reddit » The Rust Programming Language
2h ago
Hello,
I have to undergo a migration from C++ (built with Cmake) to Rust and I was wondering what tools, usefull crates, obstacles you encountered, if you went through this kind of situation.
The migration will have to change the build system to Cargo and building the C++ as a library via Cmake and use some bindings to call C++ from Rust untill all C++ components are migrated (so like a top-down approach).
Thank you!
submitted by /u/Loud_Bench3408
[visit reddit] [comments ..read more
Reddit » The Rust Programming Language
4h ago
Hello everyone,
I am looking to create a stack with the following requirements:
Axum backend
This backend must be able to generate static HTML pages on request. On subsequent requests this generated HTML must be served instead of generating a new one.
Runtime revalidation in case data becomes stale (if it's something like this reddit page and a new post appears, we revalidate the HTML).
So far I've spent a day reading about Maud, Sailfish, Handlebars, Horrorshow, Liquid, Askama and so on. In the end, it's probably my skill issue. I could probably "intercept" the response and save it myself ..read more
Reddit » The Rust Programming Language
6h ago
submitted by /u/apollolabsbin
[visit reddit] [comments ..read more
Reddit » The Rust Programming Language
7h ago
Hey there!
I've come to Rust from Golang and ran into a problem with error wrapping. In Go, since 1.13, we have error wrapping which allows us to write something like this:
var ( ErrUser = errors.New("user") ErrInternal = errors.New("internal") ) func main() { if err := a(); err != nil { if errors.Is(err, ErrUser) { fmt.Println("it's a user error") } if errors.Is(err, ErrInternal) { fmt.Println("it's an internal error") } } } func a() error { if err := b(); err != nil { return fmt.Errorf("custom error: %w", err) } return nil } func b() error { if err := c(); err != nil { return errors.Join(e ..read more
Reddit » The Rust Programming Language
7h ago
I’ve heard that Rust doesn’t do dynamic linking that well due to ABI reasons. Could WASM components change this? Could it be possible to dynamically link a WASM component?
submitted by /u/Holobrine
[visit reddit] [comments ..read more
Reddit » The Rust Programming Language
9h ago
submitted by /u/bachkhois
[visit reddit] [comments ..read more
Reddit » The Rust Programming Language
11h ago
Hey there! I’ve been perusing the official Rust documentation on iterators and noticed it’s missing information on asymptotic complexity. For instance, the .next() method will take constant time operation. I also found only a handful of methods in the collection documentation have their asymptotic complexities detailed. Is there a comprehensive resource available that documents the asymptotic complexities for everything from iterators to containers?
submitted by /u/mrJ16N
[visit reddit] [comments ..read more