ergo-pin is an experiment in providing a more ergonomic stack-pinning API. The primary current use-case for this is in async fn , but it is also useful for other usecases of the std::pin::Pin API (e.g. usage of the unstable generator feature).

With ergo-pin you simply apply an attribute on an item, and within that item you can use the pin! macro to pin any expression: