Skip to content

Colab installation instructions fail due to outdated Rust from apt (1.75 instead of ≥1.80) #1031

@jiajieey

Description

@jiajieey

Problem:
Following the ICICLE Colab instructions, the step:

!apt install rustc cargo
installs Rust 1.75.0 on Google Colab (Ubuntu 22.04 LTS).
However, ICICLE’s dependencies — for example rayon-core v1.13.0 — require Rust ≥ 1.80.0.

Error output:

error: package `rayon-core v1.13.0` cannot be built because it requires rustc 1.80 or newer,
while the currently active rustc version is 1.75.0
Either upgrade to rustc 1.80 or newer...

Steps to reproduce:
Just follow the instructions of "Run ICICLE on Google Colab"

Proposed fix:
Update the Colab instructions to install Rust via rustup instead of apt.
For example:

%%bash
set -euxo pipefail

# Remove distro Rust to avoid confusion (safe if not installed)
apt-get purge -y rustc cargo || true
apt-get update -y

# Install rustup with a minimal, up-to-date toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- -y --profile minimal --default-toolchain 1.81.0

To persist in later cells, also add:

# Make sure ~/.cargo/bin is on PATH for subsequent `!` shell commands
import os
os.environ["PATH"] = f"/root/.cargo/bin:{os.environ['PATH']}"

This ensures Colab uses the latest stable Rust and avoids the rayon-core compile error.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions