66 Commits

Author SHA1 Message Date
Yang Hau
0dc1776202
refactor: Replace once_cell to std lib (#1402) 2023-06-07 14:42:58 +02:00
Laurenz
219f14355b Rename into_u16 to as_u16 2023-06-06 19:06:56 +02:00
Naim A
6db4c39cd9
ignore utf-8 bom (#1317) 2023-05-29 20:13:11 +02:00
Laurenz Stampfl
6af94be34a
Use chrono instead of time in the CLI (#1300) 2023-05-24 12:14:43 +02:00
erikwastaken
2cbeeae5da
CLI option for emitting diagnostics in a unix-style short format (#1176) 2023-05-23 12:34:12 +02:00
Lino Le Van
5400570efa
feat(cli): export as png (#1159)
Co-authored-by: Laurenz <laurmaedje@gmail.com>
2023-05-23 12:20:12 +02:00
Laurenz Stampfl
752817ae74
Add support for date & time handling (#435) 2023-05-23 10:41:20 +02:00
Laurenz
ef1bf742f6 Don't emit color codes if stderr isn't a TTY
Fixes #521
2023-05-22 15:28:30 +02:00
Laurenz
0214569f3a Set exit code for CLI errors
Fixes #1241
2023-05-22 15:18:47 +02:00
Laurenz
88553fe3c0 Tidy up CLI 2023-05-22 15:13:51 +02:00
Laurenz
f692a5efc6 Version bump 2023-05-20 22:05:55 +02:00
Johannes Wolf
42f1586880
cli: Emit escape codes only if output is a tty (#1188) 2023-05-19 16:47:25 +02:00
Laurenz
88cb8c2626 Bump comemo 2023-05-16 16:43:35 +02:00
Laurenz
47dff3765d Remove 'static bound on World
Thanks to improvements in comemo, tracked types don't need to be 'static anymore. This means that the 'static bound on the `World` is now lifted and that the `Route` doesn't need to use unsafe code anymore to manage its lifetime.
2023-05-11 10:50:30 +02:00
HarmoGlace
856557353b
Add rust minimum version in Cargo.toml (#902) 2023-05-03 10:37:44 +02:00
Laurenz
b1e0de0078 Version bump 2023-04-26 15:54:05 +02:00
Laurenz
3680c854a2 Touch up docs 2023-04-26 15:37:21 +02:00
Alex Saveau
1d42d6674c
Upgrade a bunch of deps and remove two unused ones (#968) 2023-04-26 11:22:43 +02:00
Sébastien d'Herbais de Thun
561ff979d5
Add instrumentation (Part 1) (#761) 2023-04-23 14:33:56 +02:00
Daniel Csillag
d0afba959d
Change SipHash2-4 -> SipHash1-3 (#780)
This seems to significantly improves performance. Inspired by https://github.com/rust-lang/rust/pull/107925
2023-04-19 13:16:03 +02:00
Laurenz
b51cb131bd Bump comemo 2023-04-17 19:59:45 +02:00
Laurenz
89cf4054d6 Reduce amount of hashing 2023-04-13 14:23:46 +02:00
Laurenz
f2732bb7b2 Include embedded fonts in listing 2023-04-13 11:28:07 +02:00
Michael Lohr
8300f75f22
Read font path from environment variables (#649) 2023-04-12 19:03:12 +02:00
Laurenz
fe2640c552 Version bump 2023-04-11 22:34:25 +02:00
Timme Bethe
ef50f1b011
Fixes CLI blocking upon opening pdf viewer (#706)
Fixes issue typst/typst#704 by making opening a pdf viewer non-blocking.
This does remove error reporting when the pdf viewer fails to be
opened. This error reporting is difficult to regain since the error
happens on a different thread.
2023-04-11 14:06:38 +02:00
figsoda
1c324765e9
Add shell completions and man pages (#582) 2023-04-06 20:14:01 +02:00
Charlie Moog
623db8c0c4
embed New Computer Modern into binary (#340) 2023-04-06 15:40:11 +02:00
Laurenz
b3faef4b80 Bump version 2023-04-05 01:41:15 +02:00
Sébastien d'Herbais de Thun
2d1598e51d
CLI: open flag (#480) 2023-04-04 14:12:19 +02:00
figsoda
b2ba061fbb
Add aliases for subcommands (#485) 2023-04-01 15:54:05 +02:00
Marek Barvíř
5e5b1bba51
Needless clone, borrows, casts and lifetimes (#504) 2023-04-01 15:53:13 +02:00
Chris Ohk
418bd89ba4
Correct minor typos (#474) 2023-03-31 16:51:12 +02:00
Sébastien d'Herbais de Thun
9414d56f97
Rewrite of CLI using clap (#468) 2023-03-30 21:59:28 +02:00
Johannes Wolf
4d9c6b28d0
cli: Allow reading every path not of type dir (#414) 2023-03-30 00:36:22 +02:00
Alexander Korn
f04b6ebc1a
Fix file watching when only file name is given (#433)
Fixes #300
2023-03-29 22:57:12 +02:00
Laurenz
628e589bcd Watch root directory instead of current one 2023-03-28 14:54:44 +02:00
Laurenz
6fa33fda6e Return with non-zero status code in case of error 2023-03-28 14:54:23 +02:00
Laurenz
e84df1a036 Fix tests on Windows
Fixes #386.
2023-03-28 14:30:21 +02:00
Laurenz
dfbd3503d9 Also embed oblique monospace fonts 2023-03-28 09:32:04 +02:00
Laurenz
d71c933cca Bump dependencies 2023-03-27 15:49:04 +02:00
Laurenz
2a088e876e Cache eviction helps
Fixes #334.
2023-03-26 14:06:15 +02:00
figsoda
e70ec5f3c0
Don't let the build script overwrite TYPST_VERSION (#154) 2023-03-25 15:38:34 +01:00
7sDream
a4a915cc5c
Add custom font search path support for typst cli (#270) 2023-03-25 15:04:56 +01:00
figsoda
ec3f7004ca
Fix index out of bounds error in build script (#173) 2023-03-24 09:22:48 +01:00
Dave L
2f8802a412
Changed "ColorChoice::Always" to "ColorChoice::Auto" to honour user setting of TERM / NO_COLOR (#230) 2023-03-24 09:14:32 +01:00
Felix Obenhuber
26f4321a5e
Fix build if not on a git checkout (#119)
Check the exit status of the `git` invocation before parsing the output.
If there's no `.git` the output may look like:

```
fatal: not a git repository (or any of the parent directories): .git
```

and the version shall be set to unknown.
2023-03-22 09:02:16 +01:00
Laurenz
9fc432a41d Switch to Buffer::from_static for embedded fonts 2023-03-21 23:43:22 +01:00
Laurenz
a6b63b96f9 Fail gracefully if git does not exist 2023-03-21 23:39:40 +01:00
Laurenz
b934a2fd83 Embed standard fonts in binary 2023-03-21 23:18:56 +01:00