[−][src]Function wasm_bindgen_webidl::generate
pub fn generate(from: &Path, to: &Path, options: Options) -> Result<String>
Generates Rust source code with #[wasm_bindgen] annotations.
- Reads WebIDL files in
from
- Generates Rust source code in the directory
to
options.features
indicates whether everything is gated by features or not
If features are enabled, returns a string that should be appended to
Cargo.toml
which lists all the known features.