Added a todo.

Fixed ast being printed with `#?`
This commit is contained in:
Filipe Rodrigues 2022-09-26 09:11:46 +01:00
parent 24572190ad
commit b07fbe063b
2 changed files with 3 additions and 1 deletions

View File

@ -112,7 +112,7 @@ async fn main() -> Result<(), anyhow::Error> {
.await
.map_err(AppError::read_file(&zbuild_path))?;
let ast = serde_yaml::from_str::<Ast>(&zbuild_file).map_err(AppError::parse_yaml(&zbuild_path))?;
tracing::trace!(target: "zbuild_ast", "Parsed ast: {ast:#?}");
tracing::trace!(target: "zbuild_ast", ?ast, "Parsed ast");
// Build the rules
let rules = Rules::new(ast);

View File

@ -2,6 +2,8 @@
// TODO: Should we react when rule outputs are changed, or only on leaf-dependencies
// TODO: Output dependencies aren't considered here, if they didn't exist when the file was first built.
// Imports
use {
crate::{build, rules::Target, AppError, Builder, Rules},