Implementation of std::cell
, std::cell::RefCell
and std::rc::Rc
.
This was done following a great Crust of Rust on Smart Pointers and Interior Mutability by Jon Gjengset (@jonhoo).
Project under smart-pointers.
Started working on this workshop for Rust Latam by David Tolnay (@dtolnay).
Also inspired by a long session on proc macros by Jon Gjengset (@jonhoo)!
- Derive macro:
derive(Builder)
- Derive macro:
derive(CustomDebug)
- Function-like macro:
seq!
- Attribute macro:
#[sorted]
- Attribute macro:
#[bitfield]
Project under proc-macro-workshop.
Toy repo to do some tests on proc macro syntax.
Project under proc-macro-playground.
Another great Crust of Rust.
Implementation of std::sync::mpsc::channel
in eurostar/src/lib.rs
.
This is a simple implementation of asynchronous/unbounded multi-producer single consumer (mpsc
) channel using a VecDeque
buffer, a Mutex
and a Condvar
behind an Arc
.
Project under eurostar.