Kitty Registrar is a frontend for cat fostering written in Rust.
Rocket requires a nightly version of Rust as it makes heavy use of syntax extensions. This means that the first two unwieldy lines in the introductory example above are required.
Once you have rustup installed, run the following:
$ rustup default nightly-2017-12-21
If you prefer to set the version to just this project, run the following:
$ rustup override set nightly-2017-12-21
Run the following to install the cargo dependencies:
$ rustup update && cargo update
The simply run the following to start the web service
$ cargo run
To test Rocket, simply run ./scripts/test.sh
from the root of the source tree. This will build and test the kitty-registrar
build. This is the script that gets run by Travis CI. To test a crate individually, run cargo test --all-features
.