Support import_name
and import_module
attributes when targeting wasm32
#2918
Labels
import_name
and import_module
attributes when targeting wasm32
#2918
I know we already have
wasm_import_module_name
, but clang already has attributes for that! Supporting them directly would be much more convenient, I think?See: https://clang.llvm.org/docs/AttributeReference.html#import-module
Another big motivation for this would be that it allows importing from different modules in the same header.
Input C/C++ Header
Bindgen Invocation
Note that clang must be passed
-target wasm32
to recognize the attributes.Actual Results
Expected Results
The text was updated successfully, but these errors were encountered: