-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
44 lines (37 loc) · 1.04 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
[package]
name = "fmtt"
version = "0.8.0"
edition = "2021"
description = "A diff-friendly text formatter that breaks lines on sensible punctuations and words to fit a line width."
license = "MIT"
repository = "https://github.com/SichangHe/fmtt"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "fmtt"
crate-type = ["cdylib", "lib"]
[dependencies]
anyhow = "1"
clap = { version = "4", features = ["derive"] }
pyo3 = { version = "0.22", optional = true }
regex = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1.0.117"
tailcall = "1.0.1"
tracing = { version = "0.1", default-features = false }
tracing-subscriber = { version = "0.3", default-features = false, features = [
"env-filter",
"fmt",
"smallvec",
] }
[dev-dependencies]
insta = "1.39"
[features]
default = []
py = ["dep:pyo3"]
[profile.release]
opt-level = "s"
lto = true
# Compile snapshot testing libraries with optimizations.
[profile.dev.package]
insta = { opt-level = 3 }
similar = { opt-level = 3 }