mirror of
https://gitlab.com/msrd0/gotham-restful.git
synced 2025-05-09 08:00:41 +00:00
introduce without-openapi feature to improve #4
This commit is contained in:
parent
b7a1193333
commit
daea3ba9ec
4 changed files with 17 additions and 5 deletions
|
@ -378,6 +378,12 @@ directory, that might help you. Any help writing more examples is highly appreci
|
|||
[`State`]: ../gotham/state/struct.State.html
|
||||
*/
|
||||
|
||||
#[cfg(all(feature = "openapi", feature = "without-openapi"))]
|
||||
compile_error!("The 'openapi' and 'without-openapi' features cannot be combined");
|
||||
|
||||
#[cfg(all(not(feature = "openapi"), not(feature = "without-openapi")))]
|
||||
compile_error!("Either the 'openapi' or 'without-openapi' feature needs to be enabled");
|
||||
|
||||
// weird proc macro issue
|
||||
extern crate self as gotham_restful;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue