diff --git a/Cargo.toml b/Cargo.toml index 4b2d5927..5ef3f465 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,7 @@ name = "processing" version = "0.4.0" edition = "2024" +rust-version.workspace = true autoexamples = false [lints] @@ -18,6 +19,9 @@ cuda = ["dep:processing_cuda", "processing_cuda/cuda"] resolver = "3" members = ["crates/*", "tools/*"] +[workspace.package] +rust-version = "1.95" + [workspace.lints.clippy] type_complexity = "allow" too_many_arguments = "allow" diff --git a/README.md b/README.md index 59140ae4..23318519 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,12 @@ _Note: you can use any file name you want for your sketch_ You'll need to install the Rust toolchain to work on this project. Most users will want to install Rust via [`rustup`](https://rustup.rs/), which helps manage Rust toolchain versions. +libprocessing requires **Rust 1.95 or newer** (the minimum is set by `rust-version` in [`Cargo.toml`](Cargo.toml) and follows what our Bevy dependency requires). If you installed Rust a while ago, update to the latest stable toolchain before building: + +```bash +rustup update stable +``` + ### Clone the project and its submodules When cloning this repo (or your fork), don't forget to install its submodules (eg. Lygia) diff --git a/crates/processing_audio/Cargo.toml b/crates/processing_audio/Cargo.toml index d055168a..98fd4502 100644 --- a/crates/processing_audio/Cargo.toml +++ b/crates/processing_audio/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_audio" version = "0.4.0" edition = "2024" +rust-version.workspace = true [dependencies] bevy = { workspace = true } diff --git a/crates/processing_core/Cargo.toml b/crates/processing_core/Cargo.toml index 2b385477..bb388668 100644 --- a/crates/processing_core/Cargo.toml +++ b/crates/processing_core/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_core" version = "0.4.0" edition = "2024" +rust-version.workspace = true [lints] workspace = true diff --git a/crates/processing_cuda/Cargo.toml b/crates/processing_cuda/Cargo.toml index e8fdf919..359e6a6d 100644 --- a/crates/processing_cuda/Cargo.toml +++ b/crates/processing_cuda/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_cuda" version = "0.4.0" edition = "2024" +rust-version.workspace = true [lints] workspace = true diff --git a/crates/processing_ffi/Cargo.toml b/crates/processing_ffi/Cargo.toml index 3744d5e7..7fa3651c 100644 --- a/crates/processing_ffi/Cargo.toml +++ b/crates/processing_ffi/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_ffi" version = "0.4.0" edition = "2024" +rust-version.workspace = true [lints] workspace = true diff --git a/crates/processing_glfw/Cargo.toml b/crates/processing_glfw/Cargo.toml index 071752b1..0f4eac59 100644 --- a/crates/processing_glfw/Cargo.toml +++ b/crates/processing_glfw/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_glfw" version = "0.4.0" edition = "2024" +rust-version.workspace = true [lints] workspace = true diff --git a/crates/processing_input/Cargo.toml b/crates/processing_input/Cargo.toml index 87ee43a1..ebb0ca99 100644 --- a/crates/processing_input/Cargo.toml +++ b/crates/processing_input/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_input" version = "0.4.0" edition = "2024" +rust-version.workspace = true [lints] workspace = true diff --git a/crates/processing_midi/Cargo.toml b/crates/processing_midi/Cargo.toml index 62203ddb..f656f9a0 100644 --- a/crates/processing_midi/Cargo.toml +++ b/crates/processing_midi/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_midi" version = "0.4.0" edition = "2024" +rust-version.workspace = true [dependencies] bevy = { workspace = true } diff --git a/crates/processing_node/Cargo.toml b/crates/processing_node/Cargo.toml index 8f8b779e..643655bc 100644 --- a/crates/processing_node/Cargo.toml +++ b/crates/processing_node/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_node" version = "0.0.5" edition = "2024" +rust-version.workspace = true [lints] workspace = true diff --git a/crates/processing_pyo3/Cargo.toml b/crates/processing_pyo3/Cargo.toml index 6b089cc3..aa3d8075 100644 --- a/crates/processing_pyo3/Cargo.toml +++ b/crates/processing_pyo3/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_pyo3" version = "0.4.0" edition = "2024" +rust-version.workspace = true [lints] workspace = true diff --git a/crates/processing_render/Cargo.toml b/crates/processing_render/Cargo.toml index 2c9c750e..97475164 100644 --- a/crates/processing_render/Cargo.toml +++ b/crates/processing_render/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_render" version = "0.4.0" edition = "2024" +rust-version.workspace = true [lints] workspace = true diff --git a/crates/processing_wasm/Cargo.toml b/crates/processing_wasm/Cargo.toml index 721c8ef4..6bcf454b 100644 --- a/crates/processing_wasm/Cargo.toml +++ b/crates/processing_wasm/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_wasm" version = "0.4.0" edition = "2024" +rust-version.workspace = true [lib] crate-type = ["cdylib", "rlib"] diff --git a/crates/processing_webcam/Cargo.toml b/crates/processing_webcam/Cargo.toml index 7cb2a4ab..8f1afd96 100644 --- a/crates/processing_webcam/Cargo.toml +++ b/crates/processing_webcam/Cargo.toml @@ -2,6 +2,7 @@ name = "processing_webcam" version = "0.4.0" edition = "2024" +rust-version.workspace = true [lints] workspace = true diff --git a/tools/generate_stubs/Cargo.toml b/tools/generate_stubs/Cargo.toml index c735b05a..89105740 100644 --- a/tools/generate_stubs/Cargo.toml +++ b/tools/generate_stubs/Cargo.toml @@ -2,6 +2,7 @@ name = "generate_stubs" version = "0.4.0" edition = "2024" +rust-version.workspace = true publish = false [dependencies]