-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Implement experimental registry HTTP API from RFC #8890
Commits on Nov 19, 2020
-
Lift make_dep_prefix so it can be shared
Jon Gjengset committedNov 19, 2020 Configuration menu - View commit details
-
Copy full SHA for ac37cc5 - Browse repository at this point
Copy the full SHA ac37cc5View commit details
Commits on Nov 20, 2020
-
Implement registry HTTP API from RFC
This commit implements the HTTP registry API from rust-lang/rfcs#2789. A proof-of-concept server implementation exists at https://github.com/kornelski/cargo-static-registry-rfc-proof-of-concept The client implementation supports the changelog extension in the RFC, but the server does not at the time of writing. This first draft does not take advantage of `Etag` to avoid re-downloads if the server does not support changelog. It also does not download multiple index files concurrently, since the Registry trait doesn't lend itself well to that at the moment.
Jon Gjengset committedNov 20, 2020 Configuration menu - View commit details
-
Copy full SHA for c92f34c - Browse repository at this point
Copy the full SHA c92f34cView commit details -
Improve support for non-changelog HTTP registries
With this change, a registry that does not support the optional changelog feature will no longer purge the index on every build. Instead, it will double-check the current file contents with the server for each load, which is fairly efficient if a given index file has _not_ changed. The changelog is (unsurprisingly) still much more efficient.
Jon Gjengset committedNov 20, 2020 Configuration menu - View commit details
-
Copy full SHA for 37bd64d - Browse repository at this point
Copy the full SHA 37bd64dView commit details -
Jon Gjengset committed
Nov 20, 2020 Configuration menu - View commit details
-
Copy full SHA for f04eee1 - Browse repository at this point
Copy the full SHA f04eee1View commit details -
Jon Gjengset committed
Nov 20, 2020 Configuration menu - View commit details
-
Copy full SHA for 6881d67 - Browse repository at this point
Copy the full SHA 6881d67View commit details
Commits on Nov 21, 2020
-
Detect rfc+http as HTTP registry
Jon Gjengset committedNov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for c2b7ec7 - Browse repository at this point
Copy the full SHA c2b7ec7View commit details -
Double-check anything that's not synchronized
Jon Gjengset committedNov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for e67ea79 - Browse repository at this point
Copy the full SHA e67ea79View commit details -
Jon Gjengset committed
Nov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for 4c1af67 - Browse repository at this point
Copy the full SHA 4c1af67View commit details -
Handle directories that don't exist
Jon Gjengset committedNov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for 011e483 - Browse repository at this point
Copy the full SHA 011e483View commit details -
Allow empty lines in changelog
Jon Gjengset committedNov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for ff86ee2 - Browse repository at this point
Copy the full SHA ff86ee2View commit details -
A note about non-Range servers
Jon Gjengset committedNov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for 2220c19 - Browse repository at this point
Copy the full SHA 2220c19View commit details -
Add rudimentary testing for HTTP registry
Jon Gjengset committedNov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for 3ec6f87 - Browse repository at this point
Copy the full SHA 3ec6f87View commit details -
No changelog means no version means no cache
Jon Gjengset committedNov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for 184fa41 - Browse repository at this point
Copy the full SHA 184fa41View commit details -
Unify unknown and unsupported changelog states
They're handled the same anyway.
Jon Gjengset committedNov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for 9527f00 - Browse repository at this point
Copy the full SHA 9527f00View commit details -
Jon Gjengset committed
Nov 21, 2020 Configuration menu - View commit details
-
Copy full SHA for 572ceeb - Browse repository at this point
Copy the full SHA 572ceebView commit details
Commits on Nov 23, 2020
-
Don't write JSON-encoded name to changelog
Jon Gjengset committedNov 23, 2020 Configuration menu - View commit details
-
Copy full SHA for d9aed8a - Browse repository at this point
Copy the full SHA d9aed8aView commit details -
Jon Gjengset committed
Nov 23, 2020 Configuration menu - View commit details
-
Copy full SHA for 45dbbb7 - Browse repository at this point
Copy the full SHA 45dbbb7View commit details -
Don't overwrite last-updated if nothing changed
Jon Gjengset committedNov 23, 2020 Configuration menu - View commit details
-
Copy full SHA for 3604da8 - Browse repository at this point
Copy the full SHA 3604da8View commit details -
Adopt more tests from registry.rs
Jon Gjengset committedNov 23, 2020 Configuration menu - View commit details
-
Copy full SHA for 8f99f76 - Browse repository at this point
Copy the full SHA 8f99f76View commit details
Commits on Nov 25, 2020
-
This doesn't quite work yet. Something needs to call `prefetch`, and there's still an important TODO about making sure calls to `load` do not re-fetch files that have already been prefetched.
Jon Gjengset committedNov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for f9b1262 - Browse repository at this point
Copy the full SHA f9b1262View commit details -
Progress on greedy prefetching
Jon Gjengset committedNov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for 42453f5 - Browse repository at this point
Copy the full SHA 42453f5View commit details -
Jon Gjengset committed
Nov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for 5568cb6 - Browse repository at this point
Copy the full SHA 5568cb6View commit details -
Jon Gjengset committed
Nov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for e29b21e - Browse repository at this point
Copy the full SHA e29b21eView commit details -
Fix interactions between prefetching and loads
Jon Gjengset committedNov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for 202258e - Browse repository at this point
Copy the full SHA 202258eView commit details -
Give example crate for load source failure
Jon Gjengset committedNov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for acd3ee7 - Browse repository at this point
Copy the full SHA acd3ee7View commit details -
Since we now also have to collect the `deps` iterator, we have it implemented `ExactSizeIterator` to avoid excessive allocations.
Jon Gjengset committedNov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for b52740d - Browse repository at this point
Copy the full SHA b52740dView commit details -
Fix up expected output in path test
Jon Gjengset committedNov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for 5799fc8 - Browse repository at this point
Copy the full SHA 5799fc8View commit details -
Improve docs for prefetching methods/types
Jon Gjengset committedNov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for d0d4ccb - Browse repository at this point
Copy the full SHA d0d4ccbView commit details -
Update tests to match new error messages
This is kind of unfortunate since it talks about prefetching even for sources that do not support it. The reason for this is that we have to load the source before we can even check whether it supports prefetching, and for these tests what fails is loading the source...
Jon Gjengset committedNov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for e970a0c - Browse repository at this point
Copy the full SHA e970a0cView commit details -
Jon Gjengset committed
Nov 25, 2020 Configuration menu - View commit details
-
Copy full SHA for e1018d0 - Browse repository at this point
Copy the full SHA e1018d0View commit details
Commits on Nov 26, 2020
-
Fix resolver-tests crate compile failure
Jon Gjengset committedNov 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 8ccaf4f - Browse repository at this point
Copy the full SHA 8ccaf4fView commit details -
Avoid UncanonicalizedIter during prefetch
It's not really necessary. It's okay if it takes us slightly longer to generate an error.
Jon Gjengset committedNov 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 9ad0ff6 - Browse repository at this point
Copy the full SHA 9ad0ff6View commit details -
Keep better track of what has been downloaded
Jon Gjengset committedNov 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 6b1bd18 - Browse repository at this point
Copy the full SHA 6b1bd18View commit details -
Don't yield the same package many times
Note that this could be a decent amount nicer with dtolnay/semver#170 This currently ends up in some kind of loop for cargo-like deps: yielding already-fetched rustversion yielding already-fetched futures yielding already-fetched thiserror yielding already-fetched anyhow yielding already-fetched rustversion yielding already-fetched futures yielding already-fetched thiserror Everything _up_ to that point terminates pretty quickly.
Jon Gjengset committedNov 26, 2020 Configuration menu - View commit details
-
Copy full SHA for 5d092de - Browse repository at this point
Copy the full SHA 5d092deView commit details
Commits on Nov 30, 2020
-
Jon Gjengset committed
Nov 30, 2020 Configuration menu - View commit details
-
Copy full SHA for 0e2ead6 - Browse repository at this point
Copy the full SHA 0e2ead6View commit details -
Jon Gjengset committed
Nov 30, 2020 Configuration menu - View commit details
-
Copy full SHA for f11440e - Browse repository at this point
Copy the full SHA f11440eView commit details -
Only allow HTTP registry under -Z http-registry
Jon Gjengset committedNov 30, 2020 Configuration menu - View commit details
-
Copy full SHA for e1f96cc - Browse repository at this point
Copy the full SHA e1f96ccView commit details -
Add prefetch progress tracking
It's not _super_ helpful at the moment since the number keeps fluctuating...
Jon Gjengset committedNov 30, 2020 Configuration menu - View commit details
-
Copy full SHA for 5345b83 - Browse repository at this point
Copy the full SHA 5345b83View commit details -
Use Cargo.lock to seed prefetching
This allows us to start downloads of a tonne of index files we otherwise would not discover until much later, which saves us many RTTs. On a dependency graph like that of cargo itself, it cut my download time to 1/5th.
Jon Gjengset committedNov 30, 2020 Configuration menu - View commit details
-
Copy full SHA for cd7a553 - Browse repository at this point
Copy the full SHA cd7a553View commit details -
Remove old note about pipelining
Jon Gjengset committedNov 30, 2020 Configuration menu - View commit details
-
Copy full SHA for f97db19 - Browse repository at this point
Copy the full SHA f97db19View commit details
Commits on Dec 1, 2020
-
Only prefetch once per invocation
Jon Gjengset committedDec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for 9a11d49 - Browse repository at this point
Copy the full SHA 9a11d49View commit details -
Fix tests to pass -Z flag and use 'nightly'
Jon Gjengset committedDec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for 7535830 - Browse repository at this point
Copy the full SHA 7535830View commit details -
Fix more tests from hoisting prefetching phase
Jon Gjengset committedDec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for a385413 - Browse repository at this point
Copy the full SHA a385413View commit details -
Use the right API def for resolver-tests
Jon Gjengset committedDec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for de13064 - Browse repository at this point
Copy the full SHA de13064View commit details -
Move to sparse+http and add index= support
Jon Gjengset committedDec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for 6c2e28f - Browse repository at this point
Copy the full SHA 6c2e28fView commit details -
Move RegistryData::load to &mut self
This will be needed for the new sparse registry to allow it to keep track of files it has already checked with the server.
Jon Gjengset committedDec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for 15aa11f - Browse repository at this point
Copy the full SHA 15aa11fView commit details -
Look for LAST_UPDATED in the right place
Jon Gjengset committedDec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for bad9d3c - Browse repository at this point
Copy the full SHA bad9d3cView commit details -
Correct handling of 404s during prefetch
Jon Gjengset committedDec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for ee6abeb - Browse repository at this point
Copy the full SHA ee6abebView commit details -
Jon Gjengset committed
Dec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for a9f80f8 - Browse repository at this point
Copy the full SHA a9f80f8View commit details -
It does jump a bit, but it's better than what was.
Jon Gjengset committedDec 1, 2020 Configuration menu - View commit details
-
Copy full SHA for 38ad840 - Browse repository at this point
Copy the full SHA 38ad840View commit details
Commits on Dec 2, 2020
-
Mention -Zhttp-registries in help output
Jon Gjengset committedDec 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 508ffa6 - Browse repository at this point
Copy the full SHA 508ffa6View commit details -
Jon Gjengset committed
Dec 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 517a3e2 - Browse repository at this point
Copy the full SHA 517a3e2View commit details -
Merge remote-tracking branch 'upstream/master' into http-registry
Jon Gjengset committedDec 2, 2020 Configuration menu - View commit details
-
Copy full SHA for c57c92c - Browse repository at this point
Copy the full SHA c57c92cView commit details -
Better name for set of already-checked files
Jon Gjengset committedDec 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 666895b - Browse repository at this point
Copy the full SHA 666895bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b41dfbb - Browse repository at this point
Copy the full SHA b41dfbbView commit details -
Keep iterating while there's work
Jon Gjengset committedDec 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 3a71c4c - Browse repository at this point
Copy the full SHA 3a71c4cView commit details -
Don't fetch transitive dev-dependencies
Jon Gjengset committedDec 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 165f01d - Browse repository at this point
Copy the full SHA 165f01dView commit details -
Add early top for dependency version walk
Jon Gjengset committedDec 2, 2020 2Configuration menu - View commit details
-
Copy full SHA for 1bcbc63 - Browse repository at this point
Copy the full SHA 1bcbc63View commit details -
Improve trace output and some comments
Jon Gjengset committedDec 2, 2020 Configuration menu - View commit details
-
Copy full SHA for ced491a - Browse repository at this point
Copy the full SHA ced491aView commit details -
The index yields versions in chronological order, but 0.2.7 can still be released as a hotfix release after 0.3.0 was released. Similarly, we may depend on something like 1.0 _and_ 2.0 of a crate through different dependency paths. _Maybe_ there's an optimization in there somewhere, but it's not as simple as this.
Jon Gjengset committedDec 2, 2020 Configuration menu - View commit details
-
Copy full SHA for 8098e60 - Browse repository at this point
Copy the full SHA 8098e60View commit details
Commits on Dec 3, 2020
-
Fetch config.json from the right directory
Jon Gjengset committedDec 3, 2020 Configuration menu - View commit details
-
Copy full SHA for 3f746b3 - Browse repository at this point
Copy the full SHA 3f746b3View commit details -
Fix up alt_registry tests with registry+ prefix
Jon Gjengset committedDec 3, 2020 Configuration menu - View commit details
-
Copy full SHA for 3a8b69d - Browse repository at this point
Copy the full SHA 3a8b69dView commit details -
Merge remote-tracking branch 'upstream/master' into http-registry
Jon Gjengset committedDec 3, 2020 Configuration menu - View commit details
-
Copy full SHA for 7caae82 - Browse repository at this point
Copy the full SHA 7caae82View commit details -
Treat 403 as 404 from a privacy-sensitive server
Jon Gjengset committedDec 3, 2020 Configuration menu - View commit details
-
Copy full SHA for fa296f0 - Browse repository at this point
Copy the full SHA fa296f0View commit details -
Be more helpful about HTTP status code errors
Jon Gjengset committedDec 3, 2020 Configuration menu - View commit details
-
Copy full SHA for 88649de - Browse repository at this point
Copy the full SHA 88649deView commit details -
Remove the changelog optimization
Jon Gjengset committedDec 3, 2020 Configuration menu - View commit details
-
Copy full SHA for bda120a - Browse repository at this point
Copy the full SHA bda120aView commit details
Commits on Dec 4, 2020
-
Jon Gjengset committed
Dec 4, 2020 Configuration menu - View commit details
-
Copy full SHA for 7d1fef8 - Browse repository at this point
Copy the full SHA 7d1fef8View commit details -
Avoid index updates if we can update just one file
Jon Gjengset committedDec 4, 2020 Configuration menu - View commit details
-
Copy full SHA for cc87623 - Browse repository at this point
Copy the full SHA cc87623View commit details -
Avoid hitting assertion failures
Jon Gjengset committedDec 4, 2020 Configuration menu - View commit details
-
Copy full SHA for c56c4d2 - Browse repository at this point
Copy the full SHA c56c4d2View commit details -
All index paths should be lowercase
Jon Gjengset committedDec 4, 2020 Configuration menu - View commit details
-
Copy full SHA for 7efa4da - Browse repository at this point
Copy the full SHA 7efa4daView commit details
Commits on Dec 9, 2020
-
Jon Gjengset committed
Dec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 3c5c89b - Browse repository at this point
Copy the full SHA 3c5c89bView commit details -
Jon Gjengset committed
Dec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for a5e8b9f - Browse repository at this point
Copy the full SHA a5e8b9fView commit details -
Only be conditional on fields the server provided
Jon Gjengset committedDec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for a1383e0 - Browse repository at this point
Copy the full SHA a1383e0View commit details -
Jon Gjengset committed
Dec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 5750fdf - Browse repository at this point
Copy the full SHA 5750fdfView commit details -
Remove index files we get ~404 for
Jon Gjengset committedDec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for e89e37c - Browse repository at this point
Copy the full SHA e89e37cView commit details -
Be more helpful about HTTP status code errors
Jon Gjengset committedDec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for ad63b9d - Browse repository at this point
Copy the full SHA ad63b9dView commit details -
Jon Gjengset committed
Dec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 8b8e3df - Browse repository at this point
Copy the full SHA 8b8e3dfView commit details -
Assert we have valid utf-8 paths
Jon Gjengset committedDec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 917f5d0 - Browse repository at this point
Copy the full SHA 917f5d0View commit details -
Avoid duplicating crate download code
Jon Gjengset committedDec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for cd5281d - Browse repository at this point
Copy the full SHA cd5281dView commit details -
Jon Gjengset committed
Dec 9, 2020 Configuration menu - View commit details
-
Copy full SHA for 3382ddf - Browse repository at this point
Copy the full SHA 3382ddfView commit details
Commits on Dec 14, 2020
-
Jon Gjengset committed
Dec 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 7871824 - Browse repository at this point
Copy the full SHA 7871824View commit details -
Jon Gjengset committed
Dec 14, 2020 Configuration menu - View commit details
-
Copy full SHA for ee333d3 - Browse repository at this point
Copy the full SHA ee333d3View commit details -
Make sparse+ an impl detail of RegistrySource
This also re-enables the requirement of -Z http-registry
Jon Gjengset committedDec 14, 2020 Configuration menu - View commit details
-
Copy full SHA for f1f63cc - Browse repository at this point
Copy the full SHA f1f63ccView commit details -
Jon Gjengset committed
Dec 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 94ba59e - Browse repository at this point
Copy the full SHA 94ba59eView commit details -
Merge branch 'master' into http-registry
Jon Gjengset committedDec 14, 2020 Configuration menu - View commit details
-
Copy full SHA for f9e35b3 - Browse repository at this point
Copy the full SHA f9e35b3View commit details -
Do not prefetch w/o -Z http-registry
Jon Gjengset committedDec 14, 2020 Configuration menu - View commit details
-
Copy full SHA for 365e9f2 - Browse repository at this point
Copy the full SHA 365e9f2View commit details