Expand description
This is Diana’s integration crate for Actix Web, which enables the easy deployment of a Diana system on that platform. For more information, see the documentation for Diana and the book.
Re-exports§
pub use actix_web;
Functions§
- create_
graphql_ server - Creates a new server for queries and mutations. This returns a closure that can be used with Actix Web’s
.configure()
function to quickly configure a new or existing Actix Web server to use Diana. For examples, see the book. This function is designed for development only, Diana should be used serverlessly for queries and mutations in a production environment. See the book for more information on how to do that. - create_
subscriptions_ server - Creates a new subscriptions server. This returns a closure that can be used with Actix Web’s
.configure()
function to quickly configure a new or existing Actix Web server to use Diana. For examples, see the book. This function should be used to create production servers. If your setup doesn’t require subscriptions at all, don’t configure anything in theOptions
and don’t worry about this function, subscriptions will automatically be disabled.