Skip to content

Kangie/rust-version-info-server

Repository files navigation

README

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.

Usage

To ingest the information from the Rust Distribution server, run the following command:

user@host$ python3 rust_manifest_ingestor.py

This 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 run

The 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).

About

A Rust webapp using Actix and Tera to display Rust release information for humans alongside a simple API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •