@@ -6,6 +6,7 @@ export enum QueryLanguage {
6
6
Javascript = "javascript" ,
7
7
Python = "python" ,
8
8
Ruby = "ruby" ,
9
+ Rust = "rust" ,
9
10
Swift = "swift" ,
10
11
}
11
12
@@ -25,6 +26,8 @@ export function getLanguageDisplayName(language: string): string {
25
26
return "Python" ;
26
27
case QueryLanguage . Ruby :
27
28
return "Ruby" ;
29
+ case QueryLanguage . Rust :
30
+ return "Rust" ;
28
31
case QueryLanguage . Swift :
29
32
return "Swift" ;
30
33
default :
@@ -43,6 +46,7 @@ export const PACKS_BY_QUERY_LANGUAGE = {
43
46
[ QueryLanguage . Javascript ] : [ "codeql/javascript-queries" ] ,
44
47
[ QueryLanguage . Python ] : [ "codeql/python-queries" ] ,
45
48
[ QueryLanguage . Ruby ] : [ "codeql/ruby-queries" ] ,
49
+ [ QueryLanguage . Rust ] : [ "codeql/rust-queries" ] ,
46
50
} ;
47
51
48
52
export const dbSchemeToLanguage : Record < string , QueryLanguage > = {
@@ -53,6 +57,7 @@ export const dbSchemeToLanguage: Record<string, QueryLanguage> = {
53
57
"semmlecode.csharp.dbscheme" : QueryLanguage . CSharp ,
54
58
"go.dbscheme" : QueryLanguage . Go ,
55
59
"ruby.dbscheme" : QueryLanguage . Ruby ,
60
+ "rust.dbscheme" : QueryLanguage . Rust ,
56
61
"swift.dbscheme" : QueryLanguage . Swift ,
57
62
} ;
58
63
0 commit comments