Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#3297): Allow variant skip #3496

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Jun 25, 2023

  1. fix(rustwasm#3297): Allow variant skip

    provides a way to avoid having this error:
    only C-Style enums allowed with #[wasm_bindgen]
    
    ```rust
    \#[wasm_bindgen]
    pub enum Operation {
        INCREMENT,
    
        #[cfg(not(target_arch = "wasm32"))]
        #[wasm_bindgen(skip)]
        CUSTOM(fn(i32) -> i32),
    }
    ```
    erwanvivien committed Jun 25, 2023
    Configuration menu
    Copy the full SHA
    03468de View commit details
    Browse the repository at this point in the history