3 releases
0.1.2 | Aug 1, 2024 |
---|---|
0.1.1 | Jul 2, 2023 |
0.1.0 | Jan 22, 2022 |
#767 in Procedural macros
1,232 downloads per month
Used in procspawn
17KB
229 lines
small-ctor
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
- Documentation
- Issue Tracker
- Examples
- License: Apache-2.0