| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
[package] |
| 13 |
edition = "2021" |
| 14 |
rust-version = "1.81.0" |
| 15 |
name = "derive_more" |
| 16 |
version = "2.1.1" |
| 17 |
authors = ["Jelte Fennema <[email protected]>"] |
| 18 |
build = false |
| 19 |
include = [ |
| 20 |
"src/**/*.rs", |
| 21 |
"Cargo.toml", |
| 22 |
"LICENSE", |
| 23 |
"README.md", |
| 24 |
"CHANGELOG.md", |
| 25 |
"tests/**/*.rs", |
| 26 |
"examples/**/*.rs", |
| 27 |
] |
| 28 |
autolib = false |
| 29 |
autobins = false |
| 30 |
autoexamples = false |
| 31 |
autotests = false |
| 32 |
autobenches = false |
| 33 |
description = "Adds #[derive(x)] macros for more traits" |
| 34 |
documentation = "https://docs.rs/derive_more" |
| 35 |
readme = "README.md" |
| 36 |
keywords = [ |
| 37 |
"derive", |
| 38 |
"Add", |
| 39 |
"From", |
| 40 |
"Display", |
| 41 |
"IntoIterator", |
| 42 |
] |
| 43 |
categories = [ |
| 44 |
"development-tools", |
| 45 |
"development-tools::procedural-macro-helpers", |
| 46 |
"no-std", |
| 47 |
"rust-patterns", |
| 48 |
] |
| 49 |
license = "MIT" |
| 50 |
repository = "https://github.com/JelteF/derive_more" |
| 51 |
|
| 52 |
[package.metadata.docs.rs] |
| 53 |
features = ["full"] |
| 54 |
rustdoc-args = [ |
| 55 |
"--cfg", |
| 56 |
"docsrs", |
| 57 |
] |
| 58 |
|
| 59 |
[package.metadata.playground] |
| 60 |
features = [ |
| 61 |
"full", |
| 62 |
"std", |
| 63 |
] |
| 64 |
|
| 65 |
[badges.github] |
| 66 |
repository = "JelteF/derive_more" |
| 67 |
workflow = "CI" |
| 68 |
|
| 69 |
[features] |
| 70 |
add = ["derive_more-impl/add"] |
| 71 |
add_assign = ["derive_more-impl/add_assign"] |
| 72 |
as_ref = ["derive_more-impl/as_ref"] |
| 73 |
constructor = ["derive_more-impl/constructor"] |
| 74 |
debug = ["derive_more-impl/debug"] |
| 75 |
default = ["std"] |
| 76 |
deref = ["derive_more-impl/deref"] |
| 77 |
deref_mut = ["derive_more-impl/deref_mut"] |
| 78 |
display = ["derive_more-impl/display"] |
| 79 |
eq = ["derive_more-impl/eq"] |
| 80 |
error = ["derive_more-impl/error"] |
| 81 |
from = ["derive_more-impl/from"] |
| 82 |
from_str = ["derive_more-impl/from_str"] |
| 83 |
full = [ |
| 84 |
"add", |
| 85 |
"add_assign", |
| 86 |
"as_ref", |
| 87 |
"constructor", |
| 88 |
"debug", |
| 89 |
"deref", |
| 90 |
"deref_mut", |
| 91 |
"display", |
| 92 |
"eq", |
| 93 |
"error", |
| 94 |
"from", |
| 95 |
"from_str", |
| 96 |
"index", |
| 97 |
"index_mut", |
| 98 |
"into", |
| 99 |
"into_iterator", |
| 100 |
"is_variant", |
| 101 |
"mul", |
| 102 |
"mul_assign", |
| 103 |
"not", |
| 104 |
"sum", |
| 105 |
"try_from", |
| 106 |
"try_into", |
| 107 |
"try_unwrap", |
| 108 |
"unwrap", |
| 109 |
] |
| 110 |
index = ["derive_more-impl/index"] |
| 111 |
index_mut = ["derive_more-impl/index_mut"] |
| 112 |
into = ["derive_more-impl/into"] |
| 113 |
into_iterator = ["derive_more-impl/into_iterator"] |
| 114 |
is_variant = ["derive_more-impl/is_variant"] |
| 115 |
mul = ["derive_more-impl/mul"] |
| 116 |
mul_assign = ["derive_more-impl/mul_assign"] |
| 117 |
not = ["derive_more-impl/not"] |
| 118 |
std = [] |
| 119 |
sum = ["derive_more-impl/sum"] |
| 120 |
testing-helpers = [ |
| 121 |
"derive_more-impl/testing-helpers", |
| 122 |
"dep:rustc_version", |
| 123 |
] |
| 124 |
try_from = ["derive_more-impl/try_from"] |
| 125 |
try_into = ["derive_more-impl/try_into"] |
| 126 |
try_unwrap = ["derive_more-impl/try_unwrap"] |
| 127 |
unwrap = ["derive_more-impl/unwrap"] |
| 128 |
|
| 129 |
[lib] |
| 130 |
name = "derive_more" |
| 131 |
path = "src/lib.rs" |
| 132 |
|
| 133 |
[[example]] |
| 134 |
name = "deny_missing_docs" |
| 135 |
path = "examples/deny_missing_docs.rs" |
| 136 |
required-features = ["full"] |
| 137 |
|
| 138 |
[[test]] |
| 139 |
name = "add" |
| 140 |
path = "tests/add.rs" |
| 141 |
required-features = ["add"] |
| 142 |
|
| 143 |
[[test]] |
| 144 |
name = "add_assign" |
| 145 |
path = "tests/add_assign.rs" |
| 146 |
required-features = ["add_assign"] |
| 147 |
|
| 148 |
[[test]] |
| 149 |
name = "as_mut" |
| 150 |
path = "tests/as_mut.rs" |
| 151 |
required-features = ["as_ref"] |
| 152 |
|
| 153 |
[[test]] |
| 154 |
name = "as_ref" |
| 155 |
path = "tests/as_ref.rs" |
| 156 |
required-features = ["as_ref"] |
| 157 |
|
| 158 |
[[test]] |
| 159 |
name = "boats_display_derive" |
| 160 |
path = "tests/boats_display_derive.rs" |
| 161 |
required-features = ["display"] |
| 162 |
|
| 163 |
[[test]] |
| 164 |
name = "compile_fail" |
| 165 |
path = "tests/compile_fail/mod.rs" |
| 166 |
required-features = [ |
| 167 |
"as_ref", |
| 168 |
"debug", |
| 169 |
"display", |
| 170 |
"from", |
| 171 |
"into", |
| 172 |
"is_variant", |
| 173 |
"try_from", |
| 174 |
"try_into", |
| 175 |
] |
| 176 |
|
| 177 |
[[test]] |
| 178 |
name = "constructor" |
| 179 |
path = "tests/constructor.rs" |
| 180 |
required-features = ["constructor"] |
| 181 |
|
| 182 |
[[test]] |
| 183 |
name = "debug" |
| 184 |
path = "tests/debug.rs" |
| 185 |
required-features = ["debug"] |
| 186 |
|
| 187 |
[[test]] |
| 188 |
name = "deref" |
| 189 |
path = "tests/deref.rs" |
| 190 |
required-features = ["deref"] |
| 191 |
|
| 192 |
[[test]] |
| 193 |
name = "deref_mut" |
| 194 |
path = "tests/deref_mut.rs" |
| 195 |
required-features = ["deref_mut"] |
| 196 |
|
| 197 |
[[test]] |
| 198 |
name = "display" |
| 199 |
path = "tests/display.rs" |
| 200 |
required-features = ["display"] |
| 201 |
|
| 202 |
[[test]] |
| 203 |
name = "eq" |
| 204 |
path = "tests/eq.rs" |
| 205 |
required-features = ["eq"] |
| 206 |
|
| 207 |
[[test]] |
| 208 |
name = "error" |
| 209 |
path = "tests/error_tests.rs" |
| 210 |
required-features = ["error"] |
| 211 |
|
| 212 |
[[test]] |
| 213 |
name = "from" |
| 214 |
path = "tests/from.rs" |
| 215 |
required-features = ["from"] |
| 216 |
|
| 217 |
[[test]] |
| 218 |
name = "from_str" |
| 219 |
path = "tests/from_str.rs" |
| 220 |
required-features = ["from_str"] |
| 221 |
|
| 222 |
[[test]] |
| 223 |
name = "generics" |
| 224 |
path = "tests/generics.rs" |
| 225 |
required-features = ["full"] |
| 226 |
|
| 227 |
[[test]] |
| 228 |
name = "index" |
| 229 |
path = "tests/index.rs" |
| 230 |
required-features = ["index"] |
| 231 |
|
| 232 |
[[test]] |
| 233 |
name = "index_mut" |
| 234 |
path = "tests/index_mut.rs" |
| 235 |
required-features = ["index_mut"] |
| 236 |
|
| 237 |
[[test]] |
| 238 |
name = "into" |
| 239 |
path = "tests/into.rs" |
| 240 |
required-features = ["into"] |
| 241 |
|
| 242 |
[[test]] |
| 243 |
name = "into_iterator" |
| 244 |
path = "tests/into_iterator.rs" |
| 245 |
required-features = ["into_iterator"] |
| 246 |
|
| 247 |
[[test]] |
| 248 |
name = "is_variant" |
| 249 |
path = "tests/is_variant.rs" |
| 250 |
required-features = ["is_variant"] |
| 251 |
|
| 252 |
[[test]] |
| 253 |
name = "lib" |
| 254 |
path = "tests/lib.rs" |
| 255 |
required-features = ["full"] |
| 256 |
|
| 257 |
[[test]] |
| 258 |
name = "mul" |
| 259 |
path = "tests/mul.rs" |
| 260 |
required-features = ["mul"] |
| 261 |
|
| 262 |
[[test]] |
| 263 |
name = "mul_assign" |
| 264 |
path = "tests/mul_assign.rs" |
| 265 |
required-features = ["mul_assign"] |
| 266 |
|
| 267 |
[[test]] |
| 268 |
name = "no_std" |
| 269 |
path = "tests/no_std.rs" |
| 270 |
required-features = ["full"] |
| 271 |
|
| 272 |
[[test]] |
| 273 |
name = "not" |
| 274 |
path = "tests/not.rs" |
| 275 |
required-features = ["not"] |
| 276 |
|
| 277 |
[[test]] |
| 278 |
name = "partial_eq" |
| 279 |
path = "tests/partial_eq.rs" |
| 280 |
required-features = ["eq"] |
| 281 |
|
| 282 |
[[test]] |
| 283 |
name = "sum" |
| 284 |
path = "tests/sum.rs" |
| 285 |
required-features = ["sum"] |
| 286 |
|
| 287 |
[[test]] |
| 288 |
name = "try_from" |
| 289 |
path = "tests/try_from.rs" |
| 290 |
required-features = ["try_from"] |
| 291 |
|
| 292 |
[[test]] |
| 293 |
name = "try_into" |
| 294 |
path = "tests/try_into.rs" |
| 295 |
required-features = ["try_into"] |
| 296 |
|
| 297 |
[[test]] |
| 298 |
name = "try_unwrap" |
| 299 |
path = "tests/try_unwrap.rs" |
| 300 |
required-features = ["try_unwrap"] |
| 301 |
|
| 302 |
[[test]] |
| 303 |
name = "unwrap" |
| 304 |
path = "tests/unwrap.rs" |
| 305 |
required-features = ["unwrap"] |
| 306 |
|
| 307 |
[dependencies.derive_more-impl] |
| 308 |
version = "=2.1.1" |
| 309 |
|
| 310 |
[dev-dependencies.rustversion] |
| 311 |
version = "1.0" |
| 312 |
|
| 313 |
[dev-dependencies.static_assertions] |
| 314 |
version = "1.1" |
| 315 |
|
| 316 |
[dev-dependencies.trybuild] |
| 317 |
version = "1.0.56" |
| 318 |
|
| 319 |
[build-dependencies.rustc_version] |
| 320 |
version = "0.4" |
| 321 |
optional = true |
| 322 |
|
| 323 |
[lints.rust.unexpected_cfgs] |
| 324 |
level = "warn" |
| 325 |
priority = 0 |
| 326 |
check-cfg = [ |
| 327 |
"cfg(ci)", |
| 328 |
"cfg(nightly)", |
| 329 |
] |