#[derive(Clone)]
pub struct CompilerOptions {
pub strict: bool,
pub infer_types: bool,
pub block_scope: bool,
pub asdoc_markdown: bool,
pub warnings: CompilerWarningOptions,
}
#[derive(Clone)]
#[non_exhaustive]
pub struct CompilerWarningOptions {
pub unused: bool,
}
impl Default for CompilerOptions {
fn default() -> Self {
Self {
strict: true,
infer_types: true,
block_scope: true,
asdoc_markdown: true,
warnings: Default::default(),
}
}
}
impl Default for CompilerWarningOptions {
fn default() -> Self {
Self {
unused: true,
}
}
}