Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Support new rustc fields #39

Merged
merged 1 commit into from Apr 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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