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

Download only specific crates #63

Closed
elenakrittik opened this issue Apr 10, 2022 · 3 comments
Closed

Download only specific crates #63

elenakrittik opened this issue Apr 10, 2022 · 3 comments

Comments

@elenakrittik
Copy link

elenakrittik commented Apr 10, 2022

Is it possible to download only speciefic crates, e.g., panamax sync my-mirror --crates="serenity,rand,songbird"?

@k3d3
Copy link
Member

k3d3 commented Apr 10, 2022

Unfortunately it's not currently possible to only download specific crates. It would be pretty cool to have Panamax support this in the future, however doing so would be a pretty big feature, due to Panamax needing to implement two things:

  1. The ability to reach into an existing crate archive file's Cargo.toml to grab all of its dependencies recursively, and

  2. The ability to serve a crates.io-index repository that does not match with the upstream repository, in order to match up with only the crates on the mirror.

Between the large effort required to implement it, and the fact that it's not something I personally need, I don't believe I'll be getting around to implementing this functionality any time soon sadly.

At the same time though, this is an interesting feature and I'd be open to PRs for it.

@k3d3 k3d3 changed the title Download only speciefic crates Download only specific crates Apr 10, 2022
@ricked-twice
Copy link
Contributor

@k3d3 As a first step, it could be good to download only crates passed as arguments by user and not their dependencies?
Because such a feature would put basic logic for this feature, but also to correct #64.

@k3d3
Copy link
Member

k3d3 commented Feb 4, 2023

This should be solved with the new feature added in #71.

@k3d3 k3d3 closed this as completed Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants