146 Commits

Author SHA1 Message Date
Myriad-Dreamin
758ee78ef5
Make World::font implementations safe (#6117) 2025-03-31 08:08:55 +00:00
Eduardo Sánchez Muñoz
38213ed534
Use u64 instead of usize to store counter and enumeration item numbers, so behavior does not vary from 64-bit to 32-bit platforms (#6026) 2025-03-24 18:16:33 +00:00
Laurenz
69c3f95705
Bump MSRV to 1.83 and Rust in CI to 1.85 (#5946) 2025-02-24 12:28:01 +00:00
Laurenz
dacd6acd5e
More flexible and efficient Bytes representation (#5670) 2025-01-08 10:57:56 +00:00
Michael Färber
df4e6715cf
HTML tests (#5594)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-20 09:48:17 +00:00
Laurenz
f8f2ba6a5f Rename Document to PagedDocument 2024-12-04 10:12:07 +01:00
Ian Wrzesinski
a2761ab75a 2. Allow compiling test-runner with only typst_syntax 2024-10-31 18:26:12 -04:00
Ian Wrzesinski
da83f33c4c 1. Add test-runner option to compare parser output 2024-10-31 18:26:12 -04: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
788ae10a07
PDF export diagnostics (#5073) 2024-09-30 12:43:29 +00:00
Laurenz
e25389a85e
New flow layout, with multi-column floats (#5017) 2024-09-25 08:26:41 +00:00
Laurenz
16e67f8bea
Shrink tests (#4967) 2024-09-16 14:41:18 +00:00
Laurenz
a452fc94bb
Terminate tests when stuck for 10s (#4905) 2024-09-05 19:59:00 +00:00
Laurenz
cf05284a0c
Small improvements to the test runner (#4838) 2024-08-26 11:40:37 +00:00
Max
cefca7a7d8
Fix typos (#4784) 2024-08-20 15:12:12 +00:00
Laurenz
986d624b3a
Share allocations for singletons (#4794) 2024-08-20 10:56:54 +00:00
Laurenz
d97d71948e
Fix document set rules (#4768) 2024-08-16 10:53:12 +00:00
Laurenz
0c37a2c233
Support transparent page fill (#4586)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-07-20 12:51:24 +00:00
Myriad-Dreamin
a3f3a1a833
Change the signature of World::main (#4531)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-07-14 13:14:21 +00:00
Leedehai
ab5cebc57c
Let test error hide line number if it's zero (#4535) 2024-07-11 14:43:16 +00:00
Laurenz
a68a241570
Remove Tracer (#4365) 2024-06-10 09:00:54 +00:00
Laurenz
a52987a8c2
Refactor frame metadata into tags (#4212) 2024-05-22 09:26:03 +00:00
Laurenz
2d32ac73b6
Replace all Prehashed with LazyHash (#4127) 2024-05-13 17:54:34 +00:00
Laurenz
95cd6adf24
Factor out typst-utils crate (#4125) 2024-05-13 15:25:43 +00:00
PgBiel
7905de67bc
Add parameter to select pages to be exported by CLI (#4039) 2024-05-10 14:47:02 +00:00
Laurenz
be12762d94
Run PDF and SVG export in CI (#4097) 2024-05-08 11:01:08 +00:00
Leedehai
1b091d628d
Enhance the test runner: regex, --list, --path (#3945) 2024-04-18 12:20:42 +00:00
Laurenz
020294fca9
Better test runner (#3922) 2024-04-13 08:39:45 +00:00
Laurenz
82617a6a3c
Generate PDF ID automatically unless we really have a stable ID (#3591) 2024-03-09 11:55:03 +00:00
Laurenz
5dc6ce0022
Remove unmaintained benchmarks (#3569) 2024-03-07 09:50:03 +00:00
Laurenz
a558fd232b
Add typst init command (#3544) 2024-03-06 11:33:35 +00:00
Laurenz
8d63b0479c
Make use of is_some_and where applicable (#3523) 2024-02-28 14:24:50 +00:00
Laurenz
e16d3f5a67
Externalize assets (#3515) 2024-02-28 10:06:54 +00:00
Laurenz
145723b1ef
New context system (#3497) 2024-02-27 10:05:16 +00:00
Laurenz
be49935753
Destructuring improvements (#3463) 2024-02-21 08:38:47 +00:00
Laurenz
36d588ae5d
Run tests roughly in order (#3402) 2024-02-12 10:02:11 +00:00
Laurenz
6ac71eeaf7 Add Page struct
To get rid of the Meta hack where numbering and things like that are stored in the frame.
2024-01-17 21:53:20 +01:00
astrale-sharp
c20b6ec6e1
Test autocomplete (#2912)
Co-authored-by: oliver <151407407+kwfn@users.noreply.github.com>
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-01-09 09:05:57 +00:00
PgBiel
c361566cb2
Show which reference image was updated (#3008) 2023-12-19 10:19:20 +01:00
Laurenz
22ba6825db
Key/Value data from CLI (#2894) 2023-12-18 12:18:41 +01:00
Laurenz
cf6ce9fd53 Make World thread-safe 2023-12-14 22:58:56 +01:00
Leedehai
9a62b21a25
Let test.rs --exact also accept file path of a typ file (#2817) 2023-12-06 11:02:27 +01:00
Leedehai
d1835b418f
Use a rotating test progress printer (#2872) 2023-12-06 11:02:08 +01:00
Laurenz
8a2ef9ea01 Enable workspace lints for tests 2023-12-04 14:58:11 +01:00
Laurenz
3b9acf5563 Bump dependencies 2023-11-27 17:16:42 +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
Laurenz
35d6a891bc Rename typeset function to layout 2023-11-19 18:17:06 +01:00
Laurenz
e0d6526a53
Watching fixes (#2706) 2023-11-19 12:31:42 +01:00
Laurenz
7f0fcda376 Move some things out of util 2023-11-08 23:42:45 +01:00