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