wasm-bindgen/tests/wasm
Rodrigo Rivas Costa 6b3d730a53
Implement extern "C" async functions. (#2196)
* Implement extern "C" async functions.

It converts a JS Promise into a wasm_bindgen_futures::JsFuture that
implements Future<Result<JsValue, JsValue>>.

* Run rustfmt.

Add #[rustfmt::skip] to the tests/wasm/futures.rs because it removes
the async from extern "C" blocks.
2020-06-29 11:18:47 -05:00
..
api.js Dramatically improving the build time of web-sys (#2012) 2020-03-02 17:39:36 -06:00
api.rs Add an accessor for the function table 2019-04-08 10:40:46 -07:00
arg_names.js Preserve argument names 2019-03-14 08:46:42 -03:00
arg_names.rs Preserve argument names 2019-03-14 08:46:42 -03:00
char.js Port tests that use only basic features 2018-08-04 22:25:29 -05:00
char.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
classes.js Allow for js property inspection (#1876) 2019-11-26 12:39:57 -06:00
classes.rs Allow for js property inspection (#1876) 2019-11-26 12:39:57 -06:00
closures.js First refactor for WebIDL bindings 2019-06-05 07:52:14 -07:00
closures.rs add dyn for Fn (#2212) 2020-06-23 10:24:26 -05:00
comments.js Copy more doc comments to JS/TS files, unescape comments (#2070) 2020-04-13 13:51:32 -05:00
comments.rs Copy more doc comments to JS/TS files, unescape comments (#2070) 2020-04-13 13:51:32 -05:00
duplicate_deps.js Migrate rest of dependencies test to wasm 2018-08-06 10:42:08 -07:00
duplicate_deps.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
duplicates_a.js Support importing same-name statics from two modules 2018-08-20 10:56:58 -07:00
duplicates_b.js Support importing same-name statics from two modules 2018-08-20 10:56:58 -07:00
duplicates_c.js Support importing same-name statics from two modules 2018-08-20 10:56:58 -07:00
duplicates.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
enums.js Add ability to rename enums (js_name = new_name) (#2071) 2020-04-13 09:14:41 -05:00
enums.rs Add ability to rename enums (js_name = new_name) (#2071) 2020-04-13 09:14:41 -05:00
final.js Rename host_binding to final 2018-11-09 08:00:41 -08:00
final.rs Rename host_binding to final 2018-11-09 08:00:41 -08:00
futures.js Implement extern "C" async functions. (#2196) 2020-06-29 11:18:47 -05:00
futures.rs Implement extern "C" async functions. (#2196) 2020-06-29 11:18:47 -05:00
getters_and_setters.js try to fix js_name error when both getter and setter used (#2074) 2020-04-10 11:57:36 -05:00
getters_and_setters.rs try to fix js_name error when both getter and setter used (#2074) 2020-04-10 11:57:36 -05:00
import_class.js Enable nested namespace (#951) (#2105) 2020-05-27 10:36:20 -05:00
import_class.rs Enable nested namespace (#951) (#2105) 2020-05-27 10:36:20 -05:00
imports_2.js try to fix global / modulaized import ns conflict (#2057) 2020-04-15 08:28:29 -05:00
imports.js exhausively match JSImportName (#2090) 2020-04-20 09:10:33 -05:00
imports.rs exhausively match JSImportName (#2090) 2020-04-20 09:10:33 -05:00
js_objects.js Migrate the serde-serialize test to wasm 2018-08-06 09:43:55 -07:00
js_objects.rs Handle JSON.stringify(undefined) 2019-09-25 11:24:48 -05:00
jscast.js Implement #[wasm_bindgen(extends = ...)] 2018-08-07 13:04:11 -07:00
jscast.rs Migrate all crates to the 2018 edition 2019-03-26 08:10:53 -07:00
main.rs Fix codegen for descriptors of async fn returns (#1782) 2019-09-20 16:06:27 -05:00
math.js Fix handling of u32 between Rust and JS 2019-03-27 13:37:14 -07:00
math.rs Assert that a bunch more function signatures don't require JS glue 2019-07-12 12:34:29 -07:00
no_shims.rs Mass rename anyref to externref (#2142) 2020-05-18 09:36:30 -05:00
node.js Move node test over to wasm 2018-08-06 10:06:45 -07:00
node.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
option.js Port tests that use only basic features 2018-08-04 22:25:29 -05:00
option.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
optional_primitives.js Port tests that use only basic features 2018-08-04 22:25:29 -05:00
optional_primitives.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
rethrow.js Allow returning Result from functions 2018-09-18 13:13:59 -07:00
rethrow.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
simple.js Dramatically improving the build time of web-sys (#2012) 2020-03-02 17:39:36 -06:00
simple.rs Mass rename anyref to externref (#2142) 2020-05-18 09:36:30 -05:00
slice.js Rewrite wasm-bindgen with updated interface types proposal (#1882) 2019-12-03 11:16:44 -06:00
slice.rs Rewrite wasm-bindgen with updated interface types proposal (#1882) 2019-12-03 11:16:44 -06:00
structural.js Port tests that use only basic features 2018-08-04 22:25:29 -05:00
structural.rs Fix importing and exporting the same name 2019-05-03 07:15:20 -07:00
truthy_falsy.rs Add truthy_falsy tests to main.rs 2019-08-08 09:17:38 +02:00
u64.js Port tests that use only basic features 2018-08-04 22:25:29 -05:00
u64.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
validate_prt.js Fix codegen of consuming setters/getters (#2172) 2020-05-29 15:28:52 -05:00
validate_prt.rs Fix codegen of consuming setters/getters (#2172) 2020-05-29 15:28:52 -05:00
variadic.js Add docs and remove typecheck from variadic attribute 2018-09-01 13:55:35 +01:00
variadic.rs cargo +nightly fmt --all 2018-09-26 08:26:00 -07:00
vendor_prefix.js Rename polyfill to vendor_prefix 2018-10-01 14:45:30 -07:00
vendor_prefix.rs Add an optimization to directly wire up imported functions 2018-11-13 13:16:38 -08:00