rusty_javac/compiler/config.rs
1pub struct CompilerConfig {
2 pub java_version: u32,
3 pub output_dir: String,
4 pub classpath: Vec<String>,
5 pub source_files: Vec<String>,
6 pub incremental: bool,
7}
8
9impl CompilerConfig {
10 pub fn new() -> Self {
11 Self {
12 java_version: 21,
13 output_dir: ".".to_string(),
14 classpath: Vec::new(),
15 source_files: Vec::new(),
16 incremental: false,
17 }
18 }
19}
20
21impl Default for CompilerConfig {
22 fn default() -> Self {
23 Self::new()
24 }
25}