Commit
Message
Changed Files (2)
-
modified mise.toml
diff --git a/mise.toml b/mise.toml index a4edaa2..8ef9bcb 100644 --- a/mise.toml +++ b/mise.toml @@ -54,7 +54,7 @@ outputs = ["CHANGELOG.md"] wait_for = ["clean"] description = "generates a JSON schema for abbaye.toml" run = [ - "cargo run --bin abbaye dump-schema > abbaye.schema.json && git add abbaye.schema.json", + "cargo run --bin abbaye dump-schema > abbaye.schema.json.new && mv abbaye.schema.json.new abbaye.schema.json && git add abbaye.schema.json", ] outputs = ["abbaye.schema.json"] sources = ["src/**.rs"] @@ -128,4 +128,3 @@ depends = ["abbaye"] run = [ "rsync --progress -avz --links --perms --update public/ ololduck@vit.am:public_html/abbaye/", ] -sources = ["public/"] -
modified src/builders/cargo.rs
diff --git a/src/builders/cargo.rs b/src/builders/cargo.rs index 8a44bfb..c412bd6 100644 --- a/src/builders/cargo.rs +++ b/src/builders/cargo.rs @@ -236,6 +236,9 @@ struct CargoMessage { #[derive(Deserialize)] struct CargoMessageTarget { name: String, + /// The kind(s) of the target, e.g. `["bin"]`, `["lib"]`, `["custom-build"]`. + #[serde(default)] + kind: Vec<String>, } /// Spawn `cargo build --release --message-format=json [--target <triple>] @@ -311,6 +314,15 @@ async fn run_cargo_build( continue; } + // Skip build-script artifacts (kind == ["custom-build"]). + if msg + .target + .as_ref() + .is_some_and(|t| t.kind.iter().any(|k| k == "custom-build")) + { + continue; + } + // If the caller named specific targets, restrict to those. if !config.bins.is_empty() { let target_name = msg.target.as_ref().map(|t| t.name.as_str()).unwrap_or("");