pub struct Options {Show 15 fields
pub profile: Profile,
pub opt_level: OptLevel,
pub debug_info: DebugInfo,
pub output_type: OutputType,
pub target_triple: Option<String>,
pub output_path: Option<Utf8PathBuf>,
pub import_paths: Vec<Utf8PathBuf>,
pub library_paths: Vec<Utf8PathBuf>,
pub libraries: Vec<String>,
pub warn_all: bool,
pub deny_warnings: bool,
pub emit_kernel_report: bool,
pub dump_ir: IrDumpOptions,
pub stdlib_path: Option<Utf8PathBuf>,
pub hackage_packages: Vec<String>,
}Expand description
Compiler options that can be set via CLI or configuration.
Fields§
§profile: ProfileThe compilation profile to use.
opt_level: OptLevelOptimization level.
debug_info: DebugInfoDebug information level.
output_type: OutputTypeOutput type.
target_triple: Option<String>Target triple (e.g., “x86_64-unknown-linux-gnu”).
output_path: Option<Utf8PathBuf>Output path for compiled artifacts.
import_paths: Vec<Utf8PathBuf>Search paths for module imports.
library_paths: Vec<Utf8PathBuf>Search paths for libraries.
libraries: Vec<String>Libraries to link.
warn_all: boolEnable all warnings.
deny_warnings: boolTreat warnings as errors.
emit_kernel_report: boolGenerate kernel reports (Numeric profile).
dump_ir: IrDumpOptionsDump intermediate representations.
stdlib_path: Option<Utf8PathBuf>Path to the BHC standard library. Used for implicit Prelude loading and module resolution.
hackage_packages: Vec<String>Hackage package dependencies as “name:version” pairs.
Example: ["filepath:1.4.100.0", "directory:1.3.8.0"]
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
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 Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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