[package]
name = "typstyle"
version = "0.12.2"
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