1[package]
2name = "derive_more"
3version = "0.99.17"
4description = "Adds #[derive(x)] macros for more traits"
5authors = ["Jelte Fennema <github-tech@jeltef.nl>"]
6license = "MIT"
7repository = "https://github.com/JelteF/derive_more"
8documentation = "https://jeltef.github.io/derive_more/derive_more/"
9edition = "2018"
10
11readme = "README.md"
12keywords = ["derive", "Add", "From", "Display", "IntoIterator"]
13categories = ["development-tools", "development-tools::procedural-macro-helpers", "no-std"]
14
15include = [
16 "src/**/*.rs",
17 "Cargo.toml",
18 "LICENSE",
19 "README.md",
20 "CHANGELOG.md",
21 "tests/**/*.rs", # debian packaging wants this
22]
23autotests = true
24
25[lib]
26name = "derive_more"
27proc-macro = true
28
29[dependencies]
30proc-macro2 = "1.0"
31quote = "1.0"
32syn = "1.0.3"
33convert_case = { version = "0.4", optional = true}
34
35[build-dependencies]
36peg = { version = "0.5", optional = true }
37rustc_version = { version = "0.4", optional = true }
38
39[badges]
40github = { repository = "JelteF/derive_more", workflow = "CI" }
41
42[features]
43nightly = []
44add_assign = []
45add = []
46as_mut = []
47as_ref = []
48constructor = []
49deref = []
50deref_mut = []
51display = ["syn/extra-traits"]
52error = ["syn/extra-traits"]
53from = ["syn/extra-traits"]
54from_str = []
55index = []
56index_mut = []
57into = ["syn/extra-traits"]
58into_iterator = []
59iterator = []
60mul_assign = ["syn/extra-traits"]
61mul = ["syn/extra-traits"]
62not = ["syn/extra-traits"]
63sum = []
64try_into = ["syn/extra-traits"]
65generate-parsing-rs = ["peg"]
66testing-helpers = ["rustc_version"]
67is_variant = ["convert_case"]
68unwrap = ["convert_case", "rustc_version"]
69# Feature that requires post-MSRV Rust version,
70# of 1.46. We perform rustc version detection in the
71# build script for features that require this.
72# (Currently just `unwrap`.)
73track-caller = []
74
75default = [
76 "add_assign",
77 "add",
78 "as_mut",
79 "as_ref",
80 "constructor",
81 "deref",
82 "deref_mut",
83 "display",
84 "error",
85 "from",
86 "from_str",
87 "index",
88 "index_mut",
89 "into",
90 "into_iterator",
91 "iterator",
92 "mul_assign",
93 "mul",
94 "not",
95 "sum",
96 "try_into",
97 "is_variant",
98 "unwrap"
99]
100
101[[test]]
102name = "add_assign"
103path = "tests/add_assign.rs"
104required-features = ["add_assign"]
105
106[[test]]
107name = "add"
108path = "tests/add.rs"
109required-features = ["add"]
110
111[[test]]
112name = "as_mut"
113path = "tests/as_mut.rs"
114required-features = ["as_mut"]
115
116[[test]]
117name = "as_ref"
118path = "tests/as_ref.rs"
119required-features = ["as_ref"]
120
121[[test]]
122name = "boats_display_derive"
123path = "tests/boats_display_derive.rs"
124required-features = ["display"]
125
126[[test]]
127name = "constructor"
128path = "tests/constructor.rs"
129required-features = ["constructor"]
130
131[[test]]
132name = "deref"
133path = "tests/deref.rs"
134required-features = ["deref"]
135
136[[test]]
137name = "deref_mut"
138path = "tests/deref_mut.rs"
139required-features = ["deref_mut"]
140
141[[test]]
142name = "display"
143path = "tests/display.rs"
144required-features = ["display"]
145
146[[test]]
147name = "error"
148path = "tests/error_tests.rs"
149required-features = ["error"]
150
151[[test]]
152name = "from"
153path = "tests/from.rs"
154required-features = ["from"]
155
156[[test]]
157name = "from_str"
158path = "tests/from_str.rs"
159required-features = ["from_str"]
160
161[[test]]
162name = "index_mut"
163path = "tests/index_mut.rs"
164required-features = ["index_mut"]
165
166[[test]]
167name = "index"
168path = "tests/index.rs"
169required-features = ["index"]
170
171[[test]]
172name = "into"
173path = "tests/into.rs"
174required-features = ["into"]
175
176[[test]]
177name = "into_iterator"
178path = "tests/into_iterator.rs"
179required-features = ["into_iterator"]
180
181[[test]]
182name = "mul_assign"
183path = "tests/mul_assign.rs"
184required-features = ["mul_assign"]
185
186[[test]]
187name = "mul"
188path = "tests/mul.rs"
189required-features = ["mul"]
190
191[[test]]
192name = "not"
193path = "tests/not.rs"
194required-features = ["not"]
195
196[[test]]
197name = "sum"
198path = "tests/sum.rs"
199required-features = ["sum"]
200
201[[test]]
202name = "try_into"
203path = "tests/try_into.rs"
204required-features = ["try_into"]
205
206[[test]]
207name = "is_variant"
208path = "tests/is_variant.rs"
209required-features = ["is_variant"]
210
211[[test]]
212name = "unwrap"
213path = "tests/unwrap.rs"
214required-features = ["unwrap"]
215
216[[test]]
217name = "no_std"
218path = "tests/no_std.rs"
219required-features = [
220 "add_assign",
221 "add",
222 "as_mut",
223 "as_ref",
224 "constructor",
225 "deref",
226 "deref_mut",
227 "display",
228 "from",
229 "from_str",
230 "index",
231 "index_mut",
232 "into",
233 "mul_assign",
234 "mul",
235 "not",
236 "sum",
237 "try_into",
238 "is_variant",
239]
240
241[[test]]
242name = "generics"
243path = "tests/generics.rs"
244required-features = [
245 "add_assign",
246 "add",
247 "as_mut",
248 "as_ref",
249 "constructor",
250 "deref",
251 "deref_mut",
252 "display",
253 "from",
254 "from_str",
255 "index",
256 "index_mut",
257 "into",
258 "mul_assign",
259 "mul",
260 "not",
261 "try_into",
262 "is_variant",
263]
264
265[[test]]
266name = "lib"
267path = "tests/lib.rs"
268required-features = [
269 "add_assign",
270 "add",
271 "as_mut",
272 "as_ref",
273 "constructor",
274 "deref",
275 "deref_mut",
276 "display",
277 "from",
278 "from_str",
279 "index",
280 "index_mut",
281 "into",
282 "mul_assign",
283 "mul",
284 "not",
285 "try_into",
286 "is_variant",
287]
288
289[[example]]
290name = "deny_missing_docs"
291path = "examples/deny_missing_docs.rs"
292required-features = [
293 "add_assign",
294 "add",
295 "as_mut",
296 "as_ref",
297 "constructor",
298 "deref",
299 "deref_mut",
300 "display",
301 "from",
302 "from_str",
303 "index",
304 "index_mut",
305 "into",
306 "mul_assign",
307 "mul",
308 "not",
309 "try_into",
310 "is_variant",
311]
312