1 unstable release

0.1.0 Jan 25, 2024

#5 in #iouring

Download history 274/week @ 2024-06-15 76/week @ 2024-06-22 16/week @ 2024-06-29 29/week @ 2024-07-06 34/week @ 2024-07-13 41/week @ 2024-07-20 39/week @ 2024-07-27 75/week @ 2024-08-03 68/week @ 2024-08-10 38/week @ 2024-08-17 55/week @ 2024-08-24 46/week @ 2024-08-31 40/week @ 2024-09-07 67/week @ 2024-09-14 69/week @ 2024-09-21 54/week @ 2024-09-28

235 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
~35K SLoC