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:
Alex Crichton
2018-07-07 12:20:42 -05:00
committed by GitHub
parent 2d50d5209b
commit 791e69a5c0
4 changed files with 57 additions and 39 deletions

View File

@ -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 {