wasm-bindgen/tests
Liam Murphy 9a7732f7a7
Add support for exporting static getters and setters (#2986)
* Add support for exporting static getters and setters

Fixes #2895

Exported methods with `#[wasm_bindgen(getter/setter)]` and no `self` parameter are now interpreted as getters/setters for static fields. Previously, attempting to do that would cause `wasm-bindgen` to crash.

This can already be done for imports with `static_method_of` + `getter`.

* Rename `AuxExportMethodKind` to `AuxExportedMethodKind`
2022-07-11 10:33:37 -05:00
..
crates cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
headless Mass rename anyref to externref (#2142) 2020-05-18 09:36:30 -05:00
no-std cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
wasm Add support for exporting static getters and setters (#2986) 2022-07-11 10:33:37 -05:00
must_use.rs Add a test that fails to compile if generated code triggers unused lint warning. (#2145) 2020-05-19 09:43:44 -05:00
non_wasm.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
std-crate-no-std-dep.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
unwrap_throw.rs Add the UnwrapThrowExt<T> trait 2019-01-31 13:26:21 -08:00