Top Marks Cargo Package Manager

If you like what we do, then a sponsorship, or one time donation would mean the world!

Why not join the discord community for devs everywhere:

Like it?
Leave a review
(please)
Something wrong?
Report an issue
Browse, install, update and remove the Rust crates of every Cargo.toml in your workspace, through
Cargo itself.
Project links
[!IMPORTANT]
This extension is in preview. Reading and checking run nothing. Installing, uninstalling and
updating crates run Cargo, in your project, with that project's own configuration, so they
need a trusted workspace. Report problems through GitHub Issues.
Features
- Installed, Updates, Vulnerable and Consolidate for every
Cargo.toml, with the versions
Cargo.lock records.
- Workspaces read as Cargo reads them:
members and exclude, one Cargo.lock at the root,
and [workspace.dependencies] with the members that inherit each.
- Changes through Cargo:
cargo add, cargo remove and cargo update, one project at a time,
with the result read back and anything unexpected reported.
- Vulnerabilities from OSV, which includes RustSec, only in a workspace you
trust. A crate that could not be checked is named, never shown as clear.
- Sources lists crates.io and every registry and source your Cargo configuration declares, and
adds or removes a sparse registry in a workspace's
.cargo/config.toml.
- Browse searches crates.io and shows where you already declare each crate.
- Readable in every built-in theme, with the layout and controls the other managers share.
The user guide describes each tab and every rule in full.
Getting started
- Install this extension. The Top Marks Package Managers container in the Activity Bar comes
with it.
- Open a folder that holds a
Cargo.toml, and open Cargo Package Manager in that container.
- Browse your crates and their updates straight away. Vulnerability checks, tokens and changes wait
until you trust the workspace: until then nothing is run or changed, and no token is sent.
- A project with no
Cargo.lock is read-only until you select Create Cargo.lock.
Requirements
- VS Code 1.116 or later. An older VS Code does not load the extension: it says the extension is
not compatible and names the version it requires.
- Reading needs neither Rust nor Cargo: manifests, lockfiles and Cargo's configuration are read
by the extension.
- Changes need Cargo 1.66 or later, on your
PATH outside the workspace or set in the
setting below.
Settings
| Setting |
Default |
What it does |
topMarksCargoPackageManager.cargoPath |
"" |
The Cargo program: an absolute path, or a command name on the PATH. Empty uses cargo |
It is a machine setting, read from your own settings only; a workspace cannot set it. An absolute
path is used as written. If cargo on your PATH is a version manager's shim, such as rustup's,
set it to a toolchain's own cargo. It does not get past a project toolchain file that names a
path: remove the path from that file, or make the change in a terminal.
Private registries
A crate from another registry is looked up in that registry's sparse index, sending its name and
nothing else, and never to OSV. A token is sent only in a trusted workspace, only to the index files
of a registry your own Cargo configuration declares, and only from CARGO_REGISTRIES_<NAME>_TOKEN
or a token in your own configuration; credentials.toml is never read and no credential provider
is run for a lookup. Before you trust the workspace, a registry that needs a token says Trust this
folder to look it up.
Your Cargo configuration in the user guide
has the details.
Part of Top Marks Package Managers
This extension is one of a family of package managers for VS Code that share a layout and a home in
the Top Marks Package Managers Activity Bar container. See the suite overview
for the rest of the family:
Licence
Copyright (c) 2026 Top Marks Development Limited. Licensed under
GNU Affero General Public License v3.0 only.
The view's icons are Codicons by Microsoft, licensed
under CC BY 4.0; the licence ships with the font in
media/codicons/.