Ryan Bartling

Results 5 comments of Ryan Bartling
trafficstars

I would like to see this as a debug feature. Off by default for release builds.

For the time being I created this macro for my use: ```rust #[cfg(feature = "file_lines")] macro_rules! line_leader { () => { format!("{}:{}", file!(), line!()); }; } #[cfg(feature = "file_lines")] macro_rules!...

Using lua-formatter plugin with sublime on windows. Line endings set to windows: ``` hexdump -C scripts/test_zinc_scripts.lua 00000000 23 21 2f 75 73 72 2f 62 69 6e 2f 65 6e...

Created a discussion for some workarounds for the time being: https://github.com/typst/typst/discussions/3090 I think this can be generalized to SVG->PDF->SVG for use cases other than mermaid diagrams.

Fairly new to rust, and I'm curious, why is formatting macros in rust hard. How does it compare to formatting macros or templates in C++?