# Run your first Cargo check

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

Source: https://www.sorus.run/docs/quickstart
Reviewed: 2026-10-28

## 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](https://www.sorus.run/docs/guides/organization)).

Choose a repository that already passes `cargo check --workspace --locked` locally and fits the [supported workloads](https://www.sorus.run/docs/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](https://brew.sh) if it is already installed:

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


### macOS · Installer

```sh
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

```sh
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](https://www.sorus.run/docs/sorus-ci#install).

## Sign in

Run:

```sh
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:

```sh
sorus whoami
```

Confirm that it belongs to the account authorised for your repository. If sign-in fails, follow the [authentication guide](https://www.sorus.run/docs/guides/authentication) before continuing.

## Run a check

From the workspace root, run:


### Cargo subcommand

```sh
cargo sorus check --workspace --locked
```


### Standalone CLI

```sh
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:

```sh
echo $?
```

For the working project selected above, the expected result is `0`. If it is not, use the [troubleshooting guide](https://www.sorus.run/docs/guides/troubleshooting). A connection or platform failure does not mean your code failed to compile.

Replace `<job>` with the printed job identifier:

```sh
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](https://www.sorus.run/docs/guides/ci) to add the same command to a workflow, or [run other checks and tests](https://www.sorus.run/docs/sorus-ci#first-job). Use the [benchmark method](https://www.sorus.run/benchmarks/methodology) when comparing timings.
