mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Rust/Ruby/Python: update rustc and edition
This commit is contained in:
@@ -35,9 +35,9 @@ bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True
|
|||||||
|
|
||||||
# Keep edition and version approximately in sync with internal repo.
|
# Keep edition and version approximately in sync with internal repo.
|
||||||
# the versions there are canonical, the versions here are used for CI in github/codeql, as well as for the vendoring of dependencies.
|
# the versions there are canonical, the versions here are used for CI in github/codeql, as well as for the vendoring of dependencies.
|
||||||
RUST_EDITION = "2021"
|
RUST_EDITION = "2024"
|
||||||
|
|
||||||
RUST_VERSION = "1.82.0"
|
RUST_VERSION = "1.85.0"
|
||||||
|
|
||||||
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
|
rust = use_extension("@rules_rust//rust:extensions.bzl", "rust")
|
||||||
rust.toolchain(
|
rust.toolchain(
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
name = "tsg-python"
|
name = "tsg-python"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["Taus Brock-Nannestad <tausbn@github.com>"]
|
authors = ["Taus Brock-Nannestad <tausbn@github.com>"]
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
|
||||||
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
|
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file specifies the Rust version used to develop and test the Python
|
|
||||||
# extractor. It is set to the lowest version of Rust we want to support.
|
|
||||||
|
|
||||||
[toolchain]
|
|
||||||
channel = "1.74"
|
|
||||||
profile = "minimal"
|
|
||||||
components = [ "rustfmt" ]
|
|
||||||
@@ -11,7 +11,7 @@ readme = "bindings/rust/README.md"
|
|||||||
keywords = ["incremental", "parsing", "python"]
|
keywords = ["incremental", "parsing", "python"]
|
||||||
categories = ["parsing", "text-editors"]
|
categories = ["parsing", "text-editors"]
|
||||||
repository = "https://github.com/tree-sitter/tree-sitter-python"
|
repository = "https://github.com/tree-sitter/tree-sitter-python"
|
||||||
edition = "2018"
|
edition = "2024"
|
||||||
|
|
||||||
build = "bindings/rust/build.rs"
|
build = "bindings/rust/build.rs"
|
||||||
include = [
|
include = [
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ name = "codeql-extractor-ruby"
|
|||||||
description = "CodeQL Ruby extractor"
|
description = "CodeQL Ruby extractor"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["GitHub"]
|
authors = ["GitHub"]
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
|
||||||
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
|
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file specifies the Rust version used to develop and test the Ruby
|
|
||||||
# extractor. It is set to the lowest version of Rust we want to support.
|
|
||||||
|
|
||||||
[toolchain]
|
|
||||||
channel = "1.74"
|
|
||||||
profile = "minimal"
|
|
||||||
components = [ "rustfmt" ]
|
|
||||||
8
rust-toolchain.toml
Normal file
8
rust-toolchain.toml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# This file specifies the Rust version used to develop and test the
|
||||||
|
# extractors written in rust. It is set to the lowest version of Rust
|
||||||
|
# we want to support.
|
||||||
|
|
||||||
|
[toolchain]
|
||||||
|
channel = "1.85"
|
||||||
|
profile = "minimal"
|
||||||
|
components = [ "clippy", "rustfmt" ]
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "ast-generator"
|
name = "ast-generator"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
# When updating these dependencies, run `rust/update_cargo_deps.sh`
|
# When updating these dependencies, run `rust/update_cargo_deps.sh`
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "codeql-autobuilder-rust"
|
name = "codeql-autobuilder-rust"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
codeql-extractor = { path = "../../shared/tree-sitter-extractor" }
|
codeql-extractor = { path = "../../shared/tree-sitter-extractor" }
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "codeql-rust"
|
name = "codeql-rust"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
# When updating these dependencies, run `rust/update_cargo_deps.sh`
|
# When updating these dependencies, run `rust/update_cargo_deps.sh`
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "rust-extractor-macros"
|
name = "rust-extractor-macros"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "codeql-extractor"
|
name = "codeql-extractor"
|
||||||
version = "0.2.0"
|
version = "0.2.0"
|
||||||
edition = "2021"
|
edition = "2024"
|
||||||
authors = ["GitHub"]
|
authors = ["GitHub"]
|
||||||
|
|
||||||
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
|
# When updating these dependencies, run `misc/bazel/3rdparty/update_cargo_deps.sh`
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
# This file specifies the Rust version used to develop and test the shared
|
|
||||||
# extractor. It is set to the lowest version of Rust we want to support.
|
|
||||||
|
|
||||||
[toolchain]
|
|
||||||
channel = "1.74"
|
|
||||||
profile = "minimal"
|
|
||||||
components = [ "clippy", "rustfmt" ]
|
|
||||||
Reference in New Issue
Block a user