mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-19 22:44:38 +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
|
@ -14,6 +14,7 @@ test-default:
|
|||
- cargo -V
|
||||
- cargo sweep -s
|
||||
script:
|
||||
- cargo test --workspace --doc
|
||||
- cargo test --workspace --tests
|
||||
- cargo test --workspace --tests -- --ignored
|
||||
after_script:
|
||||
|
|
|
@ -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};
|
||||
|
|
|
@ -22,9 +22,9 @@ client is authenticated. Otherwise, an empty _403 Forbidden_ response will be is
|
|||
look something like this (assuming the `auth` feature is enabled):
|
||||
|
||||
```rust
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# #[cfg(feature = "auth")]
|
||||
# mod auth_feature_enabled {
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# use gotham::state::State;
|
||||
# use gotham_restful::*;
|
||||
# use serde::Deserialize;
|
||||
|
@ -82,9 +82,9 @@ client is authenticated. Otherwise, an empty _403 Forbidden_ response will be is
|
|||
look something like this (assuming the `auth` feature is enabled):
|
||||
|
||||
```
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# #[cfg(feature = "auth")]
|
||||
# mod auth_feature_enabled {
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# use gotham::state::State;
|
||||
# use gotham_restful::*;
|
||||
# use serde::Deserialize;
|
||||
|
|
Loading…
Add table
Reference in a new issue