1
0
Fork 0
mirror of https://gitlab.com/msrd0/gotham-restful.git synced 2025-04-20 06:54:46 +00:00

basic diesel-middleware repo handling #7

This commit is contained in:
Dominic 2020-01-14 03:27:49 +01:00
parent 16a83468ab
commit 73457f2fda
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
4 changed files with 28 additions and 5 deletions

View file

@ -21,6 +21,7 @@ failure = "0.1.6"
futures = "0.1.29"
gotham = "0.4"
gotham_derive = "0.4"
gotham_middleware_diesel = { version = "0.1", optional = true }
gotham_restful_derive = { version = "0.0.1" }
hyper = "0.12.35"
indexmap = { version = "1.3.0", optional = true }
@ -36,4 +37,5 @@ thiserror = "1"
[features]
default = []
database = ["gotham_restful_derive/database", "gotham_middleware_diesel"]
openapi = ["gotham_restful_derive/openapi", "indexmap", "log", "openapiv3"]

View file

@ -122,6 +122,8 @@ pub use gotham_restful_derive::*;
#[doc(hidden)]
pub mod export
{
#[cfg(feature = "database")]
pub use gotham_middleware_diesel::Repo;
#[cfg(feature = "openapi")]
pub use indexmap::IndexMap;
#[cfg(feature = "openapi")]