| 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" |
| 14 |
rust-version = "1.67" |
| 15 |
name = "codespan-reporting" |
| 16 |
version = "0.12.0" |
| 17 |
authors = ["Brendan Zabarauskas <[email protected]>"] |
| 18 |
build = false |
| 19 |
exclude = ["assets/**"] |
| 20 |
autolib = false |
| 21 |
autobins = false |
| 22 |
autoexamples = false |
| 23 |
autotests = false |
| 24 |
autobenches = false |
| 25 |
description = "Beautiful diagnostic reporting for text-based programming languages" |
| 26 |
homepage = "https://github.com/brendanzab/codespan" |
| 27 |
documentation = "https://docs.rs/codespan-reporting" |
| 28 |
readme = "README.md" |
| 29 |
license = "Apache-2.0" |
| 30 |
repository = "https://github.com/brendanzab/codespan" |
| 31 |
|
| 32 |
[features] |
| 33 |
ascii-only = [] |
| 34 |
default = [ |
| 35 |
"std", |
| 36 |
"termcolor", |
| 37 |
] |
| 38 |
serialization = ["serde"] |
| 39 |
std = ["serde?/std"] |
| 40 |
termcolor = [ |
| 41 |
"std", |
| 42 |
"dep:termcolor", |
| 43 |
] |
| 44 |
|
| 45 |
[lib] |
| 46 |
name = "codespan_reporting" |
| 47 |
path = "src/lib.rs" |
| 48 |
|
| 49 |
[[example]] |
| 50 |
name = "custom_files" |
| 51 |
path = "examples/custom_files.rs" |
| 52 |
|
| 53 |
[[example]] |
| 54 |
name = "peg_calculator" |
| 55 |
path = "examples/peg_calculator.rs" |
| 56 |
|
| 57 |
[[example]] |
| 58 |
name = "readme_preview" |
| 59 |
path = "examples/readme_preview.rs" |
| 60 |
|
| 61 |
[[example]] |
| 62 |
name = "reusable_diagnostic" |
| 63 |
path = "examples/reusable_diagnostic.rs" |
| 64 |
|
| 65 |
[[example]] |
| 66 |
name = "term" |
| 67 |
path = "examples/term.rs" |
| 68 |
|
| 69 |
[[test]] |
| 70 |
name = "term" |
| 71 |
path = "tests/term.rs" |
| 72 |
|
| 73 |
[dependencies.serde] |
| 74 |
version = "1" |
| 75 |
features = [ |
| 76 |
"derive", |
| 77 |
"alloc", |
| 78 |
] |
| 79 |
optional = true |
| 80 |
default-features = false |
| 81 |
|
| 82 |
[dependencies.termcolor] |
| 83 |
version = "1.0.4" |
| 84 |
optional = true |
| 85 |
|
| 86 |
[dependencies.unicode-width] |
| 87 |
version = ">=0.1,<0.3" |
| 88 |
|
| 89 |
[dev-dependencies.anyhow] |
| 90 |
version = "1" |
| 91 |
|
| 92 |
[dev-dependencies.insta] |
| 93 |
version = "1.6.3" |
| 94 |
|
| 95 |
[dev-dependencies.lazy_static] |
| 96 |
version = "1.4" |
| 97 |
|
| 98 |
[dev-dependencies.peg] |
| 99 |
version = "0.7" |
| 100 |
|
| 101 |
[dev-dependencies.pico-args] |
| 102 |
version = "0.5.0" |
| 103 |
|
| 104 |
[dev-dependencies.rustyline] |
| 105 |
version = "6" |
| 106 |
|
| 107 |
[dev-dependencies.unindent] |
| 108 |
version = "0.1" |
| 109 |
|
| 110 |
[lints.clippy] |
| 111 |
alloc_instead_of_core = "warn" |
| 112 |
std_instead_of_alloc = "warn" |
| 113 |
std_instead_of_core = "warn" |