node-sys 0.4.2

Raw bindings to the Node.js API for projects using wasm-bindgen.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::class::stream::Transform;
use wasm_bindgen::prelude::*;

#[wasm_bindgen(module = "crypto")]
extern {
    #[wasm_bindgen(extends = Transform)]
    #[derive(Clone, Debug)]
    pub type Hmac;

    #[wasm_bindgen(method)]
    pub fn digest(this: &Hmac, encoding: Option<&str>) -> JsValue;

    #[wasm_bindgen(method)]
    pub fn update(this: &Hmac, data: &JsValue, input_encoding: Option<&str>);
}