MCPcopy Index your code
hub / github.com/cargo-bins/cargo-quickinstall

github.com/cargo-bins/cargo-quickinstall @fallow-cli-3.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release fallow-cli-3.2.0 ↗ · + Follow
136 symbols 360 edges 21 files 14 documented · 10%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

cargo-quickinstall

Crates.io Join the chat at https://gitter.im/cargo-quickinstall/community

cargo-quickinstall is a bit like Homebrew's concept of Bottles (binary packages), but for cargo install.

Installation

cargo install cargo-quickinstall

Recent versions of Windows, MacOS and Linux are supported.

Usage

Whenever you would usually write something like:

cargo install ripgrep

you can now write:

cargo quickinstall ripgrep

This will install pre-compiled versions of any binaries in the crate. If we don't have a pre-compiled version, it will fallback to cargo install automatically.

Relationship to cargo-binstall

cargo-binstall (from version 0.6.2 onwards) is also capable of fetching packages from the cargo-quickinstall github releases repo. cargo-binstall is an excellent piece of software. If you're looking for something for desktop use, I can recommend using cargo-binstall.

Use in CI systems

If you want to install a rust package on a CI system, you can do it with a curl | tar command, directly from the cargo-quickinstall github releases repo.

cargo-quickinstall --dry-run --no-binstall ripgrep

will print:

curl --user-agent "cargo-quickinstall/0.3.13 client (alsuren@gmail.com)" --location --silent --show-error --fail "https://github.com/cargo-bins/cargo-quickinstall/releases/download/ripgrep-14.1.1/ripgrep-14.1.1-aarch64-apple-darwin.tar.gz" | tar -xzvvf - -C /Users/alsuren/.cargo/bin

Edit the command however you need, and paste it into your CI pipeline.

Supported targets

Check supported-targets for lists of targets quickinstall can build for.

Limitations

Non-default features are not supported.

The cargo-quickinstall client is just a glorified bash script at this point.

Currently it assumes that you have access to:

  • tar
  • curl

Both of these should exist on all recent Windows and MacOS installs. curl is available on most Linux systems, and is assumed to exist by the rustup installation instructions. I only plan to remove these runtime dependencies if it can be done without increasing how long cargo install cargo-quickinstall takes (might be possible to do this using feature flags?).

There are a few pieces of infrastructure that are also part of this project:

  • [x] A server for distributing the pre-built binaries
  • We are using github releases for this.
  • [x] A server for report gathering
  • This is done using a vercel server that saves counts to redis.
  • [x] A periodic task for building the most-requested packages for each OS/architecture
  • [ ] Get someone to audit my GitHub Actions sandboxing scheme.

Contributing

There are a lot of things to figure out at the moment, so now is the perfect time to jump in and help. I created a Gitter room for collaborating in. You can also poke @alsuren on Twitter or Discord. I'm also up for pairing over zoom to get new contributors onboarded.

Work is currently tracked on the kanban board. If you want help breaking down a ticket, give me a shout in one of the above places.

Releasing

Releasing of patch versions is handled by the makefile, so can be done by:

make release

If you need to make a major version bump then copy-paste the commands out of the Makefile.

Once a release has been made, post about it on the rust forums, reddit and twitter.

License

Copyright (c) 2020-2022 cargo-quickinstall developers

cargo-quickinstall is made available under the terms of either the MIT License or the Apache License 2.0, at your option.

See the LICENSE-APACHE and LICENSE-MIT files for license details.

Extension points exported contracts — how you extend this code

JsonKey (Interface)
(no doc) [3 implementers]
cargo-quickinstall/src/json_value_ext.rs
JsonValueExt (Interface)
(no doc) [1 implementers]
cargo-quickinstall/src/json_value_ext.rs
CommandExt (Interface)
(no doc) [1 implementers]
cargo-quickinstall/src/command_ext.rs

Core symbols most depended-on inside this repo

is_curl_404
called by 7
cargo-quickinstall/src/install_error.rs
output_checked_status
called by 7
cargo-quickinstall/src/command_ext.rs
get_cargo_bin_dir
called by 5
cargo-quickinstall/src/utils.rs
get_env
called by 4
stats-server/src/main.rs
stdin
called by 4
cargo-quickinstall/src/command_ext.rs
stdout
called by 4
cargo-quickinstall/src/command_ext.rs
stderr
called by 4
cargo-quickinstall/src/command_ext.rs
utf8_to_string_lossy
called by 3
cargo-quickinstall/src/utils.rs

Shape

Function 89
Method 24
Class 17
Enum 3
Interface 3

Languages

Rust67%
Python33%

Modules by API surface

cargo-quickinstall/src/lib.rs30 symbols
cargo-quickinstall/src/command_ext.rs15 symbols
cronjob_scripts/find-common-failures.py11 symbols
cronjob_scripts/crates_io_popular_crates.py10 symbols
cargo-quickinstall/src/args.rs10 symbols
cronjob_scripts/trigger_package_build.py9 symbols
cargo-quickinstall/src/json_value_ext.rs9 symbols
cargo-quickinstall/src/main.rs7 symbols
cargo-quickinstall/src/install_error.rs7 symbols
stats-server/src/main.rs6 symbols
cargo-quickinstall/tests/integration_tests.rs4 symbols
cronjob_scripts/types.py3 symbols

For agents

$ claude mcp add cargo-quickinstall \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact