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:
parent
4ff5a8d7e4
commit
20818b0f95
3 changed files with 4 additions and 3 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue