Crates.io | small_ctor |
lib.rs | small_ctor |
version | 0.1.1 |
source | src |
created_at | 2022-01-22 12:24:07.592206 |
updated_at | 2023-07-02 18:53:58.072949 |
description | A minimal, dependency free version of the ctor crate |
homepage | |
repository | https://github.com/mitsuhiko/small-ctor |
max_upload_size | |
id | 519128 |
size | 30,342 |
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);
}