From 22fbfaf822c33a233db41283c36bbefe2ecff8a6 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 2 Jan 2025 11:30:06 +0100 Subject: [PATCH] Centrally declare the minimum supported rust version This way, cargo reports a cleaner error instead of something obscure, when building with an older version. --- Cargo.toml | 3 +++ comment-converter/Cargo.toml | 1 + mk-workflows/Cargo.toml | 1 + skia-bindings/Cargo.toml | 1 + skia-org/Cargo.toml | 1 + skia-safe/Cargo.toml | 1 + skia-svg-macros/Cargo.toml | 1 + wasm-example/Cargo.toml | 1 + 8 files changed, 10 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index adfb68601..8b414c7bb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,9 @@ members = [ "comment-converter", ] +[workspace.package] +rust-version = "1.82" + [profile.release] # We want to build skia-org with with lto="thin" # https://github.com/rust-skia/rust-skia/issues/565 diff --git a/comment-converter/Cargo.toml b/comment-converter/Cargo.toml index 876a21c87..62c4a2ef7 100644 --- a/comment-converter/Cargo.toml +++ b/comment-converter/Cargo.toml @@ -2,6 +2,7 @@ name = "comment-converter" version = "0.1.0" edition = "2021" +rust-version.workspace = true [dependencies] anyhow = "1.0.61" diff --git a/mk-workflows/Cargo.toml b/mk-workflows/Cargo.toml index c542fbdee..ce0395138 100644 --- a/mk-workflows/Cargo.toml +++ b/mk-workflows/Cargo.toml @@ -3,6 +3,7 @@ name = "mk-workflows" version = "0.1.0" authors = ["Armin Sander "] edition = "2021" +rust-version.workspace = true # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/skia-bindings/Cargo.toml b/skia-bindings/Cargo.toml index d09cc5374..3f4c796b9 100644 --- a/skia-bindings/Cargo.toml +++ b/skia-bindings/Cargo.toml @@ -12,6 +12,7 @@ license = "MIT" version = "0.80.1" authors = ["LongYinan ", "Armin Sander "] edition = "2021" +rust-version.workspace = true build = "build.rs" links = "skia" include = [ diff --git a/skia-org/Cargo.toml b/skia-org/Cargo.toml index 96a10d856..69c2931e6 100644 --- a/skia-org/Cargo.toml +++ b/skia-org/Cargo.toml @@ -20,6 +20,7 @@ license = "MIT" version = "1.0.0" authors = ["Armin Sander "] edition = "2021" +rust-version.workspace = true default-run = "skia-org" diff --git a/skia-safe/Cargo.toml b/skia-safe/Cargo.toml index 7e34e31f9..8a98b03fa 100644 --- a/skia-safe/Cargo.toml +++ b/skia-safe/Cargo.toml @@ -21,6 +21,7 @@ license = "MIT" version = "0.80.2" authors = ["Armin Sander "] edition = "2021" +rust-version.workspace = true [lib] doctest = false diff --git a/skia-svg-macros/Cargo.toml b/skia-svg-macros/Cargo.toml index 73e0e6df1..b3f550ef0 100644 --- a/skia-svg-macros/Cargo.toml +++ b/skia-svg-macros/Cargo.toml @@ -4,6 +4,7 @@ name = "skia-svg-macros" description = "Skia SVG Macros for Dom bindings" version = "0.1.0" edition = "2021" +rust-version.workspace = true homepage = "https://github.com/rust-skia/rust-skia" repository = "https://github.com/rust-skia/rust-skia" diff --git a/wasm-example/Cargo.toml b/wasm-example/Cargo.toml index a556e084d..0a71defae 100644 --- a/wasm-example/Cargo.toml +++ b/wasm-example/Cargo.toml @@ -2,6 +2,7 @@ name = "wasm-example" version = "0.1.0" edition = "2021" +rust-version.workspace = true [workspace]