Giter Site home page Giter Site logo

Comments (1)

PaulDance avatar PaulDance commented on August 12, 2024

Oooh, fair point! I didn't consider this case, for sure.

Implementing the very basic fix / feature for this will very probably require additional parsing of the $CARGO_HOME/.crates.toml file done in order to save the in-parenthesis source. An enumeration should represent this well. The part before the + will probably be the variants and after an associated URL. Checking all the possible source values in some documentation or source of Cargo should still be done in order to ensure nothing was forgotten, however.

Then, from a feature point of view, at the very least the change should be reflected by adding a mention of the filtering in the command's documentation comments so end users may see it from the usage messages. Beyond that, you can either let it be something always done in a hard-coded fashion, or additionally implement a new CLI option in order to force keeping the local-only installs in the resulting table. In the second case however, the default would still be to filter them out. I usually do this when implementing such a breaking change so end users may choose for themselves while still ending up with a sensible default.

from cargo-liner.

Related Issues (14)

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.