Skip to content

Commit 3977f63

Browse files
Mossakaclaude
andcommitted
fix: install cross from crates.io for rustc 1.85.0 compatibility
Installing cross from git causes cargo to resolve dependencies to their latest compatible versions. Some of these (like home v0.5.12+) require rustc 1.88+, which is incompatible with the project's rustc 1.85.0. Cross v0.2.5 from crates.io uses locked dependencies that support the published MSRV of rustc 1.58.1+, making it compatible with rustc 1.85.0. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent a518afe commit 3977f63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scripts/setup-cross.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/bin/bash
2-
cargo install cross --git https://github.com/cross-rs/cross
2+
# Install cross from crates.io which has locked dependencies compatible with rustc 1.85.0
3+
# Installing from git causes cargo to resolve dependencies to latest versions,
4+
# some of which (like home v0.5.12+) require rustc 1.88+
5+
cargo install cross --version 0.2.5
36

47
if [ ! -z "$CI" ]; then
58

0 commit comments

Comments
 (0)