Comments (5)
@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.
It seems that 5.0.0-beata.2
suffers from the same issue.
from handlebars-rust.
@turboMaCk just to confirm with version do you want me to resolve to, 2.5.x
or 2.6.0
?
from handlebars-rust.
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.
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)
- compile string to template without registering HOT 5
- Recursive rendering, is it possible? HOT 1
- Each loop not aligned with inline HOT 2
- `DirectorySourceOptions` is not exposed publicly due to its containing module being private HOT 3
- Rhai 1.16 upgrade HOT 1
- DirectorySourceOptions members are not pub HOT 1
- Extra whitespace added to `each` when the `/each` isn't followed by `\n` HOT 1
- extra whitespaces after \n in partial when rendered from a partial HOT 2
- Handling localization for data? HOT 4
- Failure to trim non-escaped variables HOT 1
- Support for text processing helpers HOT 4
- ographs issue HOT 3
- After PR #619, use consistent naming of string converters HOT 1
- QUESTION: Include templates in resulting binary HOT 1
- Parameters list of a template HOT 4
- XPath helper questions HOT 4
- Reuse `RenderContext` after executing partial HOT 3
- Can't get the built-in `log` helper to output message HOT 2
- More succinct error messages for `RenderError` HOT 1
- Using a Partial in a Rocket application seems to not work HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handlebars-rust.