Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions config-build/src/emit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ pub(crate) fn registry(config: &SpecConfig, name: &str) -> Result<String, Vec<St
let _ = writeln!(body, "{}", prop_meta(key, prop, &mut problems));
}

let settings = crate::settings::settings(&props, &idents, &mut problems);

if !problems.is_empty() {
return Err(problems);
}
Expand Down Expand Up @@ -70,6 +72,7 @@ pub(crate) fn registry(config: &SpecConfig, name: &str) -> Result<String, Vec<St
let _ = writeln!(out, " pub const {ident}: PropId = PropId({index});");
}
let _ = writeln!(out, "}}");
out.push_str(&settings);
Ok(out)
}

Expand Down
1 change: 1 addition & 0 deletions config-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ use std::path::{Path, PathBuf};
use std::str::FromStr as _;

mod emit;
mod settings;

/// Read `spec` and write the registry to `$OUT_DIR/settings.rs`.
///
Expand Down
Loading