Skip to content

Commit

Permalink
Centrally declare the minimum supported rust version
Browse files Browse the repository at this point in the history
This way, cargo reports a cleaner error instead of something obscure,
when building with an older version.
  • Loading branch information
tronical committed Jan 2, 2025
1 parent 2406042 commit 22fbfaf
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions comment-converter/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "comment-converter"
version = "0.1.0"
edition = "2021"
rust-version.workspace = true

[dependencies]
anyhow = "1.0.61"
Expand Down
1 change: 1 addition & 0 deletions mk-workflows/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "mk-workflows"
version = "0.1.0"
authors = ["Armin Sander <[email protected]>"]
edition = "2021"
rust-version.workspace = true

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
1 change: 1 addition & 0 deletions skia-bindings/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ license = "MIT"
version = "0.80.1"
authors = ["LongYinan <[email protected]>", "Armin Sander <[email protected]>"]
edition = "2021"
rust-version.workspace = true
build = "build.rs"
links = "skia"
include = [
Expand Down
1 change: 1 addition & 0 deletions skia-org/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ license = "MIT"
version = "1.0.0"
authors = ["Armin Sander <[email protected]>"]
edition = "2021"
rust-version.workspace = true

default-run = "skia-org"

Expand Down
1 change: 1 addition & 0 deletions skia-safe/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ license = "MIT"
version = "0.80.2"
authors = ["Armin Sander <[email protected]>"]
edition = "2021"
rust-version.workspace = true

[lib]
doctest = false
Expand Down
1 change: 1 addition & 0 deletions skia-svg-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions wasm-example/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "wasm-example"
version = "0.1.0"
edition = "2021"
rust-version.workspace = true

[workspace]

Expand Down

0 comments on commit 22fbfaf

Please sign in to comment.