Repository navigation
Store required features in bindings - #8599
Conversation
b1b88f3 to
68390b2
Compare
|
There are currently a few places that use |
fc304f8 to
dac471f
Compare
c46437b to
440763a
Compare
|
I think all of the issues mentioned above have been dealt with. The module to dictionary conversion still discards warnings, but I currently don't see a way around that without making it very noisy. Regarding performance: In scripting heavy documents these changes make the compiler slightly slower, but I think this can be justified by the improved user experience. |
f5d3ce6 to
793c5fe
Compare
isuffix
left a comment
There was a problem hiding this comment.
This looks nice! I agree that user experience is worth a small performance decrease, although it is unfortunate.
I only have a few requests for more doc comments.
- use `guard` instead of `context` - use `silent` instead of `discarding` - use `or_cannot(action)` instead of `what(action)`
16b7fee to
4d7d324
Compare
15b27b7 to
ddc01ac
Compare
93 commits novos desde v0.15.1 (tag 9dfd3a0) até upstream/main (a51e028). 397 ficheiros alterados, 5782 inserções, 2831 remoções. Destaques do upstream: - Store required features in bindings (typst#8599) - Support raw serialization format for typst eval (typst#8295) - Add diagnostics-format environment variable (typst#8438) - More robust overhang (typst#8131) - Fix logical indices of hyphens with respect to surrounding tags (typst#8714) - Bump krilla and hayro (typst#8716) - Fix line breaking for hosts starting with a digit (typst#8039) - Fix auto hanging-indent for heading numbering (typst#7247) Build vanilla verificado: cargo build ok (3m02s).
93 commits novos desde v0.15.1 (tag 9dfd3a0) até upstream/main (a51e028). 397 ficheiros alterados, 5782 inserções, 2831 remoções. Destaques do upstream: - Store required features in bindings (typst#8599) - Support raw serialization format for typst eval (typst#8295) - Add diagnostics-format environment variable (typst#8438) - More robust overhang (typst#8131) - Fix logical indices of hyphens with respect to surrounding tags (typst#8714) - Bump krilla and hayro (typst#8716) - Fix line breaking for hosts starting with a digit (typst#8039) - Fix auto hanging-indent for heading numbering (typst#7247) Build vanilla verificado: cargo build ok (3m02s).
(#8402 was closed because the base branch was deleted)
Based on #8571
This defers providing enabled library features until accessing a binding.
It also allows generating a nicer error message for feature gated bindings, instead of just saying it is undefined.
Here's an example of an error message before:
and here the same one after:
We still have to check that this doesn't hurt performance, since
read_checkedis a somewhat hot function.There are currently no tests implemented, because that would require changing the
TestWorldfeatures, which is a bit of a pain and I first want to check for performance regressions.