-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCargo.toml
More file actions
94 lines (79 loc) · 2.36 KB
/
Cargo.toml
File metadata and controls
94 lines (79 loc) · 2.36 KB
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
93
94
[workspace]
resolver = "2"
members = ["crates/core", "crates/html", "crates/pdf", "crates/epub", "crates/cli", "crates/tests"]
[workspace.package]
version = "0.2.1"
edition = "2024"
authors = ["Lachlan Kermode <lachie@ohrg.org>"]
description = "A typesetting and static site engine based on Typst"
license = "MIT OR Apache-2.0"
repository = "https://github.com/freecomputinglab/rheo"
readme = "README.md"
[workspace.dependencies]
# Internal crates (for convenience in workspace)
rheo-core = { path = "crates/core", version = "0.2.1" }
rheo-html = { path = "crates/html", version = "0.2.1" }
rheo-pdf = { path = "crates/pdf", version = "0.2.1" }
rheo-epub = { path = "crates/epub", version = "0.2.1" }
# Typst dependencies
typst = "0.14.2"
typst-library = "0.14.2"
typst-pdf = "0.14.2"
typst-html = "0.14.2"
typst-kit = { version = "0.14.2", features = ["embed-fonts"] }
typst-syntax = "0.14.2"
comemo = "0.5"
# Error handling and diagnostics
codespan-reporting = "0.13"
thiserror = "2.0"
anyhow = "1.0.100"
# Serialization
serde = { version = "1.0", features = ["derive"] }
toml = "0.9"
semver = "1.0"
# CLI and utilities
clap = { version = "4.5", features = ["derive"] }
walkdir = "2.5"
opener = "0.8"
parking_lot = "0.12"
atty = "0.2"
pathdiff = "0.2"
notify = "8.2"
mime_guess = "2.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt", "ansi"] }
# Date/time
chrono = { version = "0.4", features = ["serde"] }
# File system and patterns
globset = "0.4"
glob = "0.3"
tempfile = "3.8"
# Development server (HTML plugin uses, CLI also uses)
tokio = { version = "1", features = ["rt", "sync", "time", "signal", "rt-multi-thread", "macros"] }
axum = "0.8"
tower = "0.5"
tower-http = { version = "0.6", features = ["fs", "trace"] }
webbrowser = "1.0"
tokio-stream = { version = "0.1", features = ["sync"] }
# EPUB dependencies
zip = { version = "6.0.0", default-features = false }
html5ever = "0.36.1"
markup5ever_rcdom = "0.36.0"
iref = { version = "3.2.2", features = ["serde"] }
uuid = { version = "1.18.1", features = ["v4"] }
itertools = "0.14.0"
# Other dependencies
ecow = "0.2"
regex = "1.10"
lazy_static = "1.4"
serde-xml-rs = "0.8.2"
[profile.release]
opt-level = 1
lto = true
codegen-units = 1
[profile.local-dev]
inherits = "dev"
# Makes Typst run quickly without impacting incremental compile times
[profile.local-dev.package."*"]
opt-level = 3