pe_assembler/formats/lib/writer/mod.rs
1/// COFF write configuration
2#[derive(Copy, Debug, Clone)]
3pub struct WriteConfig {
4 /// Whether to include debug information
5 pub include_debug_info: bool,
6 /// Whether to optimize output
7 pub optimize: bool,
8}
9
10impl Default for WriteConfig {
11 fn default() -> Self {
12 Self { include_debug_info: false, optimize: false }
13 }
14}
15
16impl WriteConfig {
17 /// Create a new write configuration
18 pub fn new() -> Self {
19 Self::default()
20 }
21}