Expand description

Registry Sync

In order for builds.rs to do it’s job, it needs to have an up-to-date list of crates at all times. This crate is responsible for doing that, by implementing a one-way synchronization from a Rust registry to the buildsrs database.

Rust package registries (such as crates.io) have several ways for getting data out of them, including a HTTP API, nightly database dumps and the Git index. The latter is a Git repository that contains all crate metadata. This index was chosen as the source of data for synchronization purposes, because it is relatively straightforward to consume.

This crate exports a Syncer type, which implements the synchronization between a given Git index and a database connection.

Structs

  • Synchronize a package registry with the database.