add cataloger for rust crates from Cargo.lock files

Signed-off-by: Weston Steimel <weston.steimel@gmail.com>
This commit is contained in:
Weston Steimel
2021-03-18 03:12:51 +00:00
parent a83d79f330
commit ba81bfe529
13 changed files with 313 additions and 0 deletions
+2
View File
@@ -11,6 +11,7 @@ const (
Python Language = "python"
Ruby Language = "ruby"
Go Language = "go"
Rust Language = "rust"
)
// AllLanguages is a set of all programming languages detected by syft.
@@ -20,6 +21,7 @@ var AllLanguages = []Language{
Python,
Ruby,
Go,
Rust,
}
// String returns the string representation of the language.