Skip to content

Commit 0943389

Browse files
author
Paolo Tranquilli
committed
Rust: add rust-specific deps updater script
1 parent e077bf0 commit 0943389

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

rust/ast-generator/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "ast-generator"
33
version = "0.1.0"
44
edition = "2021"
55

6-
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
6+
# When updating these dependencies, run `rust/update_cargo_deps.sh`
77
[dependencies]
88
ungrammar = "1.16.1"
99
proc-macro2 = "1.0.33"

rust/extractor/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "codeql-rust"
33
version = "0.1.0"
44
edition = "2021"
55

6-
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
6+
# When updating these dependencies, run `rust/update_cargo_deps.sh`
77
[dependencies]
88
anyhow = "1.0.86"
99
clap = { version = "4.5.16", features = ["derive"] }

rust/extractor/macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2021"
66
[lib]
77
proc-macro = true
88

9-
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
9+
# When updating these dependencies, run `rust/update_cargo_deps.sh`
1010
[dependencies]
1111
quote = "1.0.37"
1212
syn = { version = "2.0.77", features = ["full"] }

rust/update_cargo_deps.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
6+
7+
cd "$SCRIPT_DIR/.."
8+
time bazel run //misc/bazel/3rdparty:vendor_tree_sitter_extractors
9+
bazel mod tidy

0 commit comments

Comments
 (0)