1 unstable release

0.1.0 Jan 25, 2024

#2 in #iouring

Download history 73/week @ 2024-01-19 253/week @ 2024-01-26 91/week @ 2024-02-02 64/week @ 2024-02-09 87/week @ 2024-02-16 66/week @ 2024-02-23 244/week @ 2024-03-01 44/week @ 2024-03-08 25/week @ 2024-03-15 20/week @ 2024-03-22 41/week @ 2024-03-29

146 downloads per month
Used in nuclei

Apache-2.0/MIT

8KB
91 lines

nuclei-attributes

Attributes crate for Nuclei.


lib.rs:

Experimental language-level polyfills for Async Rust.

Examples

#[nuclei_attributes::main]
async fn main() {
    println!("Hello, world!");
}

About

Async Rust is a work in progress. The language has enabled us to do some fantastic things, but not everything is figured out yet. This crate exists to polyfill language-level support for async idioms before they can be part of the language.

A great example of this is async fn main, which we first introduced as part of the runtime crate. Its premise is that if async fn is required for every await call, it makes sense to apply that even to fn main. Unfortunately this would require compiler support to enable, so we've provided an experimental polyfill for it in the mean time.

Dependencies

~1.5MB
~34K SLoC