Rustlang

100 readers
1 users here now

founded 1 year ago
1
 
 

Just dropping this here so others who stumble upon this magazine get some idea what this place is about 😁

2
 
 

Empowering everyone to build reliable and efficient software.

3
 
 

The Rust Security Response WG was notified that Cargo did not respect the umask when extracting crate archives on UNIX-like systems. If the user downloaded a crate containing files writeable by any local user, another local user could exploit this to change the source code compiled and executed by the current user.

4
5
6
 
 

Hello again from the Rust Leadership Council. In our first blog post, we laid out several immediate goals for the council and promised to report back on their progress. It has been about a month since our first update so we wanted to share how it's going and what we're working on now.

7
8
 
 

Simple question. What do you use for editing Rust code? Why?

I'll start. I use VS Codium, but every now and then I give Neovim and even GNOME Builder a shot.

9
 
 

The uutils project continues advancing as a modern, drop-in replacement to the GNU Coreutils utilities that is written in the Rust programming language.

10
 
 

Why? I don’t know, maybe someone here will like it.

11
 
 

The Rust team is happy to announce a new version of Rust, 1.71.0. Rust is a programming language empowering everyone to build reliable and efficient software.

What's in 1.71.0 stable

  • C-unwind ABI
  • Debugger visualization attributes
  • raw-dylib linking
  • Upgrade to musl 1.2
  • Const-initialized thread locals
12
13
4
Bevy 0.11 (bevyengine.org)
submitted 1 year ago by [email protected] to c/[email protected]
 
 

Bevy is a refreshingly simple data-driven game engine built in Rust. It is free and open-source forever!


Since our last release a few months ago we've added a ton of new features, bug fixes, and quality of life tweaks, but here are some of the highlights:

  • Screen Space Ambient Occlusion (SSAO): Increase scene render quality by simulating occlusion of "indirect" diffuse light
  • Temporal Anti-Aliasing (TAA): A popular anti-aliasing technique that blends the current frame with past frames using motion vectors to smooth out artifacts
  • Morph Targets: Animate vertex positions on meshes between predefined states. Great for things like character customization!
  • Robust Constrast Adaptive Sharpening (RCAS): Intelligently sharpens renders, which pairs nicely with TAA
  • WebGPU Support: Bevy can now render on the web faster and with more features using the modern WebGPU web API
  • Improved Shader Imports: Bevy shaders now support granular imports and other new features
  • Parallax Mapping: Materials now support an optional depth map, giving flat surfaces a feel of depth through parallaxing the material's textures
  • Schedule-First ECS APIs: A simpler and more ergonomic ECS system scheduling API
  • Immediate Mode Gizmo Rendering: Easily and efficiently render 2D and 3D shapes for debugging and editor scenarios
  • ECS Audio APIs: A more intuitive and idiomatic way to play back audio
  • UI Borders: UI nodes can now have configurable borders!
  • Grid UI Layout: Bevy UI now supports CSS-style grid layout
  • UI Performance Improvements: The UI batching algorithm was changed, yielding significant performance wins
14
15
 
 

Over the last several years, I’ve rewritten Rust’s regex crate to enable better internal composition, and to make it easier to add optimizations while maintaining correctness. In the course of this rewrite I created a new crate, regex-automata, which exposes much of the regex crate internals as their own APIs for others to use. To my knowledge, this is the first regex library to expose its internals to the degree done in regex-automata as a separately versioned library.

This blog post discusses the problems that led to the rewrite, how the rewrite solved them and a guided tour of regex-automata’s API.

Target audience: Rust programmers and anyone with an interest in how one particular finite automata regex engine is implemented. Prior experience with regular expressions is assumed.

16
 
 

Rustfmt will add support for formatting let-else statements starting with the nightly 2023-07-02 toolchain, and then let-else formatting support should come to stable Rust as part of the 1.72 release.

17
18
2
This Week in Rust 501 (this-week-in-rust.org)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
19
 
 

Rust Leadership Council established in the wake of community complaints of governance shortcomings and a fork of the language to escape bureacracy.

20
 
 

Wondering about Rust? We're addressing rumors and providing insight gained from years of early adoption of Rust here at Google.

[Archive link]

21
 
 

Level up your Rust skills.

This is a blog post that I update somewhat frequently with random Rust tips and tricks I use in my own personal projects.

Hope someone here finds it useful!

22
 
 

Binstall is a tool to fetch and install Rust-based executables as binaries. It aims to be a drop-in replacement for cargo install in most cases.

23
 
 

Ohad's blog

24
3
Projects like pngme (kbin.social)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 
 

Pngme is a tutorial where besides having a spec and unit tests, there is no real hand holding for figuring out how to implement something except for links to locations in the rust docs that might be useful.

Has anyone come across similar tutorials/projects?

Edit:
I found this Rusty CS curriculum on github that has a ton of projects that seem very similar to the pngme book. I'm probably going to go through it/follow through it to see how it holds up as its currently incomplete but looks very promising: https://github.com/AbdesamedBendjeddou/Rusty-CS

I had a look at the ray tracer challenge book, and it seems language agnostic, so I'm thinking of saving that for the language that I finally settle on.

25
 
 

Hi all. Cross posting to try and solicit feedback. I have made a post on the Rust user forums but also am looking for feedback here on my project named “Treaty” which is a data sharing API; or at least the start of one.

https://users.rust-lang.org/t/requesting-feedback-on-my-data-sharing-project/95985

I welcome tactful feedback on architecture and code quality, which I know needs improvement. Details can be found at the link or at the repo directly.

Thank you.

#rust

view more: next ›