From ad8bf920a42c1a487a118875c0a37cc63d5e0174 Mon Sep 17 00:00:00 2001 From: messense Date: Sun, 20 Nov 2022 11:11:26 +0800 Subject: [PATCH] Add `#[serde(default)]` to `Artifact::manifest_path` to support old Rust version like 1.48.0 which doesn't include `manifest-path` field in `compiler-artifact` json --- src/messages.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/messages.rs b/src/messages.rs index 0b7d0f15..ea2abd25 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -35,6 +35,7 @@ pub struct Artifact { /// The package this artifact belongs to pub package_id: PackageId, /// Path to the `Cargo.toml` file + #[serde(default)] pub manifest_path: Utf8PathBuf, /// The target this artifact was compiled for pub target: Target,