Lockfree ring buffer in Rust

How to create a lockfree ringbuffer