@@ -158,7 +158,7 @@ pub struct Metadata {
158
158
/// The list of default workspace members
159
159
///
160
160
/// This not available if running with a version of Cargo older than 1.71.
161
- #[ serde( skip_serializing_if = "workspace_default_members_is_missing" ) ]
161
+ #[ serde( default , skip_serializing_if = "workspace_default_members_is_missing" ) ]
162
162
pub workspace_default_members : WorkspaceDefaultMembers ,
163
163
/// Dependencies graph
164
164
pub resolve : Option < Resolve > ,
@@ -224,7 +224,7 @@ impl<'a> std::ops::Index<&'a PackageId> for Metadata {
224
224
}
225
225
}
226
226
227
- #[ derive( Clone , Debug , Deserialize , Serialize , PartialEq , Eq , Hash ) ]
227
+ #[ derive( Clone , Debug , Deserialize , Serialize , PartialEq , Eq , Hash , Default ) ]
228
228
#[ serde( transparent) ]
229
229
/// A list of default workspace members.
230
230
///
@@ -728,6 +728,7 @@ impl fmt::Display for TargetKind {
728
728
729
729
/// Similar to `kind`, but only reports the
730
730
/// [Cargo crate types](https://doc.rust-lang.org/cargo/reference/cargo-targets.html#the-crate-type-field):
731
+ ///
731
732
/// `bin`, `lib`, `rlib`, `dylib`, `cdylib`, `staticlib`, `proc-macro`.
732
733
/// Everything that's not a proc macro or a library of some kind is reported as "bin".
733
734
///
0 commit comments