3 ms·
I'm waiting for the service to be a bit more consistent to blog about it, but we've started with a friend to write a webservice in rocket and it's been a total
by allan_s 9y ago
I'm waiting for the service to be a bit more consistent to blog about it, but we've started with a friend to write a webservice in rocket and it's been a total pleasure
It may be useful to some people, as we've most of the feature you find in a "real life" service
* database connection
* schema creation
* json handling
* pagination
* some endpoints are non-json
* support for CORS
* automated isolation test (i.e we test the service as a blackbox)
* generation of a minimal bin-only docker image that with travis-ci
* self-contained dev environment (vagrant up and you're good to go)
https://github.com/allan-simon/sentence-aligner-rust https://github.com/allan-simon/sentence-aligner-rust
- bluejekyll 9y agoThe only catch I've had with Rocket is that it relies on nightly. This can create issues with other libraries, and it is constantly requiring new versions of the nightly version. If you're going to use Rocket, I recommend pinning the Rocket version in a Cargo.lock, and setting a specific version of nightly with rustup override.