| 1 | [package] |
| 2 | name = "anstream" |
| 3 | version = "0.6.18" |
| 4 | description = "A simple cross platform library for writing colored text to a terminal." |
| 5 | homepage = "https://github.com/rust-cli/anstyle" |
| 6 | categories = ["command-line-interface" ] |
| 7 | keywords = ["ansi" , "terminal" , "color" , "strip" , "wincon" ] |
| 8 | repository.workspace = true |
| 9 | license.workspace = true |
| 10 | edition.workspace = true |
| 11 | rust-version.workspace = true |
| 12 | include.workspace = true |
| 13 | |
| 14 | [package.metadata.docs.rs] |
| 15 | all-features = true |
| 16 | rustdoc-args = ["--cfg" , "docsrs" ] |
| 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 | is_terminal_polyfill = "1.48" |
| 41 | |
| 42 | [target.'cfg(windows)'.dependencies] |
| 43 | anstyle-wincon = { version = "3.0.5" , path = "../anstyle-wincon" , optional = true } |
| 44 | |
| 45 | [dev-dependencies] |
| 46 | divan = "0.1.11" |
| 47 | lexopt = "0.3.0" |
| 48 | owo-colors = "4.0.0" |
| 49 | proptest = "1.4.0" |
| 50 | strip-ansi-escapes = "0.2.0" |
| 51 | |
| 52 | [[example]] |
| 53 | name = "dump-stream" |
| 54 | required-features = ["auto" ] |
| 55 | |
| 56 | [[example]] |
| 57 | name = "query-stream" |
| 58 | required-features = ["auto" ] |
| 59 | |
| 60 | [[bench]] |
| 61 | name = "strip" |
| 62 | harness = false |
| 63 | |
| 64 | [[bench]] |
| 65 | name = "wincon" |
| 66 | harness = false |
| 67 | |
| 68 | [[bench]] |
| 69 | name = "stream" |
| 70 | harness = false |
| 71 | |
| 72 | [lints] |
| 73 | workspace = true |
| 74 | |