diff --git a/Cargo.toml b/Cargo.toml index 9226aca03..60178306c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -111,6 +111,7 @@ rev = "de226a26e8e18edbdb1d6f986afe37bbbf35fbf4" version = "0.0.0" edition = "2021" publish = false +rust-version = "1.81.0" # min-sized-rustを元にrelease buildのサイズが小さくなるようにした # https://github.com/johnthagen/min-sized-rust diff --git a/crates/downloader/Cargo.toml b/crates/downloader/Cargo.toml index 427a1854d..d86d4f7a8 100644 --- a/crates/downloader/Cargo.toml +++ b/crates/downloader/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "downloader" edition.workspace = true +rust-version.workspace = true [[bin]] name = "download" diff --git a/crates/test_util/Cargo.toml b/crates/test_util/Cargo.toml index 329d5f603..5a6bbd7a4 100644 --- a/crates/test_util/Cargo.toml +++ b/crates/test_util/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "test_util" edition.workspace = true +rust-version.workspace = true [dependencies] libloading.workspace = true diff --git a/crates/voicevox_core/Cargo.toml b/crates/voicevox_core/Cargo.toml index 8390e1de3..8052b312a 100644 --- a/crates/voicevox_core/Cargo.toml +++ b/crates/voicevox_core/Cargo.toml @@ -3,6 +3,7 @@ name = "voicevox_core" version.workspace = true edition.workspace = true publish.workspace = true +rust-version.workspace = true [package.metadata.docs.rs] features = ["load-onnxruntime", "link-onnxruntime"] diff --git a/crates/voicevox_core_c_api/Cargo.toml b/crates/voicevox_core_c_api/Cargo.toml index 1b74bfdf5..e03d6cc4f 100644 --- a/crates/voicevox_core_c_api/Cargo.toml +++ b/crates/voicevox_core_c_api/Cargo.toml @@ -3,6 +3,7 @@ name = "voicevox_core_c_api" version.workspace = true edition.workspace = true publish.workspace = true +rust-version.workspace = true [lib] crate-type = ["cdylib"] diff --git a/crates/voicevox_core_java_api/Cargo.toml b/crates/voicevox_core_java_api/Cargo.toml index aed67c058..a34d4220a 100644 --- a/crates/voicevox_core_java_api/Cargo.toml +++ b/crates/voicevox_core_java_api/Cargo.toml @@ -3,6 +3,7 @@ name = "voicevox_core_java_api" version.workspace = true edition.workspace = true publish.workspace = true +rust-version.workspace = true [lib] crate-type = ["cdylib"] diff --git a/crates/voicevox_core_macros/Cargo.toml b/crates/voicevox_core_macros/Cargo.toml index 0f8362e77..1be131d65 100644 --- a/crates/voicevox_core_macros/Cargo.toml +++ b/crates/voicevox_core_macros/Cargo.toml @@ -3,6 +3,7 @@ name = "voicevox_core_macros" version.workspace = true edition.workspace = true publish.workspace = true +rust-version.workspace = true [lib] name = "macros" diff --git a/crates/voicevox_core_python_api/Cargo.toml b/crates/voicevox_core_python_api/Cargo.toml index a2c6f7405..00e1e0d4e 100644 --- a/crates/voicevox_core_python_api/Cargo.toml +++ b/crates/voicevox_core_python_api/Cargo.toml @@ -3,6 +3,7 @@ name = "voicevox_core_python_api" version = "0.0.0" edition.workspace = true publish.workspace = true +rust-version.workspace = true [lib] crate-type = ["cdylib"] diff --git a/crates/xtask/Cargo.toml b/crates/xtask/Cargo.toml index 63d14515a..9fafb2aec 100644 --- a/crates/xtask/Cargo.toml +++ b/crates/xtask/Cargo.toml @@ -1,6 +1,7 @@ [package] name = "xtask" edition.workspace = true +rust-version.workspace = true [dependencies] cbindgen.workspace = true diff --git a/renovate.json5 b/renovate.json5 index 6fc45ac18..0d1e00acd 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -86,5 +86,17 @@ packageNameTemplate: "rust-lang/rust", datasourceTemplate: "github-tags", }, + { + customType: "regex", + fileMatch: [ + "^Cargo.toml$", + ], + matchStrings: [ + "rust-version = \"(?\\d+\\.\\d+\\.\\d+)\"", + ], + depNameTemplate: "Rust", + packageNameTemplate: "rust-lang/rust", + datasourceTemplate: "github-tags", + }, ], }