pub struct PluginOptions {Show 19 fields
pub should_compile: bool,
pub enable_reanimated: bool,
pub is_dev: bool,
pub filename: Option<String>,
pub compilation_mode: String,
pub panic_threshold: String,
pub target: CompilerTarget,
pub gating: Option<GatingConfig>,
pub dynamic_gating: Option<DynamicGatingConfig>,
pub no_emit: bool,
pub output_mode: Option<String>,
pub eslint_suppression_rules: Option<Vec<String>>,
pub flow_suppressions: bool,
pub ignore_use_no_forget: bool,
pub custom_opt_out_directives: Option<Vec<String>>,
pub environment: EnvironmentConfig,
pub source_code: Option<String>,
pub profiling: bool,
pub debug: bool,
}Expand description
Serializable plugin options, pre-resolved by the JS shim. JS-only values (sources function, logger, etc.) are resolved before being sent to Rust.
Fields§
§should_compile: bool§enable_reanimated: bool§is_dev: bool§filename: Option<String>§compilation_mode: String§panic_threshold: String§target: CompilerTarget§gating: Option<GatingConfig>§dynamic_gating: Option<DynamicGatingConfig>§no_emit: bool§output_mode: Option<String>§eslint_suppression_rules: Option<Vec<String>>§flow_suppressions: bool§ignore_use_no_forget: bool§custom_opt_out_directives: Option<Vec<String>>§environment: EnvironmentConfig§source_code: Option<String>Source code of the file being compiled (passed from Babel plugin for fast refresh hash).
profiling: boolEnable profiling timing data collection.
debug: boolEnable debug logging (HIR formatting after each pass). Only set to true when a logger with debugLogIRs is configured on the JS side.
Trait Implementations§
Source§impl Clone for PluginOptions
impl Clone for PluginOptions
Source§fn clone(&self) -> PluginOptions
fn clone(&self) -> PluginOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PluginOptions
impl Debug for PluginOptions
Source§impl<'de> Deserialize<'de> for PluginOptions
impl<'de> Deserialize<'de> for PluginOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PluginOptions
impl RefUnwindSafe for PluginOptions
impl Send for PluginOptions
impl Sync for PluginOptions
impl Unpin for PluginOptions
impl UnsafeUnpin for PluginOptions
impl UnwindSafe for PluginOptions
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