Skip to content

Commit

Permalink
Add optional flag to manifest for dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: hi-rustin <[email protected]>
  • Loading branch information
Rustin170506 committed Nov 19, 2023
1 parent 3135dd5 commit 95626ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/cargo-test-support/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1564,6 +1564,9 @@ impl Package {
"#,
target, kind, dep.name, dep.vers
));
if dep.optional {
manifest.push_str("optional = true\n");
}
if let Some(artifact) = &dep.artifact {
manifest.push_str(&format!("artifact = \"{}\"\n", artifact));
}
Expand Down

0 comments on commit 95626ed

Please sign in to comment.