dtolnay / inventory

Typed distributed plugin registration
Apache License 2.0
948 stars 43 forks source link

Add a way to use `#[used(linker)]` #61

Closed dtolnay closed 1 year ago

dtolnay commented 1 year ago
inventory::submit! {
    #![used(linker)]
    Foo::new(...)
}
dtolnay commented 1 year ago

This requires #![feature(used_with_arg)] for now (https://github.com/rust-lang/rust/issues/93798).