Skip to content
A simple server application which provides static endpoints for released unity versions
Rust
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
src
.gitignore
.travis.yml
Cargo.lock
Cargo.toml
LICENSE
Procfile
README.md
app.json
build.rs
versions.yml

README.md

unity-versions-service

A simple server application which provides static endpoints for released unity versions. There are two usable endpoints:

  • /versions - will return a json object with all available versions and release hashes
  • /versions/${VERSION}/hash - returns the release hash for a given version

Deploy Build Status

Build with cargo

just building the binary

cargo build --release

running it locally with cargo

cargo run --bin unity-version-service

Routes generation

All iron routes are statically generated at compile time. Cargo will run build.rs at compile time which will generate a helper function pub fn _add_version_routes(router:&mut Router) and a static json string for he /versions endpoint from the versions.yml.

Usage

This package contains two tools

  • unity-versions-service - a rust iron server application
  • update_versions - a helper tool to fetch latest version of unity and push changes to remote github repository

unity-version-service:

unity-versions-service - A simple webserver to deliver unity version information

Usage:
  unity-versions-service [options]
  unity-versions-service (-h | --help)

Options:
  --port=PORT       the server port number
  -v, --verbose     print more output
  -d, --debug       print debug output
  --color WHEN      Coloring: auto, always, never [default: auto]
  -h, --help        show this help message and exit

update_versions:

update-versions - Fetch latest versions and update versions.yml on repo.

Usage:
  update-versions [options]
  update-versions (-h | --help)

Options:
  --token=TOKEN         a github auth token
  --message=MESSAGE     the commit message to use
  --repo-name=REPO      name of the repo
  --repo-owner=OWNER    owner of the github repo
  -f, --force           force refresh of the list
  -v, --verbose         print more output
  -d, --debug           print debug output
  --color WHEN          Coloring: auto, always, never [default: auto]
  -h, --help            show this help message and exit

Available versions

At the moment most released versions of 2017 and 2018 are available (see versions.yml). New versions are automatically added through the update_versions tool running on Heroku. Missing versions can easily be added by editing the versions.yml file in the root of this repository.

License

Apache License 2.0

You can’t perform that action at this time.