-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathCargo.toml
49 lines (41 loc) · 1.52 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
[workspace.package]
description = "The Raindrop Book - Typst中文教程"
authors = ["Myriad-Dreamin <[email protected]>"]
version = "0.1.0"
edition = "2021"
readme = "README.md"
license = "Apache-2.0"
homepage = "https://github.com/typst-doc-cn/tutorial"
repository = "https://github.com/typst-doc-cn/tutorial"
rust-version = "1.74"
[workspace]
resolver = "2"
members = ["crates/*"]
[workspace.dependencies]
typst = "0.12.0"
typst-svg = "0.12.0"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
reflexo-typst = { version = "=0.5.1", default-features = false, features = [
"browser-compile",
] }
[profile.release]
lto = true # Enable link-time optimization
strip = true # Strip symbols from binary*
opt-level = 3 # Optimize for speed
codegen-units = 1 # Reduce number of codegen units to increase optimizations
panic = 'abort' # Abort on panic
[patch.crates-io]
typst = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "typst.ts/v0.5.0-rc9" }
typst-svg = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "typst.ts/v0.5.0-rc9" }
reflexo-typst = { git = "https://github.com/Myriad-Dreamin/typst.ts", tag = "v0.5.1", package = "reflexo-typst" }
# typst-ts-core = { path = "../../rust/typst.ts/core" }
# typst-ts-compiler = { path = "../../rust/typst.ts/compiler" }
[workspace.lints.rust]
missing_docs = "warn"
[workspace.lints.clippy]
uninlined_format_args = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
undocumented_unsafe_blocks = "warn"