Giter Club home page Giter Club logo

cargo-hoist's Introduction

cargo-hoist

CI Build Status Release Tag Build Status License Docs Latest Version rustc 1.70+

Dead simple cargo subcommand to hoist cargo-built binaries into scope. stable

Install | User Docs | Crate Docs | Reference | Contributing | License

What is cargo-hoist?

cargo-hoist is an ultra lightweight, dead simple cargo subcommand that memoizes cargo-built binaries using a global toml cache file. Since the global toml file contains a memoized list of the built binary paths, the hoist subcommand can then be used to manipulate cargo-built binaries in a whole variety of ways.

Primarily, binaries can be pulled into the current working directory using cargo hoist <bin name> (the default, flagless hoist command). To load the binary into path, you can run cargo hoist <bin name> --path.

Often, it's added overhead to remember where your binary is built within the target/.. directories. cargo-hoist makes it easy to find locally built binaries using the --list (or -l shorthand) flag.

Usage

Install cargo-hoist using cargo.

cargo install cargo-hoist

CLI Flags

Below is a manual output for v0.1.11. To generate a more up-to-date output, run cargo hoist --help.

Dead simple, memoized cargo subcommand to hoist cargo-built binaries into scope.

Usage: cargo hoist [OPTIONS] [COMMAND]

Commands:
  hoist     Hoist dependencies
  list      List registered dependencies
  search    Search for a binary in the hoist toml registry
  nuke      Nuke wipes the hoist toml registry
  register  Registers a binary in the global hoist toml registry
  help      Print this message or the help of the given subcommand(s)

Options:
  -v, --verbosity...  Verbosity level (0-4). Default: 0 (ERROR)
  -q, --quiet         Suppresses standard output
  -h, --help          Print help
  -V, --version       Print version

Contributing

Contributions of all forms are welcome and encouraged!

Please check existing issues for similar feature requests or bug reports.

Otherwise, feel free to open an issue if no relevant issue already exists.

License

This project is licensed under the MIT License.

Free and open-source, forever. All our rust are belong to you.

cargo-hoist's People

Contributors

refcell avatar

Stargazers

0xYYY avatar nicolas avatar Steph Sinyakov avatar  avatar malik avatar Franfran avatar

Watchers

 avatar

cargo-hoist's Issues

feat(search/find): Fuzzy Match Search Binary

Description

Currently, the search (aliased to find) subcommand does a simple exact comparison to search for existing registry binaries.

It should perform a fuzzy search similar to cargo search which outputs the following:

$ cargo search anyhow
anyhow = "1.0.75"                          # Flexible concrete Error type built on std::error::Error
anyhow_ext = "0.2.1"                       # Extension of anynow
anyhow-std = "0.1.4"                       # Wrap std APIs with anyhow error context.
sentry-anyhow = "0.31.7"                   # Sentry integration for anyhow. 
async-anyhow-logger = "0.1.0"              # An easy crate for catching anyhow errors from an asynchronous function, and passing …
ckb-sentry-anyhow = "0.21.0"               # Sentry integration for anyhow. 
rocket_anyhow = "0.1.1"                    # throw any error inside rocket's route
mangadex-api = "2.3.1"                     # SDK for the MangaDex API
logerr = "0.2.0"                           # Seamless error type logging
lmnkjgkj-std-backtrace-anyhow = "0.0.1"    # Fork of anyhow that uses backtrace from std
... and 644 crates more (use --limit N to see more)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.