Rust

6059 readers
59 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 1 year ago
MODERATORS
426
31
submitted 1 year ago* (last edited 1 year ago) by snaggen to c/rust
 
 

#fishshell rewrite-it-in #rust progress, 2023-11-20

76909 rust lines added

48105 / 77063 C++ lines removed

▓▓▓▓▓▓▓▓▓▓▓▓░░░░░░░░ 62 %

427
 
 

The one dealbreaker for me in Typst is the current lack of locale-aware decimal separators. The rest of it is so good that I've donated a couple times.

428
 
 

I'm a complete beginner in programming with no prior experience, and I want a tutor/mentor to learn Rust for software(GUI, games, software in general) development and, eventually, kernel development(microkernels, IPC, specifically). I pay, of course. (Also, another note, I dislike UNIX (philosophy wise), so I would be looking to get experience in non-UNIX kernel development but also learn UNIX stuff as well.) Furthermore, to note, is I'm interested in game development.

I have a document from my previous tutor in this outlining the stuff I am keen to learn, practically a syllabus, so if you want to see it dm me :3.

429
12
Rust Analyzer Changelog #208 (rust-analyzer.github.io)
submitted 1 year ago by snaggen to c/rust
430
 
 

Rocket 0.5 Released together with RWF2, a nonprofit organization designed to support Rocket and the surrounding ecosystem, financially and organizationally.

431
15
submitted 1 year ago by kvark to c/rust
 
 

Check out Blade: it's a purely ray-traced renderer, with asset pipeline and egui integration, built on top of a thin low-level GPU abstraction.

I've just released blade-graphics-0.3, blade-render-0.2, and other associated crates. I believe it's now usable externally, and I'm dogfooding it myself.

Major rendering additions:

  • tangent space generation and normal mapping
  • spatio-temporal reservoir resampling (ReSTIR)
  • environment map importance sampling, it can load EXR and HDR
  • Spatio-temporal variance-guided de-noising (SVGF)

In addition, shaders are now considered assets and can have includes, shared enums and bitflags with your Rust code. The "scene" example is practically a scene editor: it allows dropping new objects, manipulating them via egui-gizmo, in addition to configuring the rendering.

432
 
 

The Prettier Bounty is a challenge to write a prettier-compliant pretty printer in Rust

433
 
 

I love browsing crates.io and blessed.rs for interesting and useful crates to experiment with. What are your favorite?

I'm especially interested in those simple ones that do one thing and do it will, like uuid, tempfile, and notify.

434
 
 

Greetings to all.

I have spent the last couple of evenings learning about Rust and trying it out. Wrote a simple cli calculator as a first thing and thought I would improve it by making it available over http.

I was actually a bit surprised to find that there was no http tooling in the standard library, and searching online gave me an overload of information on different libraries and frameworks.

I ended up implementing my own simple HTTP server, might as well as this is a learning project.

Now I have it working, and while it isn't perfect or done, I thought that this would be a good time to check what things I am doing wrong/badly.

Which is why I am here, would love to get some pointers on it all to make sure I am going in the right direction in the future.

The project is hosted here: https://github.com/Tebro/rsimple_http

435
11
This Week in Rust 521 (this-week-in-rust.org)
submitted 1 year ago by snaggen to c/rust
436
48
Announcing Rust 1.74.0 (blog.rust-lang.org)
submitted 1 year ago by snaggen to c/rust
437
20
[Blog] Eyra does the impossible (blog.sunfishcode.online)
submitted 1 year ago by snaggen to c/rust
438
14
submitted 1 year ago* (last edited 1 year ago) by _Vi to c/rust
 
 

This is a #[no_std]-friendly library for encoding and decoding WebSocket frames.

It does not offer full WebSocket experience like Tungstenite, only the part where you need to deal with bits and bytes.

It works completely without using memory allocator. You meed to assemble WebSocket messages chunk by chunk yourself though.

439
440
45
submitted 1 year ago* (last edited 1 year ago) by _Vi to c/rust
 
 

Low-level HTTP 1 and 2 processing library "hyper" gets released.

It contains fewer features than 0.14, (relatively) "high-level" client and server are gone. Only hyper::{client,server}::conn remain.

Also there is some IO abstraction: though it still depends on Tokio (only the sync feature), it should be easier to connect other runtimes. Just using it with Tokio like before is though less straightforward.


Do not hurry to upgrade your project from 0.14 to 1, better wait for better support in the ecosystem.

441
442
17
Rust without crates.io (thomask.sdf.org)
submitted 1 year ago by mac to c/rust
443
10
Rust Analyzer Changelog #207 (rust-analyzer.github.io)
submitted 1 year ago by snaggen to c/rust
444
445
446
 
 

Author of Pomsky here. Feel free to ask me anything!

447
448
 
 

Hi! I tried out yew last night and was going through the tutorial (the link). At the end the tutorial is using a link to an external resource. My guess is that the tutorial app shall create a website with a list of (empty) videos that is created by reading an external json-file from the yew-website. The problem is that this doesn't work for me, the list stays empty. I also don't find the full source of this example somewhere. On the site it is only iteratively described. I am pretty sure I have everything like on the website.

449
9
This Week in Rust #520 (this-week-in-rust.org)
submitted 1 year ago by bennyVasquez to c/rust
450
17
submitted 1 year ago by antoyo to c/rust
 
 

We now run part of the tests in the Rust repo's CI, which is the first step to eventually distributing the GCC codegen via rustup! We also improved a lot the cross-compilation situation.

view more: ‹ prev next ›