Crate diana_actix_web[][src]

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

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.

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 the Options and don’t worry about this function, subscriptions will automatically be disabled.