mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-04-20 06:54:46 +00:00
weird proc macro issue
This commit is contained in:
parent
df3b735429
commit
2c31251cb2
3 changed files with 6 additions and 10 deletions
|
@ -70,6 +70,9 @@ OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS LICENSE.
|
|||
[serde_json]: https://github.com/serde-rs/json#serde-json----
|
||||
*/
|
||||
|
||||
// weird proc macro issue
|
||||
extern crate self as gotham_restful;
|
||||
|
||||
#[macro_use] extern crate gotham_derive;
|
||||
#[macro_use] extern crate serde;
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ This can be returned from a resource when there is no cause of an error. For exa
|
|||
```
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# use gotham::state::State;
|
||||
# use gotham_restful::Success;
|
||||
# use gotham_restful::*;
|
||||
# use serde::{Deserialize, Serialize};
|
||||
#
|
||||
# #[derive(Resource)]
|
||||
|
@ -125,6 +125,7 @@ the function attributes:
|
|||
```
|
||||
# #[macro_use] extern crate gotham_restful_derive;
|
||||
# use gotham::state::State;
|
||||
# use gotham_restful::*;
|
||||
#
|
||||
# #[derive(Resource)]
|
||||
# struct MyResource;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue