juniper/docs/book/content/servers/rocket.md
Christoph Herzog 9623e4d326 (book) Update and fix book compilation and tests
* Use mdbook for building the book
* Update book config
* Update book hierarchy to work properly with mdbook
    This necessitated adding place-holder index pages
    since mdbook does not suppoert stand-alon menu items
* Update tests to use 2018 edition
* Fix various compilation errors in the tests
2019-03-08 11:47:13 +01:00

834 B

Integrating with Rocket

Rocket is a web framework for Rust that makes it simple to write fast web applications without sacrificing flexibility or type safety. All with minimal code. Rocket does not work on Rust's stable channel and instead requires the nightly channel.

Juniper's Rocket integration is contained in the juniper_rocket crate:

!FILENAME Cargo.toml

[dependencies]
juniper = "0.10"
juniper_rocket = "0.2.0"

Included in the source is a small example which sets up a basic GraphQL and GraphiQL handler.