| 1 | [package] |
| 2 | name = "num_enum_derive" |
| 3 | version = "0.7.3" # Keep in sync with num_enum. |
| 4 | rust-version = "1.70.0" |
| 5 | authors = [ |
| 6 | "Daniel Wagner-Hall <dawagner@gmail.com>" , |
| 7 | "Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>" , |
| 8 | "Vincent Esche <regexident@gmail.com>" , |
| 9 | ] |
| 10 | description = "Internal implementation details for ::num_enum (Procedural macros to make inter-operation between primitives and enums easier)" |
| 11 | edition = "2021" |
| 12 | repository = "https://github.com/illicitonion/num_enum" |
| 13 | keywords = [] |
| 14 | categories = [] |
| 15 | license = "BSD-3-Clause OR MIT OR Apache-2.0" |
| 16 | |
| 17 | [lib] |
| 18 | proc-macro = true |
| 19 | |
| 20 | [features] |
| 21 | # Don't depend on proc-macro-crate in no_std environments because it causes an awkward depndency |
| 22 | # on serde with std. |
| 23 | # |
| 24 | # See https://github.com/illicitonion/num_enum/issues/18 |
| 25 | std = ["proc-macro-crate" ] |
| 26 | complex-expressions = ["syn/full" ] |
| 27 | external_doc = [] |
| 28 | |
| 29 | default = ["std" ] # disable to use in a `no_std` environment |
| 30 | |
| 31 | [package.metadata.docs.rs] |
| 32 | features = ["external_doc" ] |
| 33 | |
| 34 | [dependencies] |
| 35 | proc-macro2 = "1.0.60" |
| 36 | proc-macro-crate = { version = ">= 1, <= 3" , optional = true } |
| 37 | quote = "1" |
| 38 | syn = { version = "2" , features = ["parsing" ] } |
| 39 | |
| 40 | [dev-dependencies] |
| 41 | syn = { version = "2" , features = ["extra-traits" , "parsing" ] } |
| 42 | |