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

enable doc test for default features

This commit is contained in:
Dominic 2020-05-16 01:03:17 +02:00
parent 4ff5a8d7e4
commit 20818b0f95
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 4 additions and 3 deletions

View file

@ -123,9 +123,9 @@ None of this is currently supported by gotham's own JWT middleware.
A simple example that uses only a single secret could look like this:
```rust,no_run
# #[macro_use] extern crate gotham_restful_derive;
# #[cfg(feature = "auth")]
# mod auth_feature_enabled {
# #[macro_use] extern crate gotham_restful_derive;
# use gotham::{router::builder::*, pipeline::{new_pipeline, single::single_pipeline}, state::State};
# use gotham_restful::*;
# use serde::{Deserialize, Serialize};