-
Notifications
You must be signed in to change notification settings - Fork 74
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
ring
linking errors
#32
Comments
The crate does not depend specifically on Rocket 0.3.3 -- in fact I do not even have a Anyway neither this crate nor Rocket depend on |
ring
linking errors
The problem is, this crate depends on rocket 0.3 but rocket master is 0.4.0-dev, so I get this error:
How can I fix this? :) |
I bumped up the rocket version in a fork for now: https://github.com/Boscop/rocket_cors |
Another way to fix this is to simply replace the Rocket dependency to point to Rocket's master branch in your own crate: [patch.crates-io]
rocket = { git = "https://github.com/SergioBenitez/Rocket", version = "0.4.0-dev" } I don't intend to update the master branch to point to an unreleased version of Rocket at the moment. |
I didn't mean to suggest you to do that.. But I like the patch solution more, I tried to do it: [patch.crates-io]
ring = { git = "https://github.com/SergioBenitez/ring", branch = "v0.12" }
rocket = { git = "https://github.com/SergioBenitez/Rocket", version = "0.4.0-dev" } (the ring patch was from before, to make it work)
Why does it use the ring patch but not the one for rocket? Btw, in the rest of my Cargo.toml I have: rocket = { git = "https://github.com/SergioBenitez/Rocket", version = "0.4.0-dev" }
rocket_codegen = { git = "https://github.com/SergioBenitez/Rocket", version = "0.4.0-dev" }
rocket_contrib = { git = "https://github.com/SergioBenitez/Rocket", version = "0.4.0-dev" } |
Looks like you need to do the same for Cookie. Might just be better off using your forked version if you have to do this for every other dependency. |
But how to do this for cookie? Am I not doing it globally for ALL crates that depend on rocket? |
Seems like there is no way to patch it, so I have to keep using my fork.. |
That's unfortunate. I hope the author of ring removes that restriction.
On Thu, 11 Jan 2018, 20:09 Boscop, ***@***.***> wrote:
11:04 <Sergio> You can only patch within semver compatible versions
Seems like there is no way to patch it, so I have to keep using my fork..
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA8APfdlZBxN51QLcfB5YvJZ6GN4Wf9yks5tJfoOgaJpZM4RV0qP>
.
--
Regards
Yong Wen
|
Rocket 0.4 now requires ring 0.13. |
My
Error that I see:
What I did wrong? |
@incker: I haven't updated the crate to support Rocket Fixed in #53. New release: https://github.com/lawliet89/rocket_cors/releases/tag/v0.4.0-rc.3 |
I am not sure, what exactly have helped me, but this code works for me:
maybe version of Thank you |
Maybe it is already not that topic to write, |
rocket_cors = "0.4.0-rc.3" would be sufficient. Like the earlier comments in the issue, anything that depends directly or transitively on |
I am closing this issue for now. The version of Ring supported by this crate will track that of Rocket's. |
The rocket master contains a fix that allows not setting SameSite on a cookie at all, which I need.
But I also depend on this crate.
But this crate depends on rocket 0.3.3 which depends on a different version of the ring crate than rocket master, which gives linking errors. So it will only work if this crate is updated to also depend on rocket master so both depend on the same version of the ring crate.
The text was updated successfully, but these errors were encountered: