-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
81 lines (63 loc) · 2.01 KB
/
Cargo.toml
File metadata and controls
81 lines (63 loc) · 2.01 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
[workspace.package]
description = "Docs."
authors = ["Myriad-Dreamin <camiyoru@gmail.com>"]
version = "0.1.0"
edition = "2021"
readme = "README.md"
license = "Apache-2.0"
homepage = "https://github.com/typst-doc-cn/docs"
repository = "https://github.com/typst-doc-cn/docs"
rust-version = "1.83"
[workspace]
resolver = "2"
members = ["crates/*"]
[workspace.dependencies]
# Basic Infra
anyhow = "1"
# Testing
insta = "1.41"
# CLI
clap = { version = "4.5", features = ["derive", "env", "unicode"] }
# Asynchoronous and Multi-threading
rayon = "1.10.0"
# Data/Text Format and Processing
serde = { version = "1", features = ["derive"] }
serde_json = "1"
pulldown-cmark = "0.9"
# Typst library
typst = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "tinymist/v0.13.2" }
typst-docs = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "tinymist/v0.13.2" }
typst-render = { git = "https://github.com/Myriad-Dreamin/typst.git", tag = "tinymist/v0.13.2" }
# Tinymist
tinymist-l10n = "0.13.12"
# tinymist-l10n = { path = "../../rust/tinymist/crates/tinymist-l10n/" }
[profile.release]
# lto = true # Enable link-time optimization
codegen-units = 1 # Reduce number of codegen units to increase optimizations
panic = "abort" # Abort on panic
[workspace.lints.rustdoc]
broken_intra_doc_links = "warn"
missing_crate_level_docs = "warn"
[workspace.lints.rust]
missing_docs = "warn"
unexpected_cfgs = { level = "allow", check-cfg = [
'cfg(wasm_bindgen_unstable_test_coverage)',
'cfg(noop)',
'cfg(used_linker)',
] }
[workspace.lints.clippy]
uninlined_format_args = "warn"
missing_docs_in_private_items = "warn"
missing_safety_doc = "warn"
undocumented_unsafe_blocks = "warn"
[workspace.metadata.typos.default]
locale = "en-us"
[workspace.metadata.typos.default.extend-words]
labelled = "labelled"
onces = "onces"
withs = "withs"
[workspace.metadata.typos.files]
ignore-hidden = false
extend-exclude = ["/.git", "fixtures"]
# These patches use local `typst` for development.
# docs = { path = "../typst/crates/typst" }