Run your first Cargo check

Install Sorus, sign in, run your first Cargo check and read the result.

Before you start

This tutorial uses client 0.3.0 on macOS or Linux. You need Cargo, Git, a committed Cargo.lock and permission to submit jobs for the repository: a Sorus organization whose GitHub App installation includes it (see Set up your organization).

Choose a repository that already passes cargo check --workspace --locked locally and fits the supported workloads. Use a checkout without pending changes for this first run. Sorus also captures non-ignored untracked files, so check that the tree contains no credentials or other files you do not intend to upload.

Install

Choose your platform and installation method:

macOS · Homebrew

Use Homebrew if it is already installed:

brew install sorus-run/tap/sorus
sorus --version

macOS · Installer

curl --proto '=https' --tlsv1.2 -fsSL https://github.com/sorus-run/sorus/releases/download/v0.3.0/install.sh | SORUS_VERSION=0.3.0 sh
export PATH="$HOME/.local/bin:$PATH"
sorus --version

The installer verifies the release checksums and, when GitHub CLI is available, the provenance attestation. It installs sorus and cargo-sorus in ~/.local/bin.

Add export PATH="$HOME/.local/bin:$PATH" to ~/.zshrc if you use macOS’s default zsh, then open a new terminal. If you use another shell, add that directory to its startup configuration.

Linux · Installer

curl --proto '=https' --tlsv1.2 -fsSL https://github.com/sorus-run/sorus/releases/download/v0.3.0/install.sh | SORUS_VERSION=0.3.0 sh
export PATH="$HOME/.local/bin:$PATH"
sorus --version

The installer verifies the release checksums and, when GitHub CLI is available, the provenance attestation. It installs sorus and cargo-sorus in ~/.local/bin.

Add export PATH="$HOME/.local/bin:$PATH" to ~/.bashrc if you use Bash, then open a new terminal. If you use another shell, add that directory to its startup configuration.

The version output should contain 0.3.0. For manual downloads and installer settings, see installation options.

Sign in

Run:

sorus login

Open the approval page printed by the client in your browser, sign in and approve the matching device code. Then check your identity:

sorus whoami

Confirm that it belongs to the account authorised for your repository. If sign-in fails, follow the authentication guide before continuing.

Run a check

From the workspace root, run:

Cargo subcommand

cargo sorus check --workspace --locked

Standalone CLI

sorus check --workspace --locked

The client prints the command it will run, captures and uploads the source, then follows the job. Keep the job identifier and submission key it prints. Wait for the command to finish.

This checks that the selected Rust code compiles. It does not run tests or produce a final executable.

Read the result

Immediately after the check returns, inspect its exit code:

echo $?

For the working project selected above, the expected result is 0. If it is not, use the troubleshooting guide. A connection or platform failure does not mean your code failed to compile.

Replace <job> with the printed job identifier:

cargo sorus status <job>
cargo sorus logs <job>

The status command shows the completed job, and the logs command retrieves its compiler output.

Compare with your existing CI

You can now submit and inspect a Rust check. Continue with CI integration to add the same command to a workflow, or run other checks and tests. Use the benchmark method when comparing timings.