Skip to content

Move wasm exports behind feature #239

@GICodeWarrior

Description

@GICodeWarrior

It would be useful if the wasm exports were behind a crate feature.
e.g. #[cfg_attr(feature = "export-wasm", wasm_bindgen)]

I'm using ocrs in my project, and several ocrs classes are showing up as callable in my wasm build.

If these were not exported to wasm, the linker would have an opportunity to cull any code I'm not using inside my project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions