rinja-rs / rinja

A template rendering engine based on Jinja, generating type-safe Rust code at compile time.
https://rinja.readthedocs.io
Apache License 2.0
116 stars 10 forks source link

Add `.rustfmt.toml` configuration #45

Closed Kijewski closed 3 months ago

Kijewski commented 3 months ago

This PR configures the formatting with a few defaults that aid readability, in my opinion. One drawback of adding this file is that rustfmt uses unstable features, now, and you have to use nightly to run it:

cargo +nightly fmt --all
Kijewski commented 3 months ago

This PR is quite opinionated. It's totally OK if you don't like it or if you would use other settings. :)

GuillaumeGomez commented 3 months ago

I like it, just hope it won't make things too difficult for contributors. Well, we'll see. Thanks!