Struct wasm_bindgen_cli_support::Bindgen [−][src]
pub struct Bindgen { /* fields omitted */ }
Methods
impl Bindgen
[src]
impl Bindgen
pub fn new() -> Bindgen
[src]
pub fn new() -> Bindgen
pub fn input_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Bindgen
[src]
pub fn input_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Bindgen
pub fn input_module<T: Any>(
&mut self,
name: &str,
module: T,
into_bytes: impl FnOnce(T) -> Vec<u8>
) -> &mut Bindgen
[src]
pub fn input_module<T: Any>(
&mut self,
name: &str,
module: T,
into_bytes: impl FnOnce(T) -> Vec<u8>
) -> &mut Bindgen
Explicitly specify the already parsed input module.
Note that this API is a little wonky to avoid tying itself with a public
dependency on the parity-wasm
crate, what we currently use to parse
wasm mdoules.
If the module
argument is a parity_wasm::Module
then it will be used
directly. Otherwise it will be passed to into_bytes
to serialize the
module to a vector of bytes, and this will deserialize the module later.
Note that even if the argument passed in is a parity_wasm::Module
it
doesn't mean that this won't invoke into_bytes
, if the parity_wasm
crate versions are different we'll have to go through serialization.
pub fn nodejs(&mut self, node: bool) -> &mut Bindgen
[src]
pub fn nodejs(&mut self, node: bool) -> &mut Bindgen
pub fn nodejs_experimental_modules(&mut self, node: bool) -> &mut Bindgen
[src]
pub fn nodejs_experimental_modules(&mut self, node: bool) -> &mut Bindgen
pub fn browser(&mut self, browser: bool) -> &mut Bindgen
[src]
pub fn browser(&mut self, browser: bool) -> &mut Bindgen
pub fn no_modules(&mut self, no_modules: bool) -> &mut Bindgen
[src]
pub fn no_modules(&mut self, no_modules: bool) -> &mut Bindgen
pub fn no_modules_global(&mut self, name: &str) -> &mut Bindgen
[src]
pub fn no_modules_global(&mut self, name: &str) -> &mut Bindgen
pub fn debug(&mut self, debug: bool) -> &mut Bindgen
[src]
pub fn debug(&mut self, debug: bool) -> &mut Bindgen
pub fn typescript(&mut self, typescript: bool) -> &mut Bindgen
[src]
pub fn typescript(&mut self, typescript: bool) -> &mut Bindgen
pub fn demangle(&mut self, demangle: bool) -> &mut Bindgen
[src]
pub fn demangle(&mut self, demangle: bool) -> &mut Bindgen
pub fn keep_debug(&mut self, keep_debug: bool) -> &mut Bindgen
[src]
pub fn keep_debug(&mut self, keep_debug: bool) -> &mut Bindgen
pub fn generate<P: AsRef<Path>>(&mut self, path: P) -> Result<(), Error>
[src]
pub fn generate<P: AsRef<Path>>(&mut self, path: P) -> Result<(), Error>