Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library seems deprecated #6

Open
antondc opened this issue Apr 2, 2022 · 1 comment
Open

Library seems deprecated #6

antondc opened this issue Apr 2, 2022 · 1 comment

Comments

@antondc
Copy link

antondc commented Apr 2, 2022

With last Rocket version, which doesn't support Rocket::ignite, error is returned when consuming the library:

#![feature(proc_macro_hygiene, decl_macro)]

extern crate rocket;

use rocket_swagger_ui;
use swagger_ui;

fn main() -> () {
  rocket::build()
    .mount(
      "/api/v1/swagger/",
      rocket_swagger_ui::routes(
        // Specify file with openapi specification,
        // relative to current file
        swagger_ui::swagger_spec_file!("../../swagger-ui/examples/openapi.json"),
        swagger_ui::Config { ..Default::default() },
      ),
    )
    .launch();
}
the trait bound `std::vec::Vec<Route>: From<std::vec::Vec<rocket::router::route::Route>>` is not satisfied

If library is not currently maintained please tag it as so or add a warning about the dependency.

@kotborealis
Copy link
Owner

kotborealis commented Apr 2, 2022

Hey, thanks for this issue!
Actually, this library was written as an attempt to get familiar with rust, and I didn't really plan on supporting it.
I'll try to find some time tomorrow to fix it though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants