Commit Graph

161 Commits

Author SHA1 Message Date
Laurenz 88dfe4d276
Use `rustc-hash` for hash maps and sets (#6678) 2025-07-31 08:45:03 +00:00
Laurenz e9f1b5825a
Lint for iterations over hash types (#6652) 2025-07-24 11:34:08 +00:00
Laurenz b036fd97ab Reformat with 2024 edition 2025-07-21 15:22:29 +02:00
Laurenz c9c2315ad3 Fix 2024 clippy warnings 2025-07-21 15:22:29 +02:00
Laurenz 98802dde7e
Complete movement of HTML export code to `typst-html` (#6584) 2025-07-10 10:42:34 +00:00
Jassiel Ovando 1bbb58c43f
Add completions subcommand (#6568) 2025-07-09 12:41:40 +00:00
Laurenz e71674f6b3
Construct library via extension trait instead of default & inherent impl (#6576) 2025-07-09 09:28:26 +00:00
Adrián Delgado c99f3ffc7d
Fix typo in PDF standard CLI help part 2 (#6531) 2025-06-30 16:51:36 +00:00
cAttte f9897479d2
Unify `EvalMode` and `LexMode` into `SyntaxMode` (#6432) 2025-06-12 14:09:37 +00:00
Y.D.X. 19325d5027
Warning when watching stdin (#6381)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-11 14:21:05 +00:00
Laurenz 98034903e4
Adjust source file API surface (#6423) 2025-06-10 18:13:33 +00:00
Tobias Schmitz a18ca3481d
Report errors in external files (#6308)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-06-10 12:46:27 +00:00
+merlan #flirora 14a0565d95
Show warnings from eval (#6100)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-04-07 18:42:29 +00:00
Laurenz Stampfl 96dd67e011
Switch PDF backend to `krilla` (#5420)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-04-01 14:42:52 +00:00
+merlan #flirora e60d3021a7
Add env setting for ignore_system_fonts (#6092) 2025-03-31 08:17:37 +00:00
Myriad-Dreamin 758ee78ef5
Make `World::font` implementations safe (#6117) 2025-03-31 08:08:55 +00:00
Laurenz f31c971624
Deduplicate watcher update call (#5955) 2025-02-25 12:47:41 +00:00
aodenis acd3a5b7a5
Fix high CPU usage due to inotify watch triggering itself (#5905)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-02-25 12:41:54 +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
Matthew Toohey 3de3813ca0
--make-deps fixes (#5873) 2025-02-18 18:04:40 +00:00
Laurenz dacd6acd5e
More flexible and efficient `Bytes` representation (#5670) 2025-01-08 10:57:56 +00:00
Niklas Eicker 0a374d2380
Embed files associated with the document as a whole (#5221)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2025-01-08 09:38:34 +00:00
Zhuofeng Wang 54cee16c31
Add timezone to PDF's default timestamp. (#5564)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-12-17 09:43:01 +00:00
Laurenz caa72f4ec2
Put HTTP server behind on-by-default feature flag (#5532) 2024-12-05 15:25:18 +00:00
Laurenz 79a7a6bf77
Live reloading HTTP server for `typst watch` and HTML export (#5524) 2024-12-05 09:59:26 +00:00
Laurenz 4f3ba7f8ca
Rename `--feature` to `--features` and support `TYPST_FEATURES` env var (#5523) 2024-12-04 17:42:59 +00:00
Laurenz bf1c7db6fc
Clean up CLI argument parsing (#5521) 2024-12-04 13:17:38 +00:00
Laurenz e0122a5b50 Add HTML export format 2024-12-04 10:12:07 +01:00
Laurenz 2b8dc9b14d Add HTML feature flag 2024-12-04 10:12:07 +01:00
Laurenz f8f2ba6a5f Rename `Document` to `PagedDocument` 2024-12-04 10:12:07 +01:00
wznmickey 3ab131c22c
Handle SIGPIPE (#5444) 2024-11-29 09:21:19 +00:00
Yip Coekjan 19bde34876
Remove unused dependencies (#5379) 2024-11-07 08:47:27 +00:00
Laurenz fac7583745
Basic feature flag mechanism (#5350) 2024-11-01 20:02:27 +00:00
Yip Coekjan f0d7f54cbf
More consistent `self-update` assets determination (#5333) 2024-10-31 11:55:37 +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 240b917399
Docs and changelog improvements (#5147)
Co-authored-by: Malo <57839069+MDLC01@users.noreply.github.com>
Co-authored-by: Andrew Voynov <37143421+Andrew15-5@users.noreply.github.com>
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
Co-authored-by: Jeremie Knuesel <knuesel@gmail.com>
Co-authored-by: +merlan #flirora <2975203+bluebear94@users.noreply.github.com>
Co-authored-by: Anselm Schüler <mail@anselmschueler.com>
2024-10-15 12:54:16 +00:00
Laurenz 89cecb188d
Greet users who run `typst` for the first time (#5210) 2024-10-15 11:55:55 +00:00
Laurenz 60f9f66950
Serialize and Deserialize for `PdfStandard` (#5108) 2024-10-03 19:40:42 +00:00
Laurenz 04df1264ef
Fix duration formatting precision (#5082) 2024-10-01 12:32:27 +00:00
emilylime f0ada7ba0c
Check that an output format is available before compiling (#5080) 2024-10-01 09:26:12 +00:00
Laurenz a0093ad8a7
Minimal PDF/A support (#5075)
Co-authored-by: Martin Haug <mhaug@live.de>
2024-10-01 09:24:18 +00:00
Laurenz 788ae10a07
PDF export diagnostics (#5073) 2024-09-30 12:43:29 +00:00
Alex Rawson ba95baa7e1
Don't include "update" in help output if self-update disabled (#4940)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-09-27 08:52:52 +00:00
Josh Soref ca1f749c08
Spelling (#5020)
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2024-09-26 17:32:55 +00:00
Sébastien d'Herbais de Thun 8d38bd4066
Single thread support (#4988) 2024-09-26 09:02:44 +00:00
Andrew Voynov ac982f5856
Unified and fixed `Duration` formatting in the CLI (#4587)
Co-authored-by: PgBiel <9021226+PgBiel@users.noreply.github.com>
2024-09-10 13:49:37 +00:00
Max 77b6c8481f
Add back release targets `aarch64-pc-windows-msvc` and `riscv64gc-unknown-linux-gnu` (#4821) 2024-08-26 13:39:39 +00:00
Yip Coekjan b85217ef14
Improve documents for the `--font-path` arg & `TYPST_FONT_PATHS` env (#4776)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-08-26 13:37:21 +00:00
Yip Coekjan 88325d7d01
Add `clap::ValueHint` for input & output CLI arguments (#4765) 2024-08-23 21:37:03 +00:00