- Added:
--ignore
flag which make cargo-machete respect .ignore and .gitignore files when searching for files (#95).
- Added: shorter display when scanning the current directory (#109).
- Fix: adapt to latest pkgid specification, so as not to crash with
--with-metadata
(#106).
- Chore: bump major dependencies, to fix parsing issues of Cargo.toml files (#101, #105).
- Breaking/improved: match against crate name case-insensitive (#69).
- Added: Github action (#85). See README for documentation.
- Added: support for ignored workspace dependencies (#57, #86). See README for documentation.
- Added:
--version
switch to print the version (#66). - Fix: avoid searching for workspace Cargo.toml longer than needed (#84).
- Chore: better documentation and reporting (#63, #72, #80).
- Breaking: Use
argh
for parsing. Now, paths of directories to scan must be passed in the last position, when running from the command line (#51). - Fix rare false positive and speed up most common case (#53).
- Fix loading properties from workspace (#54).
- Added
--skip-target-dir
to not analyzetarget/
directories. - Added a message indicating of any unused dependencies were found or not.
- Support for workspace properties
- Support empty global prefix, e.g.
use ::log;
.
- Use exit code to signal if there are unused dependencies:
- 0: when no unused dependencies are found
- 1: when at least one unused (non-ignored) dependency is found
- 2: on error
- Preserve Cargo.toml format when automatically removing dependencies
- Warn if any dependency marked as ignored is actually used
Initial public version.