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:
parent
16a83468ab
commit
73457f2fda
4 changed files with 28 additions and 5 deletions
|
@ -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"]
|
||||
|
|
|
@ -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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue