2020-03-03 00:39:36 +01:00
|
|
|
use wasm_bindgen::prelude::*;
|
|
|
|
use wasm_bindgen_test::*;
|
|
|
|
|
|
|
|
#[wasm_bindgen(module = "/globals.js")]
|
|
|
|
extern "C" {
|
|
|
|
fn noop();
|
|
|
|
}
|
|
|
|
|
|
|
|
#[wasm_bindgen]
|
|
|
|
pub fn hello_there() {}
|
|
|
|
|
|
|
|
// This is to ensure that the file is actually loaded
|
|
|
|
#[wasm_bindgen_test]
|
|
|
|
fn keep() {
|
|
|
|
noop();
|
|
|
|
}
|
|
|
|
|
|
|
|
mod generated {
|
|
|
|
include!(concat!(env!("OUT_DIR"), "/mod.rs"));
|
|
|
|
}
|
2018-07-30 11:06:29 -07:00
|
|
|
|
2018-08-04 13:51:22 -07:00
|
|
|
pub mod array;
|
|
|
|
pub mod array_buffer;
|
2018-09-26 08:26:00 -07:00
|
|
|
pub mod callbacks;
|
2018-07-30 11:06:29 -07:00
|
|
|
pub mod consts;
|
2018-09-26 08:26:00 -07:00
|
|
|
pub mod dictionary;
|
2018-07-30 11:06:29 -07:00
|
|
|
pub mod enums;
|
2018-09-26 08:26:00 -07:00
|
|
|
pub mod global;
|
2018-08-13 18:59:52 +03:00
|
|
|
pub mod namespace;
|
2019-04-16 10:52:27 -07:00
|
|
|
pub mod no_interface;
|
2018-07-30 11:06:29 -07:00
|
|
|
pub mod simple;
|
|
|
|
pub mod throws;
|
2020-02-26 19:00:11 -03:30
|
|
|
pub mod unstable;
|