Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow selecting target #283

Open
jayvdb opened this issue Jul 3, 2024 · 1 comment
Open

Allow selecting target #283

jayvdb opened this issue Jul 3, 2024 · 1 comment
Labels
enhancement ✨ New feature or request

Comments

@jayvdb
Copy link

jayvdb commented Jul 3, 2024

It would be very helpful to be able to select the target or targets that I care about, and cargo-unmaintained removes crates which are not used in those targets.

The output for my work monorepo includes

num_cpus (https://github.com/seanmonstar/num_cpus updated 369 days ago)
    hermit-abi (requirement: ^0.3.0, version used: 0.3.9, latest: 0.4.0)

and

wasm-timer (https://github.com/tomaka/wasm-timer updated 1401 days ago)
    parking_lot (requirement: ^0.11, version used: 0.11.2, latest: 0.12.3)
rand_hc (not in https://github.com/rust-random/rand)
atomic-polyfill (https://github.com/embassy-rs/atomic-polyfill archived)

We do use num_cpus, but https://github.com/seanmonstar/num_cpus/blob/master/Cargo.toml states hermit-abi is only used for RustyHermit target, which we dont care about.

And wasm-timer is obviously only a dependency in the wasm target, which we dont care about.
Likewise rand_hc & atomic-polyfill are dependencies indirectly only for a target that we dont care about.

I am interested in working with upstreams to fix the problems highlighted by cargo-unmaintained, but not for arch targets that I am not using.

@smoelius smoelius added the enhancement ✨ New feature or request label Jul 3, 2024
@jayvdb
Copy link
Author

jayvdb commented Aug 30, 2024

In case it helps, I recently found that cargo-deny supports limiting the active dependency tree by targets. (EmbarkStudios/rust-ecosystem#41 (comment)). Maybe they have a trick which could help here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants