Closed jiangxiaoqiang closed 2 years ago
Both Swagger and Rapidocs are available under feature flags. https://github.com/GREsau/okapi#feature-flags
So try something like this:
rocket_okapi = { git = "https://github.com/GREsau/okapi.git", features = ["swagger", "rapidoc"] }
That should fix it.
I am import the dependencies like this:
when I added this imports:
use rocket_okapi::{openapi, openapi_get_routes, rapidoc::*, swagger_ui::*};
show error:
what should I do to fix it?