1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
use interoptopus::util::NamespaceMappings;
#[derive(Clone, Debug)]
pub struct Config {
pub file_header_comment: String,
pub class: String,
pub dll_name: String,
pub namespace_mappings: NamespaceMappings,
pub namespace_id: String,
pub emit_rust_visibility: bool,
pub unroll_struct_arrays: bool,
pub write_global_types: bool,
pub debug: bool,
}
impl Config {}
impl Default for Config {
fn default() -> Self {
Self {
file_header_comment: "// Automatically generated by Interoptopus.".to_string(),
class: "Interop".to_string(),
dll_name: "library".to_string(),
namespace_mappings: NamespaceMappings::new("My.Company"),
namespace_id: "".to_string(),
emit_rust_visibility: false,
unroll_struct_arrays: false,
write_global_types: true,
debug: false,
}
}
}