Laurenz
a8a2014422
Directly use string conversion methods on Bytes
...
This lets `read` reuse the string for `Str`-backed `Bytes`. Also makes `within` more generally applicable just like `at`.
2025-06-10 14:29:22 +02:00
Tobias Schmitz
2fc89b8e5f
chore: more meaningful error message
2025-06-10 13:47:42 +02:00
Tobias Schmitz
0ed6b31b70
refactor: implement TryFrom<&Bytes> for Lines
...
- remove Bytes::load_str and impl From<Utf8Error> for LoadError
2025-06-10 13:47:41 +02:00
Tobias Schmitz
2d3e883d2b
refactor: apply some suggestions
...
- rename Loaded::bytes to data
- change `let data = source.load()` to `let loaded`
- only expose a single `within` method for the LoadedWithin trait
- invalid utf-8 data is a rare edge case
- only store one EcoString inside LoadError
- mutate it when using `LoadedWithin::within` method
2025-06-10 13:47:41 +02:00
Tobias Schmitz
80491a459c
docs: update some comments
2025-06-10 13:47:41 +02:00
Tobias Schmitz
1c4eea8353
feat: use LoadError to avoid polluting memoization with callsite spans and file ids
2025-06-10 13:47:41 +02:00
Tobias Schmitz
e5d8f02554
refactor: factor out a general Lines struct from Source
2025-06-10 13:47:41 +02:00
Tobias Schmitz
2e2f646f2a
refactor: Loaded err_at to err_in_text
2025-06-10 13:47:41 +02:00
Tobias Schmitz
a79120b668
refactor: rename Data to Loaded
2025-06-10 13:47:41 +02:00
Tobias Schmitz
7e6c3b4159
feat: show external error messages in csv, json, toml, xml, yaml, and syntax/theme files
2025-06-10 13:47:41 +02:00
Tobias Schmitz
9e820f883e
fix: silent hayagriva bibliography parsing error due very lenient biblatex parser
...
Fixes #6030
2025-06-10 13:47:41 +02:00
Tobias Schmitz
a5f410a76d
feat: show bibliography errors in bibtex/hayagriva files
2025-06-10 13:47:41 +02:00
+merlan #flirora
14a0565d95
Show warnings from eval ( #6100 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-04-07 18:42:29 +00:00
Kevin K.
37bb632d2e
Fix missing words and paren in docs ( #6046 )
2025-03-12 12:45:57 +00:00
Laurenz
26e65bfef5
Semantic paragraphs ( #5746 )
2025-01-24 12:11:26 +00:00
Malo
2d33393df9
Add support for c2sc
OpenType feature in smallcaps
( #5655 )
2025-01-23 18:24:35 +00:00
Laurenz
6b9b78596a
Don't generate accessors for required fields ( #5680 )
2025-01-10 16:54:11 +00:00
Laurenz
e2b37fef33
Revamp data loading and deprecate decode
functions ( #5671 )
2025-01-09 09:34:16 +00:00
Laurenz
d40c8ab6ab
Compile-time PicoStr
interning ( #5491 )
2024-11-29 15:03:08 +00:00
Abdul-Rahman Sibahi
b969c01b28
Replace once_cell
's Lazy
as much as possible ( #4617 )
...
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-10-31 11:52:11 +00:00
Laurenz
be7cfc85d0
Split out four new crates ( #5302 )
2024-10-27 18:04:55 +00:00