1
0
Fork 0
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:
Dominic 2021-01-14 18:55:44 +01:00
parent b7a1193333
commit daea3ba9ec
Signed by: msrd0
GPG key ID: DCC8C247452E98F9
4 changed files with 17 additions and 5 deletions

View file

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