pe_assembler/formats/lib/writer.rs
1/// COFF 写入配置
2#[derive(Copy, Debug, Clone)]
3pub struct WriteConfig {
4 /// 是否包含调试信息
5 pub include_debug_info: bool,
6 /// 是否优化输出
7 pub optimize: bool,
8}
9
10impl Default for WriteConfig {
11 fn default() -> Self {
12 Self { include_debug_info: false, optimize: true }
13 }
14}
15
16impl WriteConfig {
17 /// 创建新的写入配置
18 pub fn new() -> Self {
19 Self::default()
20 }
21}