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

Republish rocket_contrib to crates.io to update tera version to 0.10.* #301

Closed
msarris opened this issue May 29, 2017 · 3 comments
Closed
Labels
duplicate This issue or pull request already exists question A question (converts to discussion)

Comments

@msarris
Copy link

msarris commented May 29, 2017

Hi Sergio,

The published version of rocket_contrib (https://crates.io/crates/rocket_contrib) has a dependency on the tera templating library version 0.7.0 at the moment. I'm trying out some stuff with rocket (great project btw.), and I want to try out some features that are added to tera later ({% set ... %} for example). I saw you already updated the version in Cargo.toml in this repo, but probably after it was published?

Would you mind publishing the crate with the latest version? Much appreciated!

Or if you know a way of overriding a version with a newer one (in Cargo.toml), I already tried to use the [replace] section but that only works if the replacement library has the exact same version, that would mean I need to fork the tera repo and just update the version, which seems silly.

Keep up the good work and best regards,

Michali Sarris

@mp4096
Copy link

mp4096 commented May 29, 2017

Hi, I had a similar question in #300

My solution is to specify dependency on the git repo:

[dependencies.rocket]
git = "https://github.com/SergioBenitez/Rocket"
rev = "a4292ba666fa60448e575b600d69f131795da080"

[dependencies.rocket_codegen]
git = "https://github.com/SergioBenitez/Rocket"
rev = "a4292ba666fa60448e575b600d69f131795da080"

[dependencies.rocket_contrib]
git = "https://github.com/SergioBenitez/Rocket"
rev = "a4292ba666fa60448e575b600d69f131795da080"
default-features = false
features = ["handlebars_templates"]

@msarris
Copy link
Author

msarris commented May 29, 2017

Thanks, that works. I thought about doing that, but I didn't know it's also possible with multiple crates in a single repository. And I should have checked the closes issues. I'll close this issue.

@msarris msarris closed this as completed May 29, 2017
@mp4096
Copy link

mp4096 commented May 29, 2017

Yeah, I didn't know this either! But then I found this one: rust-lang/cargo#1462

@SergioBenitez SergioBenitez added duplicate This issue or pull request already exists question A question (converts to discussion) labels May 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question A question (converts to discussion)
Projects
None yet
Development

No branches or pull requests

3 participants