udoprog / genco

A whitespace-aware quasiquoter for beautiful code generation.
Apache License 2.0
181 stars 11 forks source link

Add basic support for using genco to tokenize on stable #20

Closed udoprog closed 2 years ago

udoprog commented 2 years ago

This forces whitespace detection behind a configuration flag that needs to be activated through RUSTFLAGS="--cfg genco_nightly", otherwise it falls back to performing a tokenization similar to quote.

This is a breaking change intending to allow genco to be used on stable, but it then won't work for whitespace sensitive languages like python. Projects can still benefit performance-wise from the way that genco performs code generation which would allow for fewer allocations.