Comments (3)
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:
-
The ability to reach into an existing crate archive file's
Cargo.toml
to grab all of its dependencies recursively, and -
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.
from panamax.
@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.
from panamax.
This should be solved with the new feature added in #71.
from panamax.
Related Issues (20)
- Sync over multiple vendor directories (over time) HOT 3
- wrong paths / urls HOT 7
- Adjust the vendor directories being tracked (over time) HOT 2
- A way to serve the documentation for crates.io?
- Please add selective syncing HOT 4
- Unable to complete downloading crates HOT 3
- Crate whitelisting HOT 1
- Cargo vendor failed using mirror repository
- could not resolve host:panamax.internal HOT 6
- [feature request] panamax publish my-mirror
- on Docker - error creating server listener: Address family not supported by protocol HOT 1
- not a git repository error
- how to masquerade as crates.io
- [Enquiry] How big the full mirror is? HOT 3
- [Question] Can I start sync while the panamax is serving? HOT 1
- How do I download WASI and WASM targets ?
- [BUG] inconsistent state may occur HOT 4
- Mirroring Vendored Crates
- No config.json HOT 2
- Unable to `cargo search` against panamax mirror HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from panamax.