This repository contains two components:
- A python script to read manifests from the Rust Distribution server ingest the information in a SQLite database.
- A Rust-based web app to serve the information from the SQLite database into templated pages.
That is all.
To ingest the information from the Rust Distribution server, run the following command:
user@host$ python3 rust_manifest_ingestor.pyThis will create a SQLite database file named rust_versions.db in the root of the repository.
To run the web app, run the following command:
user@host$ cargo runThe web app will launch on port 8080. You can access the following endpoint:
//info/all/info/«version»/info/component/«component»/«version»
Additionally an API exists to retrieve information in JSON format:
/api/v1/version/«version»/api/v1/component/«component»/«version»
Where «version» is a version number, such as 1.0.0, 1.0.0-beta, or 1.0.0-nightly, and for the version endpoint a named channel like nightly, beta, or stable (also exposed as latest).