Skip to content

Commit 616ed61

Browse files
Add documentation to wasm_bindgen macro, starting with link to attributes
Adding a link to the list of attributes that are supported by the `wasm_bindgen` macro to its docs.
1 parent c9ee617 commit 616ed61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/macro/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ extern crate proc_macro;
55
use proc_macro::TokenStream;
66
use quote::quote;
77

8+
/// A list of all the attributes can be found here: https://rustwasm.github.io/wasm-bindgen/reference/attributes/index.html
89
#[proc_macro_attribute]
910
pub fn wasm_bindgen(attr: TokenStream, input: TokenStream) -> TokenStream {
1011
match wasm_bindgen_macro_support::expand(attr.into(), input.into()) {

0 commit comments

Comments
 (0)