Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 1.19 KB

README.md

File metadata and controls

27 lines (20 loc) · 1.19 KB

small-ctor

Build Status rustc 1.46.0 Crates.io License Documentation

Minimal, dependency free implementation of the ctor crate.

Supports Rust 1.46 and later on Linux, Windows and macOS. Other platforms best effort.

struct MyPlugin;

#[small_ctor::ctor]
unsafe fn register_plugin() {
    PLUGINS.register(MyPlugin);
}

License and Links