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 2ccd950 commit 47cb573
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 47cb573

Please sign in to comment.