I've recently been interested in using some libraries, mainly typetag, which depend on rust-ctor to function.
rust-ctor uses link sections on Windows, Mac and Linux to allow functions to run main. Any crate can add these functions, and then they'll all be run without needing for central configuration.
If you could estimate, would it be possible to add support for this to stdweb?
Asking here rather than in rust-ctor since I'm 95% sure this needs support from cargo-web. If there's an existing way to write static constructors in wasm32-unknown-unknown, though, my apologies. Still, any solution would be good.
I've recently been interested in using some libraries, mainly typetag, which depend on rust-ctor to function.
rust-ctor uses link sections on Windows, Mac and Linux to allow functions to run
main. Any crate can add these functions, and then they'll all be run without needing for central configuration.If you could estimate, would it be possible to add support for this to stdweb?
Asking here rather than in rust-ctor since I'm 95% sure this needs support from
cargo-web. If there's an existing way to write static constructors inwasm32-unknown-unknown, though, my apologies. Still, any solution would be good.