| 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.61" |
| 15 |
name = "thiserror" |
| 16 |
version = "2.0.17" |
| 17 |
authors = ["David Tolnay <[email protected]>"] |
| 18 |
build = "build.rs" |
| 19 |
autolib = false |
| 20 |
autobins = false |
| 21 |
autoexamples = false |
| 22 |
autotests = false |
| 23 |
autobenches = false |
| 24 |
description = "derive(Error)" |
| 25 |
documentation = "https://docs.rs/thiserror" |
| 26 |
readme = "README.md" |
| 27 |
keywords = [ |
| 28 |
"error", |
| 29 |
"error-handling", |
| 30 |
"derive", |
| 31 |
] |
| 32 |
categories = [ |
| 33 |
"rust-patterns", |
| 34 |
"no-std", |
| 35 |
] |
| 36 |
license = "MIT OR Apache-2.0" |
| 37 |
repository = "https://github.com/dtolnay/thiserror" |
| 38 |
|
| 39 |
[package.metadata.docs.rs] |
| 40 |
targets = ["x86_64-unknown-linux-gnu"] |
| 41 |
rustdoc-args = [ |
| 42 |
"--generate-link-to-definition", |
| 43 |
"--generate-macro-expansion", |
| 44 |
"--extern-html-root-url=core=https://doc.rust-lang.org", |
| 45 |
"--extern-html-root-url=alloc=https://doc.rust-lang.org", |
| 46 |
"--extern-html-root-url=std=https://doc.rust-lang.org", |
| 47 |
] |
| 48 |
|
| 49 |
[features] |
| 50 |
default = ["std"] |
| 51 |
std = [] |
| 52 |
|
| 53 |
[lib] |
| 54 |
name = "thiserror" |
| 55 |
path = "src/lib.rs" |
| 56 |
|
| 57 |
[[test]] |
| 58 |
name = "compiletest" |
| 59 |
path = "tests/compiletest.rs" |
| 60 |
|
| 61 |
[[test]] |
| 62 |
name = "test_backtrace" |
| 63 |
path = "tests/test_backtrace.rs" |
| 64 |
|
| 65 |
[[test]] |
| 66 |
name = "test_display" |
| 67 |
path = "tests/test_display.rs" |
| 68 |
|
| 69 |
[[test]] |
| 70 |
name = "test_error" |
| 71 |
path = "tests/test_error.rs" |
| 72 |
|
| 73 |
[[test]] |
| 74 |
name = "test_expr" |
| 75 |
path = "tests/test_expr.rs" |
| 76 |
|
| 77 |
[[test]] |
| 78 |
name = "test_from" |
| 79 |
path = "tests/test_from.rs" |
| 80 |
|
| 81 |
[[test]] |
| 82 |
name = "test_generics" |
| 83 |
path = "tests/test_generics.rs" |
| 84 |
|
| 85 |
[[test]] |
| 86 |
name = "test_lints" |
| 87 |
path = "tests/test_lints.rs" |
| 88 |
|
| 89 |
[[test]] |
| 90 |
name = "test_option" |
| 91 |
path = "tests/test_option.rs" |
| 92 |
|
| 93 |
[[test]] |
| 94 |
name = "test_path" |
| 95 |
path = "tests/test_path.rs" |
| 96 |
|
| 97 |
[[test]] |
| 98 |
name = "test_source" |
| 99 |
path = "tests/test_source.rs" |
| 100 |
|
| 101 |
[[test]] |
| 102 |
name = "test_transparent" |
| 103 |
path = "tests/test_transparent.rs" |
| 104 |
|
| 105 |
[dependencies.thiserror-impl] |
| 106 |
version = "=2.0.17" |
| 107 |
|
| 108 |
[dev-dependencies.anyhow] |
| 109 |
version = "1.0.73" |
| 110 |
|
| 111 |
[dev-dependencies.ref-cast] |
| 112 |
version = "1.0.18" |
| 113 |
|
| 114 |
[dev-dependencies.rustversion] |
| 115 |
version = "1.0.13" |
| 116 |
|
| 117 |
[dev-dependencies.trybuild] |
| 118 |
version = "1.0.108" |
| 119 |
features = ["diff"] |