This repository has been archived by the owner on Nov 7, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Cargo.toml
92 lines (81 loc) · 2.38 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[package]
name = "typst-preview"
description = "A previewer for the Typst typesetting system."
license = "MIT"
repository = "https://github.com/Enter-tainer/typst-preview"
version = "0.11.7"
authors = ["The Typst Project Developers"]
edition = "2021"
build = "build.rs"
keywords = ["typst"]
include = ["src/**/*", "/LICENSE", "/README.md", "build.rs"]
[[bin]]
name = "typst-preview"
required-features = ["cli"]
path = "src/main.rs"
test = false
doctest = false
bench = false
doc = false
[dependencies]
typst = "0.11.1"
typst-assets = { version = "0.11.1", features = ["fonts"] }
typst-ts-svg-exporter = { version = "0.5.0-rc4" }
typst-ts-core = { version = "0.5.0-rc4", default-features = false, features = [
"flat-vector",
"vector-bbox",
] }
typst-ts-compiler = { version = "0.5.0-rc4", optional = true }
comemo = "0.4"
elsa = "1.10"
memmap2 = "0.9.4"
notify = "6"
once_cell = "1"
tokio = { version = "1.37.0", features = ["full"] }
tokio-tungstenite = "0.21.0"
tiny-skia = "0.11"
env_logger = "0.11.3"
log = "0.4.21"
serde_json = "1.0.117"
futures = "0.3.30"
indexmap = "2"
serde = "1.0.202"
await-tree = "0.1.2"
clap = { version = "4.5.4", features = ["derive", "env"], optional = true }
open = { version = "5.1.3", optional = true }
hyper = { version = "0.14", features = ["full"], optional = true }
[patch.crates-io]
# typst = { path = "../../../typst/crates/typst" }
# typst-syntax = { path = "../../../typst/crates/typst-syntax" }
# hayagriva = { path = "../../rust/hayagriva" }
# typst-ts-svg-exporter = { path = "../../exporter/svg" }
# typst-ts-compiler = { path = "../../compiler" }
# typst-ts-core = { path = "../../core" }
[build-dependencies]
clap = { version = "4.5.4", features = ["derive", "string"] }
clap_complete = "4.5.2"
clap_mangen = "0.2.20"
vergen = { version = "8.3.1", features = [
"build",
"cargo",
"git",
"git2",
"rustc",
] }
anyhow = "1.0.83"
[features]
default = ["embed-fonts", "cli"]
# Embeds Typst's default fonts for
# - text (Linux Libertine),
# - math (New Computer Modern Math), and
# - code (Deja Vu Sans Mono)
# and additionally New Computer Modern for text
# into the binary.
embed-fonts = ["typst-assets/fonts"]
# Disable the default content hint.
# This requires modifying typst.
no-content-hint = ["typst-ts-core/no-content-hint"]
embed-html = []
cli = ["hyper", "clap", "open", "typst-ts-compiler", "no-content-hint", "embed-html"]
[profile.release]
debug = true