Skip to content

Commit

Permalink
fix(toml): Provide a way to show unused manifest keys for workspace i…
Browse files Browse the repository at this point in the history
…nheritance

(cherry picked from commit a32af2f)
  • Loading branch information
Muscraft committed Mar 6, 2023
1 parent 9880b40 commit de0468f
Show file tree
Hide file tree
Showing 6 changed files with 513 additions and 68 deletions.
10 changes: 10 additions & 0 deletions src/cargo/core/dependency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,16 @@ pub enum DepKind {
Build,
}

impl DepKind {
pub fn kind_table(&self) -> &'static str {
match self {
DepKind::Normal => "dependencies",
DepKind::Development => "dev-dependencies",
DepKind::Build => "build-dependencies",
}
}
}

impl ser::Serialize for DepKind {
fn serialize<S>(&self, s: S) -> Result<S::Ok, S::Error>
where
Expand Down
Loading

0 comments on commit de0468f

Please sign in to comment.