Skip to content

Commit 21a2dda

Browse files
xinemataclaude
andauthored
Declare minimum Rust version (1.95) and document it (#270)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 8650216 commit 21a2dda

15 files changed

Lines changed: 23 additions & 0 deletions

File tree

‎Cargo.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "processing"
33
version = "0.4.0"
44
edition = "2024"
5+
rust-version.workspace = true
56
autoexamples = false
67

78
[lints]
@@ -18,6 +19,9 @@ cuda = ["dep:processing_cuda", "processing_cuda/cuda"]
1819
resolver = "3"
1920
members = ["crates/*", "tools/*"]
2021

22+
[workspace.package]
23+
rust-version = "1.95"
24+
2125
[workspace.lints.clippy]
2226
type_complexity = "allow"
2327
too_many_arguments = "allow"

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ _Note: you can use any file name you want for your sketch_
7777

7878
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.
7979

80+
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:
81+
82+
```bash
83+
rustup update stable
84+
```
85+
8086
### Clone the project and its submodules
8187

8288
When cloning this repo (or your fork), don't forget to install its submodules (eg. Lygia)

‎crates/processing_audio/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "processing_audio"
33
version = "0.4.0"
44
edition = "2024"
5+
rust-version.workspace = true
56

67
[dependencies]
78
bevy = { workspace = true }

‎crates/processing_core/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "processing_core"
33
version = "0.4.0"
44
edition = "2024"
5+
rust-version.workspace = true
56

67
[lints]
78
workspace = true

‎crates/processing_cuda/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "processing_cuda"
33
version = "0.4.0"
44
edition = "2024"
5+
rust-version.workspace = true
56

67
[lints]
78
workspace = true

‎crates/processing_ffi/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "processing_ffi"
33
version = "0.4.0"
44
edition = "2024"
5+
rust-version.workspace = true
56

67
[lints]
78
workspace = true

‎crates/processing_glfw/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "processing_glfw"
33
version = "0.4.0"
44
edition = "2024"
5+
rust-version.workspace = true
56

67
[lints]
78
workspace = true

‎crates/processing_input/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "processing_input"
33
version = "0.4.0"
44
edition = "2024"
5+
rust-version.workspace = true
56

67
[lints]
78
workspace = true

‎crates/processing_midi/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "processing_midi"
33
version = "0.4.0"
44
edition = "2024"
5+
rust-version.workspace = true
56

67
[dependencies]
78
bevy = { workspace = true }

‎crates/processing_node/Cargo.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
name = "processing_node"
33
version = "0.0.5"
44
edition = "2024"
5+
rust-version.workspace = true
56

67
[lints]
78
workspace = true

0 commit comments

Comments
 (0)