62 Commits

Author SHA1 Message Date
Laurenz
029ae4a5ea
Export target docs (#5812)
Co-authored-by: Martin Haug <3874949+reknih@users.noreply.github.com>
2025-02-05 13:24:10 +00:00
Laurenz
50ccd7d60f
Scope deprecations (#5798) 2025-02-04 09:38:31 +00:00
Laurenz
6b9b78596a
Don't generate accessors for required fields (#5680) 2025-01-10 16:54:11 +00:00
Peng Guanwen
73253d4651
Support for defining which charset should be covered by a font (#5305)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-17 14:07:45 +00:00
Laurenz
008b59839f Add some more spans 2024-12-04 10:12:07 +01:00
Malo
5c37a1cfea
Use codex for symbols (#5421) 2024-11-17 19:08:23 +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
Laurenz
db9debca6d
Fix warning in proc macro (#5150) 2024-10-07 13:56:45 +00:00
inferiorhumanorgans
4cddb48584
Fix a few doc typos. (#4914)
Co-authored-by: Alex Zepeda <srht@inferiorhumanorgans.com>
2024-09-08 08:28:49 +00:00
Malo
c43997de0a
Move calc.nan to float.nan and add float.inf (#4733) 2024-08-15 20:04:50 +00:00
+merlan #flirora
781eea632f
Add message when trying to access a field that is not set (#4399)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-22 08:59:52 +00:00
Yip Coekjan
6f9855a8c3
Make symbols callable like functions & migrate callable accents to callable symbols (#4299)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-06-13 16:57:34 +00:00
PgBiel
9adcd9a1f8
Refactor casts to use HintedStrResult (#4229) 2024-06-04 15:24:39 +00:00
+merlan #flirora
1694327b70
Refactor Capable::vtable to return Option<NonNull<()>> (#4252) 2024-05-25 19:17:07 +00:00
bluebear94
1fff04f582
Improve macro docs (+ Native*Data docs) (#4240) 2024-05-25 15:33:37 +00:00
Laurenz
95cd6adf24
Factor out typst-utils crate (#4125) 2024-05-13 15:25:43 +00:00
Laurenz
b3615ccd49
A few CI and crate config changes (#3852) 2024-04-02 14:16:44 +00:00
Laurenz
faca50a240
Final touches (#3678) 2024-03-15 14:47:41 +00:00
Laurenz
e3bd39c9d1
Add support for shortcut links in docs (#3547) 2024-03-04 14:51:22 +00:00
geekvest
098ef5acbb
Fix some comments (#3541)
Signed-off-by: geekvest <cuimoman@sohu.com>
2024-03-03 14:50:19 +00:00
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
55a50ace1e Don't discard other attributes in time macro 2024-01-16 10:33:15 +01:00
Laurenz
c2dfbd39a0
Migrate metadata fields out of individual elements (#3200) 2024-01-16 09:24:36 +00:00
Laurenz
37249c20f7 Autogenerate default cast in#[ty] unless cast is specified 2024-01-12 14:43:42 +01:00
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