Skip to content

Commit

Permalink
Add #[serde(default)] to Artifact::manifest_path
Browse files Browse the repository at this point in the history
to support old Rust version like 1.48.0 which doesn't include `manifest-path` field
in `compiler-artifact` json
  • Loading branch information
messense committed Nov 20, 2022
1 parent 1af69df commit ad8bf92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ad8bf92

Please sign in to comment.