small_ctor

Crates.iosmall_ctor
lib.rssmall_ctor
version0.1.1
sourcesrc
created_at2022-01-22 12:24:07.592206
updated_at2023-07-02 18:53:58.072949
descriptionA minimal, dependency free version of the ctor crate
homepage
repositoryhttps://github.com/mitsuhiko/small-ctor
max_upload_size
id519128
size30,342
Armin Ronacher (mitsuhiko)

documentation

README

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

Commit count: 5

cargo fmt