chrome-wasm-bindgen 0.0.1

chrome wasm bindgen
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{devtools::Devtools, runtime::Runtime};
use wasm_bindgen::prelude::*;

#[wasm_bindgen]
extern "C" {
    #[wasm_bindgen(extends = js_sys::Object)]
    pub type Chrome;

    #[wasm_bindgen(method, getter)]
    pub fn runtime(this: &Chrome) -> Runtime;

    #[wasm_bindgen(method, getter)]
    pub fn devtools(this: &Chrome) -> Devtools;
}