mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-16 22:11:45 +03:00
c8a352189b
This commit implements a system that will assert that all `#[wasm_bindgen]` attributes are actually used during compilation. This should help ensure that we don't sneak in stray attributes that don't actually end up having any meaning, and hopefully make it a bit easier to learn `#[wasm_bindgen]`!
12 lines
167 B
Rust
12 lines
167 B
Rust
extern crate wasm_bindgen;
|
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
#[wasm_bindgen]
|
|
impl A {
|
|
#[wasm_bindgen(method)]
|
|
#[wasm_bindgen(method)]
|
|
pub fn foo() {
|
|
}
|
|
}
|