escher-derive

Crates.ioescher-derive
lib.rsescher-derive
version0.2.0
sourcesrc
created_at2021-03-27 19:03:47.939415
updated_at2021-03-28 17:41:13.193558
descriptionSelf-referencial structs using the async/await transformation
homepage
repositoryhttps://github.com/petrosagg/escher
max_upload_size
id374358
size3,661
Petros Angelatos (petrosagg)

documentation

https://docs.rs/escher

README

escher

Self-referencial structs using async stacks

Escher is an extremely simple library providing a safe and sound API to build self-referencial structs. It works by (ab)using the async await trasformation of rustc. If you'd like to know more about the inner workings please take a look at the How it works section and the source code.

Compared to the state of the art escher:

  • Is only around 100 lines of well-commented code
  • Contains only two unsafe calls that are well argued for
  • Uses rustc for all the analysis. If it compiles, the self references are correct

Usage

You are looking at the escher-derive crate. You can find the full documentation in the main escher crate.

Commit count: 50

cargo fmt