Commit Graph

143 Commits

Author SHA1 Message Date
Yip Coekjan 023b8068f7
Improve CLI help doc about input & output (#4282) 2024-05-30 08:00:10 +00:00
Ilia 6d07f702e1
Add ability to choose between minified and pretty-printed JSON (#4161) 2024-05-29 11:06:27 +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
Karthik Nishanth b9457421de
CLI: Support more page number templates in output file name (#3933) 2024-04-19 14:32:06 +00:00
Laurenz 020294fca9
Better test runner (#3922) 2024-04-13 08:39:45 +00:00
Matthew Toohey 72dd792106
Add --make-deps CLI argument (#2877) (#3890) 2024-04-09 11:50:41 +00:00
frozolotl ffc9570c64
Remove SOURCE_DATE_EPOCH CLI argument (#3859) 2024-04-04 15:00:02 +00:00
frozolotl d4b3ae0925
Read `SOURCE_DATE_EPOCH` for better reproducibility (#3809) 2024-04-03 10:34:17 +00:00
Laurenz b3615ccd49
A few CI and crate config changes (#3852) 2024-04-02 14:16:44 +00:00
Ilia e91baaca82
Support writing document to stdout (#3632) 2024-04-01 19:36:21 +00:00
frozolotl a33d8bf322
Escape path and entrypoint in `typst init` output (#3753) 2024-03-23 11:54:50 +00:00
frozolotl 0a917aba98
Fix warnings introduced by rust 1.77 (#3754) 2024-03-22 12:35:02 +00:00
Laurenz faca50a240
Final touches (#3678) 2024-03-15 14:47:41 +00:00
Laurenz 9e507cd9fd
Revert use of alternate screen (#3648) 2024-03-14 09:20:31 +00:00
Leedehai c29db5f27e
Clean up unused dependency (#3600) 2024-03-11 10:24:16 +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 aace521b56
Bump our crates (#3573) 2024-03-07 16:37:22 +00:00
Laurenz a558fd232b
Add `typst init` command (#3544) 2024-03-06 11:33:35 +00:00
Laurenz e16d3f5a67
Externalize assets (#3515) 2024-02-28 10:06:54 +00:00
Laurenz 6dab30238a
Add `vendor-openssl` feature flag (#3510) 2024-02-28 08:04:03 +00:00
Sébastien d'Herbais de Thun d0dd81cddf
Added `LazyHash` (#3451)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-02-21 08:40:13 +00:00
Laurenz 0fb2a67484
Introduce `SyntaxSet` (#3450) 2024-02-18 13:28:00 +00:00
frozolotl fcf64d0ee0
Fix typo (#3412) 2024-02-14 12:21:17 +00:00
frozolotl 8a2527788c
Fix watches on moves and removes (#3371)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-02-14 11:50:40 +00:00
frozolotl e2e8159bb2
Do not enter alternate screen if colors are disabled (#3366) 2024-02-08 09:29:36 +00:00
spore 70b354e887
Support reading input from stdin (#3339) 2024-02-05 13:05:26 +00:00
tingerrr a8f764ab48
Fix error swallowing (#3338) 2024-02-04 11:23:29 +00:00
frozolotl 6999be9ab0
Use alternate screen and refactor terminal output. (#2665) 2024-01-31 09:19:07 +00:00
Laurenz 6207b3d9b0
Configure ureq to use sytem-native TLS (#3258) 2024-01-26 09:50:43 +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
didier amyot d52ae4bd48
fix: removed typo from http client user agent. (#3134) 2024-01-05 18:07:55 +00:00
tingerrr 4bf16d7acb
Add a `--color` flag (#3060)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2024-01-02 09:03:01 +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
Sébastien d'Herbais de Thun 08225e42d8
Parallel export (#2989) 2023-12-18 12:32:53 +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
Laurenz 2dc0478ffe Less interior mutability in system world 2023-12-08 19:02:09 +01:00
Laurenz 3b104e2ba8 Move export cache 2023-12-08 19:02:09 +01:00
Laurenz f16a9ea9ad Drop dependency on `DashMap`
DashMap doesn't work in multi-threaded WebAssembly in Safari: https://bugs.webkit.org/show_bug.cgi?id=265581
2023-11-30 18:31:56 +01:00
Sébastien d'Herbais de Thun 5bdec9e1d8
Optimized labels & introspector (#2801)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-11-30 12:57:04 +01:00
He Li 3ea2ad6cae
Don't exit watcher on invalid utf-8 (#2795) 2023-11-29 19:57:57 +01:00
Laurenz 713cde1136 Make workspace inheriting consistent 2023-11-27 16:54:55 +01:00
danieleades e36a18b991
Use clippy workspace lints and inline format args (#2771) 2023-11-27 11:34:14 +01:00
danieleades 3c2b61ee7d
Run clippy on all features (#2767) 2023-11-27 11:18:48 +01:00
Laurenz 7eebafa783 Merge `typst` and `typst-library` 2023-11-24 12:30:02 +01:00
frozolotl 76e173b78b
Allow multiple font paths in `TYPST_FONT_PATHS` (#2746) 2023-11-24 11:42:02 +01:00
Laurenz 36c7301608 Tidy up some imports 2023-11-21 15:20:49 +01:00
Laurenz 2da619e17c Streamline imports 2023-11-19 16:34:38 +01:00
Laurenz 18cb3becb3 Disable default features of `zip` crate 2023-11-19 13:04:48 +01:00
Laurenz fa43b4bf5d Use proxy for fetching release metadata 2023-11-19 12:49:08 +01:00
Laurenz e0d6526a53
Watching fixes (#2706) 2023-11-19 12:31:42 +01:00
Laurenz 46846a337e Extract `typst-pdf` crate 2023-11-08 15:09:55 +01:00
Laurenz 80b4ca4c04 Extract `typst-svg` crate 2023-11-08 13:21:47 +01:00
Laurenz ec04c3de2f Extract `typst-render` crate 2023-11-08 13:16:13 +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
Martin Haug f78a8f5d48
Add IDs and creation date to PDFs (#2374) 2023-10-27 18:33:23 +02:00
7sDream b80382b216
Use fontdb to search fonts, with basic fontconfig support (#2472) 2023-10-25 18:38:08 +02:00
frozolotl 01b14ff316
Clear screen instead of resetting the terminal (#2431)
Resetting the terminal can change color themes and other settings.
This commit changes the behavior to just clear the screen.
2023-10-19 10:11:22 +02:00
Sébastien d'Herbais de Thun c0dbb900e8
Cached export for incremental (#2400) 2023-10-17 20:53:01 +02:00
Laurenz 2a19e7f4dc Bump ecow 2023-10-09 15:00:07 +02:00
T0mstone cf9bde3245
Add capability to get current compiler version (#2016) 2023-10-02 20:28:19 +02:00
Laurenz 9ff9615208 Fix warning when compiling without embedded fonts 2023-09-25 12:38:57 +02:00
Laurenz bb59f0e2b2 Incremental parsing in CLI
Reparses files in the CLI incrementally and also uses the file modification timestamp to completely skip reparsing if possible.
2023-09-19 15:19:12 +02:00
LU Jialin 8b465222b2
Use inferred format extension for the output path (#2166) 2023-09-18 14:27:38 +02:00
Laurenz f9feea3f29 Bump dependencies 2023-09-13 14:44:45 +02:00
frozolotl 14d28dbf4e
Gracefully handle error if field was not defined (#2110) 2023-09-12 11:26:35 +02:00
Laurenz 921b40cf9c Forward third-party errors
Better to know something even if it isn't always formatted in the prettiest way
2023-09-11 12:04:37 +02:00
Zicklag 6483d3035b
Support proxy and custom certificate configuration. (#2006) 2023-09-11 12:03:47 +02:00
jimvdl aea20670d8
Display download progress for self-updating and packages (#2031) 2023-08-31 10:02:53 +02:00
Laurenz 0e5c48ad0d Add a bit more docs to `compile` 2023-08-29 18:01:18 +02:00
Laurenz a71a2057f2 More type safety for spans 2023-08-29 17:35:35 +02:00
jimvdl 7bdf1f57b0
Let the CLI `typst update` itself without a package manager (#1887) 2023-08-26 20:44:58 +02:00
Matt Fellenz ff5dc9191e
Add format arg to CLI (#1985) 2023-08-23 22:44:03 +02:00
Laurenz afc95ed19d Virtual path type
Fixes #1937
2023-08-22 14:21:04 +02:00
Laurenz 8f19b49afa Fix some typos in CLI help 2023-08-22 01:09:19 +02:00
Laurenz 522708b9df Set new minimum serde version
1.0.184 does not ship with a precompiled binary anymore
2023-08-21 21:49:14 +02:00
Laurenz 3ab179ebd3 Restrict serde version 2023-08-19 20:06:01 +02:00
Laurenz 2ea451b83b Refactor SVG export a bit 2023-08-08 13:00:47 +02:00
Wenzhuo Liu 61e4ad6bba
Add SVG export (#1729) 2023-08-08 12:54:13 +02:00
Beiri22 357bce56f5
Query-System for metadata (#1812)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-08-06 23:49:04 +02:00
Laurenz b8b0137504 Bytes type
- Moves `Bytes` from `util` to `eval` module
- Accepts bytes in `str` function for bytes -> str conversion
- Adds `bytes` function for str | array -> bytes conversion
- Adds `array` function for bytes -> array conversion
- Adds `len`, `at`, and `slice` methods for bytes
- Adds `encoding` parameter to `read` function
2023-08-04 15:46:46 +02:00
Luke Chambers 02d981ed1c
Search additional font paths before system/embedded (#1847) 2023-08-03 13:55:00 +02:00
Wenzhuo Liu 733c5c9913
fix(cli): include export in compile time (#1816) 2023-08-03 00:31:28 +02:00
Beiri22 77cc05b121
Fix datetime offset (#1845) 2023-08-01 23:54:37 +02:00
Laurenz 1c7105ba82 Change package search and caching path
Brings local packages in line with changes to the package repository. See also: https://github.com/typst/packages/issues/61
2023-08-01 00:59:40 +02:00
lolstork b37c1e2731
Add infrastructure for compiler warnings (#1731) 2023-07-19 12:52:47 +02:00
Laurenz f5953887c9 Extract syntax module into typst-syntax crate 2023-07-18 21:04:46 +02:00
Trévis Morvany 0e8492eac1
Fix `typst watch` not working with some text editors (#1680) 2023-07-10 12:21:59 +02:00
Laurenz 5fdd62141f Reword CLI docs 2023-07-04 16:47:57 +02:00
Laurenz ebfdb1dafa Move everything into `crates/` directory 2023-07-02 20:07:43 +02:00