rust-ctor
https://github.com/mmastrac/rust-ctor
Rust
Module initialization/global constructor functions for Rust
Triage Issues!
When you volunteer to triage issues, you'll receive an email each day with a link to an open issue that needs help in this project. You'll also receive instructions on how to triage issues.
Triage Docs!
Receive a documented method or class from your favorite GitHub repos in your inbox every day. If you're really pro, receive undocumented methods or classes and supercharge your commit history.
Rust not yet supported0 Subscribers
Add a CodeTriage badge to rust-ctor
Help out
- Issues
- ctor cause `fatal runtime error: thread::set_current should only be called once per thread`
- #[ctor] from a (static) library not applied if library not imported with `use`
- dtor - broken by upgrading tokio from 1.38.0 to 1.39.1 - use of std::thread::current() is not possible after the thread's local data has been destroyed
- Can `ctor` be used to initialize doctests?
- Are there any plans to support WebAssembly?
- `#[dtor]` does not match semantics of `#[ctor]`
- ctor not running for statically linked C library
- Register generic argument use at startup
- Add WASM support
- Ordering using `.init_array.N`
- Docs
- Rust not yet supported