GithubHelp home page GithubHelp logo

cargo-shear's Introduction

OXC Logo

Hello! My name is Boshen and I am currently developing Oxc, a collection of high-performance tools for JavaScript and TypeScript.

Oxc is a MIT licensed open source project and completely free to use. Your sponsorship will help the sustainability of the project.


I also maintain these helpful tools:

  • cargo-shear: Detect and remove unused dependencies from Cargo.toml in Rust projects.
  • criterion2.rs: Keep criterion updated with renovate bot.
  • json-strip-comments: Strip JSON comments and trailing commas in place.
  • unicode-id-start: Implementation of Unicode Standard Annex #31 (ID_Start and ID_Continue) for determining which char values are valid in programming language (mainly JavaScript) identifiers.

cargo-shear's People

Contributors

boshen avatar dunqing avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dleged dunqing

cargo-shear's Issues

[bug] removes quickcheck even if is is used

Hi Boshen. I mean this library is so awesome!

I'm now working on removing unused dependencies using cargo-shear, and found a bug. I hope you'll check it.
Tisis the issue im working on: biomejs/biome#2136

What is the issue

cargo-shear removes quickcheck even if it is checked

log

error[E0433]: failed to resolve: could not find `quickcheck` in the list of imported crates
  --> crates/biome_json_parser/src/lexer/tests.rs:63:1
   |
63 | #[quickcheck]
   | ^^^^^^^^^^^^^ could not find `quickcheck` in the list of imported crates
   |
   = note: this error originates in the attribute macro `quickcheck` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0433`.
error: could not compile `biome_json_parser` (lib test) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

Better output message

From cargo-machette:

Analyzing dependencies of crates in this directory...
cargo-machete found the following unused dependencies in .:
rspack_binding_values -- ./crates/rspack_binding_values/Cargo.toml:
	rspack_identifier
Done!

If you believe cargo-machete has detected an unused dependency incorrectly,
you can add the dependency to the list of dependencies to ignore in the
`[package.metadata.cargo-machete]` section of the appropriate Cargo.toml.
For example:

[package.metadata.cargo-machete]
ignored = ["prost"]

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.