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
  • Loading branch information
Muscraft committed Mar 1, 2023
1 parent 64b0e79 commit a32af2f
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 a32af2f

Please sign in to comment.