cass source build fails with `rustc 1.94.0 is not supported` or `E0554`
Source: Troubleshooting reference
On a host with glibc < 2.38 (e.g. Ubuntu 22.04) cass has no usable prebuilt, so
memory.sh builds it from source — and you see one of:
rustc 1.94.0 is not supported by the following packages: sysinfo@0.39.5 requires rustc 1.95 …# or, on a newer stable:error[E0554]: `#![feature]` may not be used on the stable release channelTwo root causes stacked:
- cass requires nightly. A dependency gates
#![feature(try_trait_v2)]and the repo pinschannel = "nightly". Stable can’t build it — an old stable fails the MSRV check, a new stable failsE0554. - A stray Homebrew
rustshadows rustup. Arustformula (a lingering build dependency — not in the Brewfile, nothing depends on it) putscargo/rustcinbrew/binat an old version. In bootstrap’s PATH that shadows rustup, socargoresolved to brew’s 1.94.0 even afterrust.shupdated rustup’s stable to 1.97.1.
Confirm:
which -a cargo # a brew/bin/cargo at an old version is the smoking gunrustup toolchain list # is `nightly` installed?Fix (already baked into current memory.sh — this is for older checkouts or
manual recovery):
brew uninstall rust # remove the orphan shadow (safe: nothing depends on it)rustup toolchain install nightly --profile minimal$CARGO_HOME/bin/cargo +nightly install --git \ https://github.com/Dicklesworthstone/coding_agent_session_search \ coding-agent-search --bin cass --locked --root "$LOCAL_PLAT"_cass_build_from_source now installs nightly on demand and calls
$CARGO_HOME/bin/cargo +nightly explicitly, so it no longer depends on PATH
resolution or the default toolchain.