-
Notifications
You must be signed in to change notification settings - Fork 10
/
Cargo.toml
103 lines (88 loc) · 2.54 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
93
94
95
96
97
98
99
100
101
102
103
[package]
name = "typstyle"
version = "0.12.1"
edition = "2021"
authors = ["Wenzhuo Liu"]
license = "Apache-2.0"
description = "Beautiful and reliable typst code formatter"
repository = "https://github.com/Enter-tainer/typstyle"
homepage = "https://enter-tainer.github.io/typstyle/"
include = [
"src/**/*.rs",
"/LICENSE",
"/README.md",
"build.rs",
"tests/assets.rs",
"tests/repo-e2e.rs",
]
[[bin]]
name = "typstyle"
path = "src/main.rs"
required-features = ["cli"]
test = false
doctest = false
bench = false
doc = false
[lib]
name = "typstyle_core"
path = "src/lib.rs"
crate-type = ["cdylib", "lib"]
[dependencies]
itertools = "0.13.0"
pretty = "0.12.3"
typst-syntax = "0.12.0"
anyhow = "1"
once_cell = { version = "1.20.2", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
clap = { version = "4.5.20", features = ["derive", "env"], optional = true }
walkdir = { version = "2", optional = true }
clap_complete = { version = "4.5.36", optional = true }
[dev-dependencies]
insta = { version = "1.41.1" }
libtest-mimic = "0.8.1"
pathdiff = "0.2.2"
pretty_assertions = "1.4.1"
walkdir = "2"
reflexo = { git = "https://github.com/ParaN3xus/typst.ts", branch = "tinymist-typst-0.12.0-rc2", default-features = false, features = [
"typst",
] }
reflexo-typst-shim = { git = "https://github.com/ParaN3xus/typst.ts", branch = "tinymist-typst-0.12.0-rc2", default-features = false, features = [
] }
reflexo-world = { git = "https://github.com/ParaN3xus/typst.ts", branch = "tinymist-typst-0.12.0-rc2", default-features = false, features = [
"system",
] }
reflexo-vfs = { git = "https://github.com/ParaN3xus/typst.ts", branch = "tinymist-typst-0.12.0-rc2", default-features = false, features = [
"system",
] }
reflexo-typst = { git = "https://github.com/ParaN3xus/typst.ts", branch = "tinymist-typst-0.12.0-rc2", default-features = false, features = [
"system",
"no-content-hint",
] }
typst-assets = { version = "0.12.0", features = ["fonts"] }
typst-render = "0.12.0"
typst-pdf = "0.12.0"
typst = "0.12.0"
ecow = "0.2.3"
[build-dependencies]
anyhow = "1"
vergen = { version = "8.3.2", features = ["build", "cargo", "rustc"] }
[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3
[[test]]
name = "assets"
harness = false
[[test]]
name = "repo-e2e"
harness = false
[features]
default = ["cli", "wasm", "git-info", "completion"]
cli = ["clap", "once_cell", "walkdir"]
wasm = ["wasm-bindgen"]
git-info = ["vergen/git", "vergen/git2"]
completion = ["cli", "dep:clap_complete"]
[profile.test]
opt-level = 3
[profile.ci]
inherits = "release"
debug = true