pub struct WasmConfig {
pub exclude_functions: Vec<String>,
pub exclude_types: Vec<String>,
pub type_overrides: HashMap<String, String>,
pub features: Option<Vec<String>>,
pub serde_rename_all: Option<String>,
pub type_prefix: Option<String>,
pub exclude_reexports: Vec<String>,
pub env_shims: Vec<String>,
pub extra_dependencies: HashMap<String, Value>,
pub rename_fields: HashMap<String, String>,
pub run_wrapper: Option<String>,
pub extra_lint_paths: Vec<String>,
}Fields§
§exclude_functions: Vec<String>§exclude_types: Vec<String>§type_overrides: HashMap<String, String>§features: Option<Vec<String>>§serde_rename_all: Option<String>Override the serde rename_all strategy for JSON field names (e.g. “camelCase”, “snake_case”). When set, this takes priority over the IR type-level serde_rename_all.
type_prefix: Option<String>Prefix for generated type names (e.g. “Wasm” produces WasmConversionOptions).
Defaults to "Wasm".
exclude_reexports: Vec<String>Functions to exclude from the public TypeScript re-export (index.ts) while still generating the Rust binding. Use this when a custom module provides a wrapper.
env_shims: Vec<String>Wide-character C functions to shim for WASM external scanner interop.
extra_dependencies: HashMap<String, Value>Additional Cargo dependencies for the WASM binding crate only.
rename_fields: HashMap<String, String>Per-field name remapping for this language. Key is TypeName.field_name, value is the
desired binding field name. Applied after automatic keyword escaping.
run_wrapper: Option<String>Prefix wrapper for default tool invocations. When set, prepends this string to default commands across all pipelines (lint, test, build, etc.).
extra_lint_paths: Vec<String>Extra paths to append to default lint commands (format, check, typecheck).
Trait Implementations§
Source§impl Clone for WasmConfig
impl Clone for WasmConfig
Source§fn clone(&self) -> WasmConfig
fn clone(&self) -> WasmConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more