mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 13:31:22 +00:00
Generate normal Rust functions for imported bindings (#410)
* Generate normal Rust functions for imported bindings No need to use the C ABI, it just mixes up the documentation! * Update expected webidl output
This commit is contained in:
@ -701,7 +701,7 @@ impl ToTokens for ast::ImportFunction {
|
||||
#(#attrs)*
|
||||
#[allow(bad_style)]
|
||||
#[cfg(all(target_arch = "wasm32", not(target_os = "emscripten")))]
|
||||
#vis extern fn #rust_name(#me #(#arguments),*) #ret {
|
||||
#vis fn #rust_name(#me #(#arguments),*) #ret {
|
||||
::wasm_bindgen::__rt::link_this_library();
|
||||
#[wasm_import_module = "__wbindgen_placeholder__"]
|
||||
extern {
|
||||
|
Reference in New Issue
Block a user