Rust

7557 readers
55 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
1
2
 
 

Version 1.92.0 of Rust has been released. This release includes a number of stabilized APIs, emits unwind tables by default on Linux, validates input to #[macro_export], and much more. See the separate release notes for Rust, Cargo, and Clippy.

3
4
8
This Week in Rust 629 (this-week-in-rust.org)
submitted 1 day ago by mrbn@lemmy.ca to c/rust@programming.dev
5
6
7
 
 

cross-posted from: https://programming.dev/post/41939535

Hello everyone, i recently published a post about this app launcher (https://programming.dev/post/41551778) and i released version 0.2.0

Many useful features have been added, such as a configuration file and custom themes, and performance has improved

Ram usage is ~20 mb

Here are some highlights of the app launcher:

 Starts up in about ~0.1-0.2s

 Written using the Iced GUI framework

 Supports navigation using arrows

Project GitHub: https://github.com/dest-lab/stryde

Catppuccin Themes GitHub: https://github.com/mxghj/catppuccin-stryde

Feedback and suggestions are welcome

8
6
Rust in Android Devices (flipboard.social)
submitted 3 days ago* (last edited 17 hours ago) by indietechnews@flipboard.social to c/rust@programming.dev
9
10
11
This Week in Rust 628 (this-week-in-rust.org)
submitted 1 week ago by mrbn@lemmy.ca to c/rust@programming.dev
11
12
13
14
 
 

Alex Gaynor recently announced he is formally stepping down as one of the maintainers of the Rust for Linux kernel code with the removal patch now queued for merging in Linux 6.19.

Alex Gaynor was one of the original developers to experiment with Rust code for Linux kernel modules. He's drifted away from Rust Linux kernel development for a while due to lack of time and is now formally stepping down as a listed co-maintainer of the Rust code. After Wedson Almeida Filho stepped down last year as a Rust co-maintainer, this now leaves Rust For Linux project leader Miguel Ojeda as the sole official maintainer of the code while there are several Rust code reviewers.

15
 
 

I've been experimenting a bit with Rust and seeing what I can get to work and what I can't.

I've been able to mostly recreate the Django workflow using these programs: actix web, tera, and butane.

Butane seems to be the least mature out of all of them, and has also given me the most trouble. That said, it's still the closest thing that I can find to Django's ORM.

I'm just letting you guys know in case you're interested and want to try it out.

16
17
18
19
 
 

The Wild linker is a very speedy linker written in the Rust programming language that has become quite competitive with the likes of Mold. A patch sent out this weekend adds Wild support for use with the GNU Compiler Collection (GCC).

The patch adds support for GCC for using the Wild linker with the compiler's "--with-ld" option for specifying the linker. This patch for Wild has been successfully tested with the "vast majority" of tests passing.

20
21
 
 

cross-posted from: https://programming.dev/post/40815478

Introducing YT-Feeds.

I was looking for an ultra lightweight YouTube client that would allow me to avoid the algorithm, clickbait thumbnails, and AI generated comment sections. After months of work, and getting side tracked many times, YT-Feeds was born. It can be found on GitHub, but is available on the AUR, and can be installed with binstall, github releases, or via cargo directly.

It is built in Rust with no graphical framework. It functions entirely on key binds and the design philosophy is to have only one page to view at any time.

Features List:

  • Fast startup and navigation
  • Uses minimal resources (under 1 Mb RAM!)
  • Distraction and short form content free
  • Allows for searching/subscribing/unsubscribing channels
  • Automatically tracks and resumes watch history locally
  • Shows recent videos from subscriptions organized by date
  • Groups subscriptions into a collective "feed" organized by date
  • Categorize and view videos in the 'watch later' menu
  • Never requires leaving the terminal or using your mouse
  • Cross platform support for ARM and x86_64 Windows, MacOS, and Linux

Note: I expect there to be bugs in the future - feel free to submit an issue and I will get to it when I can find the time.

22
 
 

For example, is there any problems with doing this?

fn main() {  
	static mut BUF: [u8; 0x400] = [0; 0x400];  
	let buf = &mut unsafe { BUF };  
}  

and is this code the same as just using an array directly? From my understanding local variables get put on the stack but do the static variables do too?

I'm essentially trying to find the most performant way to get a simple read/write buffer.

23
 
 

cross-posted from: https://programming.dev/post/40764432

AWS Lambda adds support for Rust - AWS

24
25
 
 

A minimal, declarative setup for productive Rust hacking on Emacs + Guix

I noticed there was a blatant lack of resources and documentation on this particular setup. So I rolled up my sleeves and wrote this article, which hopefully you find useful.

https://jointhefreeworld.org/blog/articles/rust/simple-guix-emacs-rust-development-environment/index.html

See image here of my Emacs with rust-analyzer and clippy working: https://ibb.co/whxq8dX1

view more: next ›