diff --git a/Cargo.toml b/Cargo.toml index b745763..5be88ab 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,7 +23,7 @@ once_cell = "1.2.0" log = "0.4" [dev-dependencies] -assert_fs = "0.13" +assert_fs = "1.0" [features] # Upcoming features in cargo. diff --git a/src/format/mod.rs b/src/format/mod.rs index cf0f40e..efc16a5 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -50,8 +50,8 @@ pub struct Artifact<'a> { #[serde(borrow)] pub filenames: Vec>, /// The full paths to the generated artifacts - #[cfg(feature = "cargo_unstable")] #[serde(borrow)] + #[serde(default)] pub executable: Option>, /// If true, then the files were already generated pub fresh: bool, @@ -75,6 +75,9 @@ pub struct Target<'a> { #[serde(default)] #[serde(borrow)] pub crate_types: Vec>, + /// Whether this is a doctest or not + #[serde(default)] + pub doctest: Option, #[serde(default)] #[serde(rename = "required-features")] @@ -156,6 +159,10 @@ pub struct BuildScript<'a> { /// The workspace member this build script execution belongs to #[serde(borrow)] pub package_id: WorkspaceMember<'a>, + /// The outdir used. + #[serde(borrow)] + #[serde(default)] + pub out_dir: Option>, /// The libs to link #[serde(borrow)] pub linked_libs: Vec>,