| Crates.io | small_ctor |
| lib.rs | small_ctor |
| version | 0.1.2 |
| created_at | 2022-01-22 12:24:07.592206+00 |
| updated_at | 2024-08-01 19:50:58.861874+00 |
| 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,339 |
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);
}