Skip to content

Minimal, dependency free implementation of the ctor crate

License

Notifications You must be signed in to change notification settings

mitsuhiko/small-ctor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Minimal, dependency free implementation of the ctor crate

Resources

License

Stars

Watchers

Forks

Packages

No packages published