Skip to content

Commit 01d4c0f

Browse files
authored
Merge pull request #19167 from github/redsun82/rust-upgrades-downgrades
Rust: introduce upgrades/downgrades infrastructure
2 parents c829925 + 7821fbf commit 01d4c0f

File tree

6 files changed

+7221
-1
lines changed

6 files changed

+7221
-1
lines changed

Diff for: misc/scripts/prepare-db-upgrade.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ case "${lang}" in
8686
csharp | cpp | javascript | python)
8787
scheme_file="${lang}/ql/lib/semmlecode.${lang}.dbscheme"
8888
;;
89-
go | ruby | swift)
89+
go | ruby | rust | swift)
9090
scheme_file="${lang}/ql/lib/${lang}.dbscheme"
9191
;;
9292
*)

Diff for: rust/BUILD.bazel

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ codeql_pack(
5555
srcs = [
5656
":root-files",
5757
":tools",
58+
"//rust/downgrades",
5859
],
5960
experimental = True,
6061
)

Diff for: rust/downgrades/BUILD.bazel

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
load("@rules_pkg//pkg:mappings.bzl", "pkg_files", "strip_prefix")
2+
3+
pkg_files(
4+
name = "downgrades",
5+
srcs = glob(
6+
["**"],
7+
exclude = ["BUILD.bazel"],
8+
),
9+
prefix = "downgrades",
10+
strip_prefix = strip_prefix.from_pkg(),
11+
visibility = ["//rust:__pkg__"],
12+
)

0 commit comments

Comments
 (0)