Skip to content

Commit

Permalink
Merge pull request #39 from epage/update
Browse files Browse the repository at this point in the history
feat: Support new rustc fields
  • Loading branch information
epage committed Apr 1, 2020
2 parents 829feb1 + e0b26c9 commit 5540e97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -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.
Expand Down
9 changes: 8 additions & 1 deletion src/format/mod.rs
Expand Up @@ -50,8 +50,8 @@ pub struct Artifact<'a> {
#[serde(borrow)]
pub filenames: Vec<CowPath<'a>>,
/// The full paths to the generated artifacts
#[cfg(feature = "cargo_unstable")]
#[serde(borrow)]
#[serde(default)]
pub executable: Option<CowPath<'a>>,
/// If true, then the files were already generated
pub fresh: bool,
Expand All @@ -75,6 +75,9 @@ pub struct Target<'a> {
#[serde(default)]
#[serde(borrow)]
pub crate_types: Vec<CowStr<'a>>,
/// Whether this is a doctest or not
#[serde(default)]
pub doctest: Option<bool>,

#[serde(default)]
#[serde(rename = "required-features")]
Expand Down Expand Up @@ -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<CowPath<'a>>,
/// The libs to link
#[serde(borrow)]
pub linked_libs: Vec<CowStr<'a>>,
Expand Down

0 comments on commit 5540e97

Please sign in to comment.