]>
Commit | Line | Data |
---|---|---|
353b0b11 FG |
1 | # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO |
2 | # | |
3 | # When uploading crates to the registry Cargo will automatically | |
4 | # "normalize" Cargo.toml files for maximal compatibility | |
5 | # with all versions of Cargo and also rewrite `path` dependencies | |
6 | # to registry (e.g., crates.io) dependencies. | |
7 | # | |
8 | # If you are reading this file be aware that the original Cargo.toml | |
9 | # will likely look very different (and much more reasonable). | |
10 | # See Cargo.toml.orig for the original contents. | |
11 | ||
12 | [package] | |
13 | edition = "2021" | |
781aab86 | 14 | rust-version = "1.70.0" |
353b0b11 | 15 | name = "anstream" |
ed00b5ec | 16 | version = "0.6.4" |
353b0b11 FG |
17 | include = [ |
18 | "build.rs", | |
19 | "src/**/*", | |
20 | "Cargo.toml", | |
fe692bf9 | 21 | "Cargo.lock", |
353b0b11 FG |
22 | "LICENSE*", |
23 | "README.md", | |
24 | "benches/**/*", | |
25 | "examples/**/*", | |
26 | ] | |
27 | description = "A simple cross platform library for writing colored text to a terminal." | |
28 | homepage = "https://github.com/rust-cli/anstyle" | |
29 | readme = "README.md" | |
30 | keywords = [ | |
31 | "ansi", | |
32 | "terminal", | |
33 | "color", | |
34 | "strip", | |
35 | "wincon", | |
36 | ] | |
37 | categories = ["command-line-interface"] | |
38 | license = "MIT OR Apache-2.0" | |
39 | repository = "https://github.com/rust-cli/anstyle.git" | |
40 | ||
41 | [package.metadata.docs.rs] | |
353b0b11 FG |
42 | cargo-args = [ |
43 | "-Zunstable-options", | |
44 | "-Zrustdoc-scrape-examples", | |
45 | ] | |
fe692bf9 FG |
46 | rustdoc-args = [ |
47 | "--cfg", | |
48 | "docsrs", | |
49 | ] | |
353b0b11 FG |
50 | |
51 | [[package.metadata.release.pre-release-replacements]] | |
52 | file = "CHANGELOG.md" | |
353b0b11 | 53 | min = 1 |
fe692bf9 FG |
54 | replace = "{{version}}" |
55 | search = "Unreleased" | |
353b0b11 FG |
56 | |
57 | [[package.metadata.release.pre-release-replacements]] | |
fe692bf9 | 58 | exactly = 1 |
353b0b11 | 59 | file = "CHANGELOG.md" |
353b0b11 | 60 | replace = "...{{tag_name}}" |
fe692bf9 | 61 | search = '\.\.\.HEAD' |
353b0b11 FG |
62 | |
63 | [[package.metadata.release.pre-release-replacements]] | |
64 | file = "CHANGELOG.md" | |
353b0b11 | 65 | min = 1 |
fe692bf9 FG |
66 | replace = "{{date}}" |
67 | search = "ReleaseDate" | |
353b0b11 FG |
68 | |
69 | [[package.metadata.release.pre-release-replacements]] | |
fe692bf9 | 70 | exactly = 1 |
353b0b11 | 71 | file = "CHANGELOG.md" |
353b0b11 FG |
72 | replace = """ |
73 | <!-- next-header --> | |
74 | ## [Unreleased] - ReleaseDate | |
75 | """ | |
fe692bf9 | 76 | search = "<!-- next-header -->" |
353b0b11 FG |
77 | |
78 | [[package.metadata.release.pre-release-replacements]] | |
fe692bf9 | 79 | exactly = 1 |
353b0b11 | 80 | file = "CHANGELOG.md" |
353b0b11 FG |
81 | replace = """ |
82 | <!-- next-url --> | |
83 | [Unreleased]: https://github.com/rust-cli/anstyle/compare/{{tag_name}}...HEAD""" | |
fe692bf9 | 84 | search = "<!-- next-url -->" |
353b0b11 FG |
85 | |
86 | [[bench]] | |
87 | name = "strip" | |
88 | harness = false | |
89 | ||
90 | [[bench]] | |
91 | name = "wincon" | |
92 | harness = false | |
93 | ||
94 | [[bench]] | |
95 | name = "stream" | |
96 | harness = false | |
97 | ||
98 | [dependencies.anstyle] | |
fe692bf9 | 99 | version = "1.0.0" |
353b0b11 FG |
100 | |
101 | [dependencies.anstyle-parse] | |
fe692bf9 | 102 | version = "0.2.0" |
353b0b11 | 103 | |
fe692bf9 | 104 | [dependencies.anstyle-query] |
353b0b11 FG |
105 | version = "1.0.0" |
106 | optional = true | |
107 | ||
fe692bf9 FG |
108 | [dependencies.colorchoice] |
109 | version = "1.0.0" | |
353b0b11 FG |
110 | optional = true |
111 | ||
353b0b11 FG |
112 | [dependencies.utf8parse] |
113 | version = "0.2.1" | |
114 | ||
115 | [dev-dependencies.criterion] | |
781aab86 | 116 | version = "0.5.1" |
353b0b11 FG |
117 | |
118 | [dev-dependencies.owo-colors] | |
119 | version = "3.5.0" | |
120 | ||
121 | [dev-dependencies.proptest] | |
781aab86 | 122 | version = "1.2.0" |
353b0b11 FG |
123 | |
124 | [dev-dependencies.strip-ansi-escapes] | |
781aab86 | 125 | version = "0.2.0" |
353b0b11 FG |
126 | |
127 | [features] | |
128 | auto = [ | |
fe692bf9 FG |
129 | "dep:anstyle-query", |
130 | "dep:colorchoice", | |
353b0b11 FG |
131 | ] |
132 | default = [ | |
133 | "auto", | |
134 | "wincon", | |
135 | ] | |
781aab86 | 136 | test = [] |
353b0b11 FG |
137 | wincon = ["dep:anstyle-wincon"] |
138 | ||
139 | [target."cfg(windows)".dependencies.anstyle-wincon] | |
781aab86 | 140 | version = "3.0.1" |
353b0b11 | 141 | optional = true |