1
0
Fork 0
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:
Dominic 2019-10-14 02:37:50 +02:00
parent df3b735429
commit 2c31251cb2
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
3 changed files with 6 additions and 10 deletions

View file

@ -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;

View file

@ -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;