Skip to content

Commit eff87d2

Browse files
author
Paolo Tranquilli
committed
Rust/Ruby/Python: update rustc and edition
1 parent 2edc9af commit eff87d2

File tree

13 files changed

+18
-31
lines changed

13 files changed

+18
-31
lines changed

Diff for: MODULE.bazel

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True
3535

3636
# Keep edition and version approximately in sync with internal repo.
3737
# the versions there are canonical, the versions here are used for CI in github/codeql, as well as for the vendoring of dependencies.
38-
RUST_EDITION = "2021"
38+
RUST_EDITION = "2024"
3939

40-
RUST_VERSION = "1.82.0"
40+
RUST_VERSION = "1.85.0"
4141

4242
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
4343
rust.toolchain(

Diff for: python/extractor/tsg-python/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name = "tsg-python"
55
version = "0.1.0"
66
authors = ["Taus Brock-Nannestad <[email protected]>"]
7-
edition = "2021"
7+
edition = "2024"
88

99
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
1010
[dependencies]

Diff for: python/extractor/tsg-python/rust-toolchain.toml

-7
This file was deleted.

Diff for: python/extractor/tsg-python/tsp/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ readme = "bindings/rust/README.md"
1111
keywords = ["incremental", "parsing", "python"]
1212
categories = ["parsing", "text-editors"]
1313
repository = "https://github.com/tree-sitter/tree-sitter-python"
14-
edition = "2018"
14+
edition = "2024"
1515

1616
build = "bindings/rust/build.rs"
1717
include = [

Diff for: ruby/extractor/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "codeql-extractor-ruby"
33
description = "CodeQL Ruby extractor"
44
version = "0.1.0"
55
authors = ["GitHub"]
6-
edition = "2021"
6+
edition = "2024"
77

88
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
99
[dependencies]

Diff for: ruby/extractor/rust-toolchain.toml

-7
This file was deleted.

Diff for: rust-toolchain.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# This file specifies the Rust version used to develop and test the
2+
# extractors written in rust. It is set to the lowest version of Rust
3+
# we want to support.
4+
5+
[toolchain]
6+
channel = "1.85"
7+
profile = "minimal"
8+
components = [ "clippy", "rustfmt" ]

Diff for: rust/ast-generator/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "ast-generator"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
license = "MIT"
66

77
# When updating these dependencies, run `rust/update_cargo_deps.sh`

Diff for: rust/autobuild/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "codeql-autobuilder-rust"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55

66
[dependencies]
77
codeql-extractor = { path = "../../shared/tree-sitter-extractor" }

Diff for: rust/extractor/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "codeql-rust"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
license = "MIT"
66

77
# When updating these dependencies, run `rust/update_cargo_deps.sh`

Diff for: rust/extractor/macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rust-extractor-macros"
33
version = "0.1.0"
4-
edition = "2021"
4+
edition = "2024"
55
license = "MIT"
66

77
[lib]

Diff for: shared/tree-sitter-extractor/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "codeql-extractor"
33
version = "0.2.0"
4-
edition = "2021"
4+
edition = "2024"
55
authors = ["GitHub"]
66

77
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`

Diff for: shared/tree-sitter-extractor/rust-toolchain.toml

-7
This file was deleted.

0 commit comments

Comments
 (0)