Skip to content

Commit eac7ff6

Browse files
authored
Add rust-toolchain.toml and bump to Rust 1.94 (#485)
* Introduce `rust-toolchain.toml` So all CI builds and all local builds use the same Rust version * Bump to Rust 1.94 Which is required for let chains, which we use!
1 parent 68259fc commit eac7ff6

6 files changed

Lines changed: 4 additions & 11 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: "Build Linux"
33
on:
44
workflow_call:
55

6-
env:
7-
RUST_TOOLCHAIN: "1.87"
8-
96
jobs:
107
build:
118
name: "Build Linux (${{ matrix.this.target }})"

.github/workflows/build-mac.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: "Build macOS"
33
on:
44
workflow_call:
55

6-
env:
7-
RUST_TOOLCHAIN: "1.87"
8-
96
jobs:
107
build:
118
name: "Build macOS (${{ matrix.this.target }})"

.github/workflows/build-windows.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@ name: "Build Windows"
33
on:
44
workflow_call:
55

6-
env:
7-
RUST_TOOLCHAIN: "1.87"
8-
96
jobs:
107
build:
118
name: "Build Windows (${{ matrix.this.target }})"

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Air is an R language server and formatter written in Rust. Workspace crate layout under `crates/` with a CLI binary in `crates/air/`.
66

7-
- Edition 2024, Rust 1.87+
7+
- Rust edition and version are reported in workspace level `Cargo.toml`
88
- Uses `biome_formatter` for the formatting engine and `ignore` crate for file walking
99
- Config file: `air.toml` discovered by walking up directory ancestors
1010
- Snapshot testing with `insta`

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ members = ["crates/*", "editors/zed", "xtask/codegen"]
55
[workspace.package]
66
authors = ["Posit Software, PBC"]
77
edition = "2024"
8-
rust-version = "1.87"
8+
rust-version = "1.94"
99
homepage = "https://github.com/posit-dev/air"
1010
repository = "https://github.com/posit-dev/air"
1111
license = "MIT"

rust-toolchain.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[toolchain]
2+
channel = "1.94"

0 commit comments

Comments
 (0)