1[package]
2name = "derive_more-impl"
3version = "2.0.1"
4edition = "2021"
5rust-version = "1.75.0"
6description = "Internal implementation of `derive_more` crate"
7authors = ["Jelte Fennema <github-tech@jeltef.nl>"]
8license = "MIT"
9repository = "https://github.com/JelteF/derive_more"
10documentation = "https://docs.rs/derive_more"
11
12# explicitly no keywords or categories so it cannot be found easily
13
14include = [
15 "src/**/*.rs",
16 "doc/**/*.md",
17 "Cargo.toml",
18 "README.md",
19 "LICENSE",
20]
21
22[lib]
23proc-macro = true
24
25[dependencies]
26proc-macro2 = "1.0"
27quote = "1.0"
28syn = "2.0.45"
29convert_case = { version = "0.7", optional = true }
30unicode-xid = { version = "0.2.2", optional = true }
31
32[build-dependencies]
33rustc_version = { version = "0.4", optional = true }
34
35[dev-dependencies]
36derive_more = { path = "..", features = ["full"] }
37itertools = "0.14.0"
38
39[badges]
40github = { repository = "JelteF/derive_more", workflow = "CI" }
41
42[package.metadata.docs.rs]
43features = ["full"]
44rustdoc-args = ["--cfg", "docsrs"]
45
46[lints.rust]
47unexpected_cfgs = { level = "warn", check-cfg = ["cfg(ci)", "cfg(nightly)"] }
48
49[features]
50default = []
51
52add = []
53add_assign = []
54as_ref = ["syn/extra-traits", "syn/visit"]
55constructor = []
56debug = ["syn/extra-traits", "dep:unicode-xid"]
57deref = []
58deref_mut = []
59display = ["syn/extra-traits", "dep:unicode-xid"]
60error = ["syn/extra-traits"]
61from = ["syn/extra-traits"]
62from_str = []
63index = []
64index_mut = []
65into = ["syn/extra-traits"]
66into_iterator = []
67is_variant = ["dep:convert_case"]
68mul = ["syn/extra-traits"]
69mul_assign = ["syn/extra-traits"]
70not = ["syn/extra-traits"]
71sum = []
72try_from = []
73try_into = ["syn/extra-traits"]
74try_unwrap = ["dep:convert_case"]
75unwrap = ["dep:convert_case"]
76
77full = [
78 "add",
79 "add_assign",
80 "as_ref",
81 "constructor",
82 "debug",
83 "deref",
84 "deref_mut",
85 "display",
86 "error",
87 "from",
88 "from_str",
89 "index",
90 "index_mut",
91 "into",
92 "into_iterator",
93 "is_variant",
94 "mul",
95 "mul_assign",
96 "not",
97 "sum",
98 "try_from",
99 "try_into",
100 "try_unwrap",
101 "unwrap",
102]
103
104testing-helpers = ["dep:rustc_version"]
105