Commit Graph

28 Commits

Author SHA1 Message Date
Sébastien d'Herbais de Thun a236e362db
Fix `#[internal]` fields needing `IntoValue` impl (#3103) 2024-01-02 09:06:56 +00:00
Sébastien d'Herbais de Thun c4d9b0c3d8
New performance timings (#3096)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-12-30 12:36:15 +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
Laurenz 713cde1136 Make workspace inheriting consistent 2023-11-27 16:54:55 +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 b5956ca3f1
Document the `#[ghost]` attribute from #2718 (#2721) 2023-11-20 18:20:42 +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
Laurenz 4794bd35fa Switch to workspace dependencies 2023-11-08 12:56:35 +01:00
Sébastien d'Herbais de Thun c0f6d2004a
Content rework 2 - Electric Boogaloo (#2504) 2023-11-06 21:37:50 +01:00
Fritz Rehde c3114fa380
Fixed typos (#2524) 2023-10-30 23:25:28 +01:00
Laurenz 24a0bd8cfb Fix error priority for function arguments
Errors about superfluous arguments are now thrown before errors of the function execution itself.

Fixes #1367
2023-10-27 15:38:08 +02:00
Laurenz cbfd9884a9 Fix argument parsing bug
Things like `luma(1, key: "val")` didn't produce an error before because `args.finish()?` wasn't called. This changes `args: Args` to `args: &mut Args` to make it impossible for that to happen.
2023-10-27 13:25:15 +02:00
Laurenz 8f36fca684 Better proc macros 2023-09-11 14:38:54 +02:00
Beiri22 ea469c2df6
calm down clippy even more (#1997) 2023-08-25 14:27:50 +02:00
Laurenz 07c80e9a81 Touch up docs 2023-08-07 15:58:16 +02:00
damaxwell c72952b512
Center delimiters vertically about the axis (#1756) 2023-07-20 12:50:12 +02:00
Sébastien d'Herbais de Thun 07553cbe71
Raw syntax definition loading (#1655) 2023-07-06 13:51:28 +02:00
Laurenz ebfdb1dafa Move everything into `crates/` directory 2023-07-02 20:07:43 +02:00