Skip to content

Support #[ctor] on wasm target #14

@dtolnay

Description

@dtolnay

I don't know for sure that this is possible, but it seems likely because C++ compiled to wasm would need to support static initializers somehow.

I would love to use this for typetag -- see dtolnay/typetag#8 for a failing repro that shows ctor functions not being invoked.

@cwhakes may be able to help with the implementation or testing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedBlocked by another projectenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions