Skip to content

Commit c769c84

Browse files
author
Prabhu Subramanian
committed
Added rust crates
1 parent b76210e commit c769c84

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="appthreat-vulnerability-db",
8-
version="1.6.4",
8+
version="1.6.5",
99
author="Team AppThreat",
1010
author_email="[email protected]",
1111
description="AppThreat's vulnerability database and package search library with a built-in file based storage. CVE, GitHub, npm are the primary sources of vulnerabilities.",

vdb/lib/__init__.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@
55
from enum import Enum
66

77
# Known application package types
8-
KNOWN_PKG_TYPES = ["composer", "maven", "npm", "nuget", "pypi", "rubygems", "golang"]
8+
KNOWN_PKG_TYPES = [
9+
"composer",
10+
"maven",
11+
"npm",
12+
"nuget",
13+
"pypi",
14+
"rubygems",
15+
"golang",
16+
"crates",
17+
]
918

1019
# Maps variations of string to package types
1120
PKG_TYPES_MAP = {
@@ -16,6 +25,7 @@
1625
"pypi": ["python"],
1726
"rubygems": ["ruby"],
1827
"golang": ["go"],
28+
"crates": ["rust"],
1929
}
2030

2131
# CPE Regex

0 commit comments

Comments
 (0)