Open
Description
Describe the Bug
I'm able to apply conditionally wasm_bindgen
proc-macro, but not his attributes
Steps to Reproduce
let's say we have a "wasm" feature
#[cfg_attr(feature = "wasm", wasm_bindgen_macro::wasm_bindgen)]
pub MyStruct {
#[cfg_attr(feature = "wasm", wasm_bindgen(skip))] // THIS DOESN'T WORK
pub my_field: MyWrapperType,
}
Expected Behavior
I'm able to use proc-macro attributes when using conditional compilation
Actual Behavior
cannot find attribute `wasm_bindgen` in this scope
`wasm_bindgen` is in scope, but it is a crate, not an attribute
consider importing one of these items:
use wasm_bindgen::prelude::wasm_bindgen;
use wasm_bindgen_macro::wasm_bindgen;