Install a CLI in a project (not globally)

This page summarizes the projects mentioned and recommended in the original post on /r/rust

Our great sponsors
  • InfluxDB - Access the most powerful time series database as a service
  • SonarLint - Clean code begins in your IDE with SonarLint
  • SaaSHub - Software Alternatives and Reviews
  • nix

    Nix, the purely functional package manager

    Excuse me sir, do you have a moment to talk about our lord and savior, Nix?

  • cross

    “Zero setup” cross compilation and “cross testing” of Rust crates

    cargo install has no facility for per-project installation, but Rust binaries are statically linked aside from the C libraries they depend on, so it should work if you compilie the sqlx-cli binary against the oldest glibc you want to support (cross can help there) and then copy it to the other development machines through any means desired.)

  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • cargo-xtask

  • sqlx

    🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, SQLite, and MSSQL. (by launchbadge)

    It doesn't allow you to install third-party binaries, but it allows you to make your own binaries runnable with something similar to npx. And, as sqlx-cli is also available as a library, you can make an xtask which just runs that.

  • cargo-binstall

    Binary installation for rust projects

    You can use cargo-binstall --install-path to install binaries to custom locations.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts