René Kijewski
dfcfde9ce9
generator: use re-exported core
and std
...
This way, even a shadowed `core` or `std` does not prevent the generated
code from working correctly.
2024-10-04 06:40:00 +02:00
René Kijewski
92e3bf88b5
Add warning about slow .to_string()
method
2024-09-16 17:17:46 +02:00
René Kijewski
324e5fc76b
Speed up writing into io::Write
e.g. Vec<u8>
...
```text
$ cd testing
$ cargo bench --bench all
Big table (io) time: [109.07 µs 109.25 µs 109.45 µs]
change: [-42.044% -41.581% -41.182%] (p = 0.00 < 0.05)
Performance has improved.
Teams (io) time: [265.28 ns 266.07 ns 267.12 ns]
change: [-20.221% -19.898% -19.538%] (p = 0.00 < 0.05)
Performance has improved.
```
2024-09-14 00:07:09 +02:00
René Kijewski
f449877256
doc: document everything in rinja
2024-08-20 08:10:16 +02:00
René Kijewski
757ba0ac7e
doc: use feature(doc_cfg, doc_auto_cfg)
everywhere
2024-08-20 07:36:11 +02:00
René Kijewski
62ef553dcb
readme: add badges
2024-08-04 01:23:49 +02:00
René Kijewski
f8b0481262
Make html escaping available to derive
2024-07-27 20:31:12 +02:00
René Kijewski
e95bc340ac
Don't link latest version of the book
...
This way we will be able to decide whether we want to link the
bleeding-edges version of the book, or (more likely) the last stable
release.
2024-07-16 13:04:41 +02:00
René Kijewski
760fa7d4ca
Use named W: fmt::Writer
template argument
...
In my opinion it's much easier to read than `&mut (impl …)`. Also, it
might come in handy to have access to the type in the generator.
2024-07-13 10:50:03 +02:00
René Kijewski
a84678c46d
Move #[derive(Template)]
comment to the macro itself
...
Less searching for an explanation.
I also restructured the text to use sections instead of bullet points.
And lastly I made `rinja_derive_standalone` export `derive_template`,
too, instead of `derive_template2`. This way we have less macro-magic.
2024-07-09 17:23:22 +02:00
René Kijewski
52915f4ce3
Simplify |escape
: make it a "normal" filter
2024-07-07 22:51:19 +02:00
René Kijewski
48d69bfb4c
Move rinja_escape into rinja
2024-07-07 22:51:17 +02:00
René Kijewski
823b16f320
Enable feature(doc_auto_cfg)
and --generate-link-to-definition
2024-06-20 20:57:41 +02:00
René Kijewski
32ee14f875
Add link to our book in README.md
2024-06-18 14:35:16 +02:00
Guillaume Gomez
2d80cc3524
Rename everything to rinja
2024-06-17 15:58:52 +02:00