Plecra
Plecra
Would it be possible to add an expression macro that would automatically generate the struct definition? ```rust let name = "world"; println!("{}", askama::template!("Hello, {name}").render().unwrap()); // then render it. ``` I'd...
Running the usage example on Windows, I get a slightly different output to the documentation: ```sh May 15 15:45:37.897 INFO read_config:read_file{path="fake_file"}: Reading file Error: 0: Unable to read config 1:...
I needed the crate for another project and spotted a couple lines that could be simplified. The code should behave the same
It'd be handy to have a type that guaranteed the encoding like `str` does. There could be an optional dependency on something like `widestring`, or just a very simple wrapper...
Fixes #50 as the problem was confirmed by a user on the community discord. I'm reasonably confident there aren't any problems with the new code, but it's always a good...
https://github.com/softprops/atty/blob/7b5df17888997d57c2c1c8f91da1db5691f49953/src/lib.rs#L131 By replacing this vector with an array, we can remove the std dependency. The allocation is only 524 bytes long, and it wouldn't be unreasonable to allocate it on...
https://github.com/softprops/atty/blob/7b5df17888997d57c2c1c8f91da1db5691f49953/src/lib.rs#L131-L141 As far as I can tell, the pointer deference on line 141 in unsound, as there is no guarantee the vector will be properly aligned for `FILE_NAME_INFO` (which has...
It's be really great to have a library that could be used for any application that wants to generically "open" files, or register itself as a default file handler. Since...
https://github.com/vrtbl/passerine/blob/3796465ae108bba8b3a66f5c3ab71709a76b3fc8/src/compiler/lex.rs#L152-L158 UTF-8's ability to represent ASCII in-place allows lexers for ASCII characters to be implemented extra-efficiently by skipping decoding of utf-8 bytes. It's fine to simply scan directly through the...