The const operand to asm! and global_asm! currently only accepts integers. Change it to also accept pointer values. The value must be computed during const evaluation. The operand expands to the name of the symbol that the pointer references, plus an integer offset when necessary.
This RFC introduces the concept of "target modifiers," flags that can cause unsoundness if compilation units disagree on them. We propose failing the build if rustc detects disjoint target modifier sets between units, with an escape hatch ( -Cunsafe-allow-abi-mismatch ) available. This RFC does not stabilize any specific modifiers but establishes the framework for handling them.
Make it possible to define custom smart pointers that work with trait objects. For now, it will only be possible to do this using a derive macro, as we do not stabilize the underlying traits.
This article is about building actors with Tokio directly, without using any actor libraries such as Actix. This turns out to be rather easy to do, however there are some details you should be aware of: Where to put the tokio::spawn call. Struct with run method vs bare function. Handles to the actor. Backpressure and bounded channels. Graceful shutdown. The techniques outlined in this article…
The async/await feature in Rust is implemented using a mechanism known as cooperative scheduling, and this has some important consequences for people who write asynchronous Rust code. The intended audience of this blog post is new users of async Rust. I will be using the Tokio runtime for the examples, but the points raised here apply to any asynchronous runtime. If you remember only one thing…
The purpose of this blog post is to celebrate the anniversary of two really neat methods on the Cell type: Cell::from_mut This method turns a &mut T into a &Cell<T> . Cell::as_slice_of_cells This method turns a &Cell<[T]> into a &[Cell<T>] . Both methods were released in version 1.37.0 of Rust, exactly one year ago from the date this post was published.
I've created a printed circuit board (PCB) that simulates the game of life on a 5 by 5 LED grid, and can be remote controlled with Bluetooth. The project was created in collaboration with another student as a school project. Here is a video of the finished product:
In order to investigate the behaviour of Newton Fractals at infinity, I've plotted Newton Fractals on the Riemann sphere. Here's an animated video of a Newton Fractal plotted on the Riemann sphere using YouTube's 360° video feature:
When I try to learn a new programming language, I don't write a hello world. Instead, I write a generator of newton fractals. Here's an example of a newton fractal: