]> git.proxmox.com Git - cargo.git/commit
Refactor the RegistrySource implementation
authorAlex Crichton <alex@alexcrichton.com>
Fri, 5 Feb 2016 23:11:07 +0000 (15:11 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 1 Aug 2016 17:14:52 +0000 (10:14 -0700)
commitf1e26ed3238f933fda177f06e913a70d8929dd6d
tree1c377d3bdb065ffa238b5614505c4a12a0482242
parent5430db61f6c2668ec94945c91a1df22015ff1cf8
Refactor the RegistrySource implementation

Add an abstraction over which the index can be updated and downloads can be
made. This is currently implemented for "remote" registries (e.g. crates.io),
but soon there will be one for "local" registries as well.
src/bin/login.rs
src/cargo/core/source.rs
src/cargo/ops/registry.rs
src/cargo/sources/registry.rs [deleted file]
src/cargo/sources/registry/index.rs [new file with mode: 0644]
src/cargo/sources/registry/mod.rs [new file with mode: 0644]
src/cargo/sources/registry/remote.rs [new file with mode: 0644]
tests/registry.rs