1[package]
2name = "anstream"
3version = "0.6.13"
4description = "A simple cross platform library for writing colored text to a terminal."
5repository = "https://github.com/rust-cli/anstyle.git"
6homepage = "https://github.com/rust-cli/anstyle"
7categories = ["command-line-interface"]
8keywords = ["ansi", "terminal", "color", "strip", "wincon"]
9license.workspace = true
10edition.workspace = true
11rust-version.workspace = true
12include.workspace = true
13
14[package.metadata.docs.rs]
15rustdoc-args = ["--cfg", "docsrs"]
16cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
17
18[package.metadata.release]
19pre-release-replacements = [
20 {file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
21 {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
22 {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
23 {file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
24 {file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/rust-cli/anstyle/compare/{{tag_name}}...HEAD", exactly=1},
25]
26
27[features]
28default = ["auto", "wincon"]
29auto = ["dep:anstyle-query"]
30wincon = ["dep:anstyle-wincon"]
31# Enable in `dev-dependencies` to make sure output is captured for tests
32test = []
33
34[dependencies]
35anstyle = { version = "1.0.0", path = "../anstyle" }
36anstyle-parse = { version = "0.2.0", path = "../anstyle-parse" }
37colorchoice = { version = "1.0.0", path = "../colorchoice" }
38anstyle-query = { version = "1.0.0", path = "../anstyle-query", optional = true }
39utf8parse = "0.2.1"
40
41[target.'cfg(windows)'.dependencies]
42anstyle-wincon = { version = "3.0.1", path = "../anstyle-wincon", optional = true }
43
44[dev-dependencies]
45criterion = "0.5.1"
46lexopt = "0.3.0"
47owo-colors = "4.0.0"
48proptest = "1.4.0"
49strip-ansi-escapes = "0.2.0"
50
51[[bench]]
52name = "strip"
53harness = false
54
55[[bench]]
56name = "wincon"
57harness = false
58
59[[bench]]
60name = "stream"
61harness = false
62