27 Commits

Author SHA1 Message Date
Laurenz
145723b1ef
New context system (#3497) 2024-02-27 10:05:16 +00:00
Laurenz
1f68e15725
Minor realization improvements (#3408) 2024-02-13 18:35:38 +00:00
Laurenz
7d33436e55
Fix show-set semantics (#3311) 2024-02-01 13:30:17 +00:00
Laurenz
426445edfc
Ensure synthesized field access never panics (#3310) 2024-01-31 13:56:57 +00:00
Laurenz
b744b87818
Respect set rules in where selectors (#3290) 2024-01-30 14:24:41 +00:00
Laurenz
a1e8560ca6
Refactor #[elem] macro (#3303) 2024-01-30 13:49:51 +00:00
Laurenz
f14288cacf
Refactor folding (#3294) 2024-01-30 09:43:08 +00:00
Laurenz
23bb48b31e Refactor capability helpers 2024-01-29 12:40:28 +01:00
Laurenz
03079887f3 Merge Fields and ElementFields traits 2024-01-29 12:37:55 +01:00
Laurenz
cb69648e2f Add a few manual Debug impls to elements 2024-01-17 17:32:51 +01:00
Laurenz
c2dfbd39a0
Migrate metadata fields out of individual elements (#3200) 2024-01-16 09:24:36 +00:00
Sébastien d'Herbais de Thun
a236e362db
Fix #[internal] fields needing IntoValue impl (#3103) 2024-01-02 09:06:56 +00:00
Laurenz
0c08022ffa Remove uses of EcoString::inline
EcoString::inline can produce runtime panics if things are changed later. It should only be used if really necessary (because of const context)
2023-12-28 13:58:03 +01:00
Sébastien d'Herbais de Thun
3e96f5f75f
Fix label in .fields() accessor (#2884) 2023-12-07 12:22:07 +01:00
Sébastien d'Herbais de Thun
7f10d3282e
Fix defaults on #[synthesized] fields (#2825)
Fixes #2821
2023-12-04 11:44:34 +01:00
Laurenz
de40124adb Fix content hashing
Fixes #2800
2023-11-30 13:49:17 +01:00
Sébastien d'Herbais de Thun
0fbb1aaaaa
Optimize Content::has, Introspector::query_label, and MetaElem (#2759) 2023-11-27 11:37:30 +01:00
danieleades
e36a18b991
Use clippy workspace lints and inline format args (#2771) 2023-11-27 11:34:14 +01:00
Laurenz
85b1d1d4dd Rework Vt into Engine
- Moves as much data out of the `Vm`
- Removes duplication with call_vm and call_vt flavours
- Uses tracked chain instead of fixed int for determining max nesting depth
- This means that nesting checks now generalizes to layout and realization, to detect crashing show rules and overly nested layouts
2023-11-26 19:03:21 +01:00
Laurenz
7eebafa783 Merge typst and typst-library 2023-11-24 12:30:02 +01:00
frozolotl
e5470401f4
Fix has on non-inherent fields (#2745) 2023-11-24 11:41:38 +01:00
Sébastien d'Herbais de Thun
9b5b3b2557
Added ghost attr to elem macro (#2718) 2023-11-19 19:23:00 +01:00
Laurenz
2da619e17c Streamline imports 2023-11-19 16:34:38 +01:00
Sébastien d'Herbais de Thun
5aaaacbf47
Allow elem synthesized fields to take a default value (#2687) 2023-11-17 10:39:08 +01:00
Laurenz
7f0fcda376 Move some things out of util 2023-11-08 23:42:45 +01:00
Sébastien d'Herbais de Thun
c0f6d2004a
Content rework 2 - Electric Boogaloo (#2504) 2023-11-06 21:37:50 +01:00
Laurenz
8f36fca684 Better proc macros 2023-09-11 14:38:54 +02:00