Open Philosobyte opened 1 year ago
Probably the parser. Once I've implemented functions I'll check in tera v2 but we have complete control of the parser/Value type so it would be easy to handle
Probably the parser. Once I've implemented functions I'll check in tera v2 but we have complete control of the parser/Value type so it would be easy to handle
Thank you!
A template which contains a large unsigned 64-bit integer as a function argument will fail to parse with a "Integer out of bounds" error:
Here is a test which reproduces the issue:
To add some speculation, I believe the error is happening in the
Template::new
function. It is likely in theparse
call in the first line of that function. I don't know yet whether the error is the fault of the pest parser or the way Tera uses it. It could also be the way Tera usesserde_json
, but some basic testing shows thatserde_json
itself should handle u64s OK.