Skip to content

Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.

build: pin Rust per crate folder instead of at the repo root

leepokai09226330d209
diff --git a/.github/workflows/release-desktop.yml b/.github/workflows/release-desktop.yml
index 7e5275d0..5146135d 100644
--- a/.github/workflows/release-desktop.yml
+++ b/.github/workflows/release-desktop.yml
@@ -78,9 +78,11 @@ jobs:
node-version: 24
cache: npm
cache-dependency-path: apps/desktop/package-lock.json
- - name: Install Rust (rust-toolchain.toml)
+ - name: Install Rust (host/rust-toolchain.toml)
+ working-directory: host
run: rustup toolchain install
- run: rustup target add aarch64-apple-darwin x86_64-apple-darwin
+ working-directory: host
- uses: Swatinem/rust-cache@v2
with:
workspaces: host
@@ -194,7 +196,8 @@ jobs:
node-version: 24
cache: npm
cache-dependency-path: apps/desktop/package-lock.json
- - name: Install Rust (rust-toolchain.toml)
+ - name: Install Rust (host/rust-toolchain.toml)
+ working-directory: host
run: rustup toolchain install
- uses: Swatinem/rust-cache@v2
with:
diff --git a/.github/workflows/rust-cache.yml b/.github/workflows/rust-cache.yml
index 7f68dd9e..2776fc7d 100644
--- a/.github/workflows/rust-cache.yml
+++ b/.github/workflows/rust-cache.yml
@@ -6,7 +6,7 @@ name: Rust cache
on:
push:
branches: [main]
- paths: ["host/Cargo.lock", "rust-toolchain.toml", ".github/workflows/rust-cache.yml"]
+ paths: ["host/Cargo.lock", "host/rust-toolchain.toml", ".github/workflows/rust-cache.yml"]
workflow_dispatch:
jobs:
diff --git a/apps/screen-linux/rust-toolchain.toml b/apps/screen-linux/rust-toolchain.toml
new file mode 100644
index 00000000..42e91d10
--- /dev/null
+++ b/apps/screen-linux/rust-toolchain.toml
@@ -0,0 +1,6 @@
+# Pinned so a new stable release can't break clippy -D warnings overnight.
+# Keep the version equal to host/rust-toolchain.toml (docs/guides/development.md#rust-toolchain).
+# Bump deliberately: change both, run clippy on both, commit.
+[toolchain]
+channel = "1.99.0"
+components = ["clippy", "rustfmt"]
diff --git a/docs/guides/development.md b/docs/guides/development.md
index 57fd5514..d4b28f2c 100644
--- a/docs/guides/development.md
+++ b/docs/guides/development.md
@@ -100,7 +100,7 @@ Unlock the phone when required. Build, install, launch, and visual inspection ar
| Component | Commands | Requirements |
| --- | --- | --- |
-| Host | `cd host && cargo build` | rustup; `rust-toolchain.toml` pins the version CI uses (a Homebrew `rust` ahead of rustup on PATH ignores it) |
+| Host | `cd host && cargo build` | rustup; `host/rust-toolchain.toml` pins the version CI uses (a Homebrew `rust` ahead of rustup on PATH ignores it) |
| Host checks | `cd host && cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test` | Local agent credentials are unnecessary for unit tests |
| iOS Kit | `cd apps/ios/Kit && xcodebuild test -scheme CodyncKit-Package -destination 'platform=iOS Simulator,id=<sim-id>'` | Swift 6 / Xcode; iOS-only package |
| Desktop | `cd apps/desktop && npm ci && npm run typecheck && npm test` | Node and npm; CI uses Node 24 |
@@ -108,6 +108,10 @@ Unlock the phone when required. Build, install, launch, and visual inspection ar
| Cloud integration | `cd cloud && env -u CODYNC_CLOUD npm run e2e` | Built host; see [Cloudflare testing](cloudflare-testing.md) |
| APNs relay | `cd relay && npm ci && npm test && npm run typecheck` | Separate package from `cloud/` |
+### Rust toolchain
+
+`host/rust-toolchain.toml` and `apps/screen-linux/rust-toolchain.toml` each pin the Rust version for their own crates (`host/crates/*` follow the host's). The two files must name the same version: when you bump one, bump the other, run clippy on both and commit them together. CI steps that install Rust run inside the crate's folder so rustup finds its file.
+
### Pre-commit checks
Enable the repository's pre-commit hook once per checkout:
diff --git a/host/rust-toolchain.toml b/host/rust-toolchain.toml
new file mode 100644
index 00000000..311bdf60
--- /dev/null
+++ b/host/rust-toolchain.toml
@@ -0,0 +1,6 @@
+# Pinned so a new stable release can't break clippy -D warnings overnight.
+# Keep the version equal to apps/screen-linux/rust-toolchain.toml (docs/guides/development.md#rust-toolchain).
+# Bump deliberately: change both, run clippy on both, commit.
+[toolchain]
+channel = "1.99.0"
+components = ["clippy", "rustfmt"]
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
deleted file mode 100644
index 3918a38d..00000000
--- a/rust-toolchain.toml
+++ /dev/null
@@ -1,6 +0,0 @@
-# One Rust for every crate here (host, apps/screen-linux) and CI,
-# so a new stable release can't break clippy -D warnings overnight.
-# Bump deliberately: change the version, run clippy on every crate, commit.
-[toolchain]
-channel = "1.99.0"
-components = ["clippy", "rustfmt"]