[package]
name = "derive_more"
version = "0.99.18"
description = "Adds #[derive(x)] macros for more traits"
authors = ["Jelte Fennema <github-tech@jeltef.nl>"]
license = "MIT"
repository = "https://github.com/JelteF/derive_more"
documentation = "https://jeltef.github.io/derive_more/derive_more/"
edition = "2018"
readme = "README.md"
keywords = ["derive", "Add", "From", "Display", "IntoIterator"]
categories = ["development-tools", "development-tools::procedural-macro-helpers", "no-std"]
include = [
"src/**/*.rs",
"Cargo.toml",
"LICENSE",
"README.md",
"CHANGELOG.md",
"tests/**/*.rs",
"examples/**/*.rs",
]
autotests = true
[lib]
name = "derive_more"
proc-macro = true
[dependencies]
proc-macro2 = "1.0"
quote = "1.0"
syn = "2"
convert_case = { version = "0.4", optional = true}
[build-dependencies]
peg = { version = "0.5", optional = true }
rustc_version = { version = "0.4", optional = true }
[badges]
github = { repository = "JelteF/derive_more", workflow = "CI" }
[features]
nightly = []
add_assign = []
add = []
as_mut = []
as_ref = []
constructor = []
deref = []
deref_mut = []
display = ["syn/extra-traits"]
error = ["syn/extra-traits"]
from = ["syn/extra-traits"]
from_str = []
index = []
index_mut = []
into = ["syn/extra-traits"]
into_iterator = []
iterator = []
mul_assign = ["syn/extra-traits"]
mul = ["syn/extra-traits"]
not = ["syn/extra-traits"]
sum = []
try_into = ["syn/extra-traits"]
generate-parsing-rs = ["peg"]
testing-helpers = ["rustc_version"]
is_variant = ["convert_case"]
unwrap = ["convert_case", "rustc_version"]
track-caller = []
default = [
"add_assign",
"add",
"as_mut",
"as_ref",
"constructor",
"deref",
"deref_mut",
"display",
"error",
"from",
"from_str",
"index",
"index_mut",
"into",
"into_iterator",
"iterator",
"mul_assign",
"mul",
"not",
"sum",
"try_into",
"is_variant",
"unwrap"
]
[[test]]
name = "add_assign"
path = "tests/add_assign.rs"
required-features = ["add_assign"]
[[test]]
name = "add"
path = "tests/add.rs"
required-features = ["add"]
[[test]]
name = "as_mut"
path = "tests/as_mut.rs"
required-features = ["as_mut"]
[[test]]
name = "as_ref"
path = "tests/as_ref.rs"
required-features = ["as_ref"]
[[test]]
name = "boats_display_derive"
path = "tests/boats_display_derive.rs"
required-features = ["display"]
[[test]]
name = "constructor"
path = "tests/constructor.rs"
required-features = ["constructor"]
[[test]]
name = "deref"
path = "tests/deref.rs"
required-features = ["deref"]
[[test]]
name = "deref_mut"
path = "tests/deref_mut.rs"
required-features = ["deref_mut"]
[[test]]
name = "display"
path = "tests/display.rs"
required-features = ["display"]
[[test]]
name = "error"
path = "tests/error_tests.rs"
required-features = ["error"]
[[test]]
name = "from"
path = "tests/from.rs"
required-features = ["from"]
[[test]]
name = "from_str"
path = "tests/from_str.rs"
required-features = ["from_str"]
[[test]]
name = "index_mut"
path = "tests/index_mut.rs"
required-features = ["index_mut"]
[[test]]
name = "index"
path = "tests/index.rs"
required-features = ["index"]
[[test]]
name = "into"
path = "tests/into.rs"
required-features = ["into"]
[[test]]
name = "into_iterator"
path = "tests/into_iterator.rs"
required-features = ["into_iterator"]
[[test]]
name = "mul_assign"
path = "tests/mul_assign.rs"
required-features = ["mul_assign"]
[[test]]
name = "mul"
path = "tests/mul.rs"
required-features = ["mul"]
[[test]]
name = "not"
path = "tests/not.rs"
required-features = ["not"]
[[test]]
name = "sum"
path = "tests/sum.rs"
required-features = ["sum"]
[[test]]
name = "try_into"
path = "tests/try_into.rs"
required-features = ["try_into"]
[[test]]
name = "is_variant"
path = "tests/is_variant.rs"
required-features = ["is_variant"]
[[test]]
name = "unwrap"
path = "tests/unwrap.rs"
required-features = ["unwrap"]
[[test]]
name = "no_std"
path = "tests/no_std.rs"
required-features = [
"add_assign",
"add",
"as_mut",
"as_ref",
"constructor",
"deref",
"deref_mut",
"display",
"from",
"from_str",
"index",
"index_mut",
"into",
"mul_assign",
"mul",
"not",
"sum",
"try_into",
"is_variant",
]
[[test]]
name = "generics"
path = "tests/generics.rs"
required-features = [
"add_assign",
"add",
"as_mut",
"as_ref",
"constructor",
"deref",
"deref_mut",
"display",
"from",
"from_str",
"index",
"index_mut",
"into",
"mul_assign",
"mul",
"not",
"try_into",
"is_variant",
]
[[test]]
name = "lib"
path = "tests/lib.rs"
required-features = [
"add_assign",
"add",
"as_mut",
"as_ref",
"constructor",
"deref",
"deref_mut",
"display",
"from",
"from_str",
"index",
"index_mut",
"into",
"mul_assign",
"mul",
"not",
"try_into",
"is_variant",
]
[[example]]
name = "deny_missing_docs"
path = "examples/deny_missing_docs.rs"
required-features = [
"add_assign",
"add",
"as_mut",
"as_ref",
"constructor",
"deref",
"deref_mut",
"display",
"from",
"from_str",
"index",
"index_mut",
"into",
"mul_assign",
"mul",
"not",
"try_into",
"is_variant",
]