Skip to main content

Crate js_component_bindgen

Crate js_component_bindgen 

Source

Modules§

esm_bindgen
function_bindgen
intrinsics
Intrinsics used from JS
names
script
Script engines and script-only components.
source

Macros§

uwrite
Calls write! with the passed arguments and unwraps the result.
uwriteln
Calls writeln! with the passed arguments and unwraps the result.

Structs§

ComponentInfo
TranspileConfig
Extensible configuration for transpile_with_config.
TranspileConfigBuilder
Use builder syntax to set the inputs and finish with build().
TranspileOpts
Transpiled
TypeGenerationConfig
Controls declaration contracts that embedding tools may need to stabilize independently. All fields default to true; the Jco frontend selects its compatibility defaults explicitly.
TypeGenerationConfigBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

AsyncMode
BindingsMode
ExportKind
InstantiationMode

Functions§

dealias
generate_types
generate_types_with_config
Generate declarations with optional host embedding features.
get_thrown_type
Utility function for deducing whether a type can throw
transpile
Generate the JS transpilation bindgen for a given Wasm component binary Outputs the file map and import and export metadata for the Transpilation
transpile_with_config
Transpile a component with additional configuration, including an optional external Component Model runtime provider.