GithubHelp home page GithubHelp logo

Comments (5)

turboMaCk avatar turboMaCk commented on May 27, 2024 1

@sunng87 see the comment above.

The workaround that works is to add dependecy on pest with pin version as:

pest = { version = "=2.5.6" }

to the project.

This is how you can pin the pest dependency from the project using handlebars (provided you understand how what the issue is and how to resolve it downstream). Every new project which will want to add this library will probably need to do this or something similar to this.

I think it would be worth fixing things upstream rather than letting downstream project to deal with the issue. Anyway real upstream is pest in this case. In the end I personally don't care that much since I've already been able to work around the issue and can't personally do anything to prevent others from having to go through the same (other than providing the info above) anyway so I don't really feel invested in this. Feel free to close the issue if you don't feel like patching this on side of handlebars.

from handlebars-rust.

turboMaCk avatar turboMaCk commented on May 27, 2024

It seems that 5.0.0-beata.2 suffers from the same issue.

from handlebars-rust.

sunng87 avatar sunng87 commented on May 27, 2024

@turboMaCk just to confirm with version do you want me to resolve to, 2.5.x or 2.6.0?

from handlebars-rust.

turboMaCk avatar turboMaCk commented on May 27, 2024

The workaround that works is to add dependecy on pest with pin version as:

pest = { version = "=2.5.6" }

to the project.

Relevant comment upstream pest-parser/pest#849 (comment)

@sunng87 2.5.6 version compiles without errors.

from handlebars-rust.

sunng87 avatar sunng87 commented on May 27, 2024

Thank you for the information. Actually I'm not a big fan of pinned dependencies in a library. I'm worrying that it could bring in more problems than it resolves. Have you tried to pin the version in your application project?

from handlebars-rust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.