small_ctor

Crates.iosmall_ctor
lib.rssmall_ctor
version0.1.2
sourcesrc
created_at2022-01-22 12:24:07.592206
updated_at2024-08-01 19:50:58.861874
descriptionA minimal, dependency free version of the ctor crate
homepage
repositoryhttps://github.com/mitsuhiko/small-ctor
max_upload_size
id519128
size30,339
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