You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a project that includes a git submodule for .proto files.
Inside of the submodule there is an example rust crate that has nothing to do with the main repository I am running cargo machete on.
How can I exclude this unrelated crate from the cargo machete analysis?
I can explicitly pass the paths to the projects I want to include, but I just don't like having to do so.
I see multiple possible implementations:
only analyze crates that are members of the workspace if it exists
allow adding paths or directories to ignore in the file system discovery
The text was updated successfully, but these errors were encountered:
mickvangelderen
changed the title
How to exclude crates not part of the root crate
How to exclude crates not part of the root crate from analysis
Nov 1, 2022
Thanks for opening an issue! For background: the --ignore-target option was introduced as a minimal way to ignore directories, so instead we could just use a plain list of directories that we want to ignore, instead, as a generalization of the --ignore-target. That is your option 2, if I understand correctly! Is this something you'd be interested in implementing too?
I have a project that includes a git submodule for
.proto
files.Inside of the submodule there is an example rust crate that has nothing to do with the main repository I am running
cargo machete
on.How can I exclude this unrelated crate from the
cargo machete
analysis?I can explicitly pass the paths to the projects I want to include, but I just don't like having to do so.
I see multiple possible implementations:
The text was updated successfully, but these errors were encountered: