Skip to content

Using the unreleased rocket_db_pools with other Rocket-dependent crates #1901

Answered by jebrosen
benny-n asked this question in Questions
Discussion options

You must be logged in to vote

Or maybe there's a workaround that I'm not familiar with to sort these dependencies?

There is, somewhat; unfortunately it's a bit inconvenient to maintain. In particular, you could try using the [patch] section in Cargo.toml, and/or private forks and path dependencies.

In this case, you may be able to make a copy of rocket_oauth2 that depends on rocket via git (at the same branch/tag/rev as everything else uses) instead of by version, and then either depend on the copy via path or by using [patch]. This approach can get quite complicated as you add more dependencies, of course, and it does add a bit more work to the updating and maintenance process. But, it can be quite useful for tryin…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@benny-n
Comment options

Answer selected by benny-n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants