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

Rocket v0.5.0-rc.4 has been released. Update sea-orm-rocket to be compatible with the new version #1958

Closed
Tracked by #1959
kije opened this issue Nov 3, 2023 · 4 comments

Comments

@kije
Copy link

kije commented Nov 3, 2023

Rocket 0.5.0-rc.4 was just released with several breaking changes.

At the moment sea-orm-rocket="=0.5.2" is not compatible with v0.5.0-rc.4

error[E0599]: no function or associated item named `default` found for trait `Paint`
   --> /.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-rocket-0.5.2/src/database.rs:134:30
    |
134 |         let fairing = Paint::default(format!("{}::init()", dbtype)).bold();
    |                              ^^^^^^^ function or associated item not found in `Paint`

error[E0599]: no function or associated item named `default` found for trait `Paint`
   --> /.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-rocket-0.5.2/src/database.rs:137:20
    |
137 |             Paint::default(dbtype).bold()
    |                    ^^^^^^^ function or associated item not found in `Paint`

error[E0599]: no variant or associated item named `Failure` found for enum `Outcome` in the current scope
   --> /.cargo/registry/src/index.crates.io-6f17d22bba15001f/sea-orm-rocket-0.5.2/src/database.rs:264:30
    |
264 |             None => Outcome::Failure((Status::InternalServerError, None)),
    |                              ^^^^^^^ variant or associated item not found in `Outcome<_, (Status, _), Status>`

@wyatt-herkamp wyatt-herkamp mentioned this issue Nov 3, 2023
2 tasks
@tyt2y3
Copy link
Member

tyt2y3 commented Nov 6, 2023

Seems like we are blocked by GREsau/okapi#130
I'll remove okapi integration for now.

@tyt2y3
Copy link
Member

tyt2y3 commented Nov 6, 2023

I've just released https://crates.io/crates/sea-orm-rocket/0.5.3
Can @kije @wyatt-herkamp verify if it works?

@kije
Copy link
Author

kije commented Nov 6, 2023

@tyt2y3 looks good, worked in my test 👍 Thnky you very much @tyt2y3 @wyatt-herkamp

@kije kije closed this as completed Nov 6, 2023
@tyt2y3
Copy link
Member

tyt2y3 commented Nov 6, 2023

Thank you all!

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