#[non_exhaustive]pub struct TranspileConfig {
pub opts: TranspileOpts,
pub cm_runtime_es_module: Option<String>,
}Expand description
Extensible configuration for transpile_with_config.
TranspileOpts keeps its published fields so existing struct literals remain
valid. New options belong here, where fields can be added compatibly.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.opts: TranspileOptsOptions shared with transpile and generate_types.
cm_runtime_es_module: Option<String>Package or directory base for the experimental Component Model runtime.
Generated bindings import named exports from runtime and intrinsics/* subpaths.
Intrinsics are generated inline when this is None (the default).
Requires the external-runtime Cargo feature.
Implementations§
Source§impl TranspileConfig
impl TranspileConfig
Sourcepub fn builder() -> TranspileConfigBuilder
pub fn builder() -> TranspileConfigBuilder
Create an instance of TranspileConfig using the builder syntax
Trait Implementations§
Source§impl Clone for TranspileConfig
impl Clone for TranspileConfig
Source§impl Debug for TranspileConfig
impl Debug for TranspileConfig
Auto Trait Implementations§
impl Freeze for TranspileConfig
impl RefUnwindSafe for TranspileConfig
impl Send for TranspileConfig
impl Sync for TranspileConfig
impl Unpin for TranspileConfig
impl UnsafeUnpin for TranspileConfig
impl UnwindSafe for TranspileConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more