| 1 | # anstyle |
| 2 | |
| 3 | > ANSI text styling |
| 4 | |
| 5 | *A portmanteau of "ansi style"* |
| 6 | |
| 7 | [][Documentation] |
| 8 |  |
| 9 | [](https://crates.io/crates/anstyle) |
| 10 | |
| 11 | `anstyle` provides core types describing [ANSI styling escape |
| 12 | codes](https://en.wikipedia.org/wiki/ANSI_escape_code) for interoperability |
| 13 | between crates. For example, this would allow a crate to provide an API for |
| 14 | customizing the colors used without putting the underlying text styling crate |
| 15 | in the API. |
| 16 | |
| 17 | For integration with your text styling crate, see: |
| 18 | - [anstyle-termcolor](crates/termcolor) |
| 19 | - [anstyle-owo-colors](crates/owo) |
| 20 | - [anstyle-yansi](crates/yansi) |
| 21 | |
| 22 | General utilities: |
| 23 | - [anstyle-git](crates/git): Parse Git style descriptions |
| 24 | |
| 25 | ## License |
| 26 | |
| 27 | Licensed under either of |
| 28 | |
| 29 | * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or <https://www.apache.org/licenses/LICENSE-2.0>) |
| 30 | * MIT license ([LICENSE-MIT](LICENSE-MIT) or <https://opensource.org/license/mit>) |
| 31 | |
| 32 | at your option. |
| 33 | |
| 34 | ## [Contribute](../../CONTRIBUTING.md) |
| 35 | |
| 36 | Unless you explicitly state otherwise, any contribution intentionally |
| 37 | submitted for inclusion in the work by you, as defined in the Apache-2.0 |
| 38 | license, shall be dual-licensed as above, without any additional terms or |
| 39 | conditions. |
| 40 | |
| 41 | [Crates.io]: https://crates.io/crates/anstyle |
| 42 | [Documentation]: https://docs.rs/anstyle |