Skip to content

Adding #[wasm_bindgen] means you can't run cargo bench anymore #114

Closed
@fitzgen

Description

@fitzgen

You get link errors and things like that.

Ideally, we should make all the wasm-bindgen generated code guarded by #[cfg(target_arch = wasm32)] or something like that.

The

[lib]
crate-type = ["cdylib"]

stuff is a little harder. It can be commented out just when running cargo bench, but that is clunky. Ideally that would not be necessary either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions