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