cargo-local-install
Wraps cargo install for better local, non-conflicting installation
cargo install is great but suffers a few drawbacks:
- The global
~/.cargo/bindirectory can contain only a single installed version of a package at a time - if you've got one project relying oncargo web 0.5and another prjoect relying oncargo web 0.6, you're SOL. - Forcing local installs with
--root my/projectto avoid global version conflicts means you must rebuild the entire dependency for each project, even when you use the exact same version for 100 other projects before. - When building similar binaries, the lack of target directory caching means the entire dependency tree must still be rebuilt from scratch.
cargo local-install attempts to solve these problems:
- (Ab)uses
--target-dirto share built dependencies. - Creates a global cache of binaries, but installs a link/copy in
./binby default.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.