-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
38 lines (33 loc) · 861 Bytes
/
Cargo.toml
File metadata and controls
38 lines (33 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[package]
name = "impl-enum"
version = "0.3.1"
authors = ["Heliozoa <daniel.x.martinez@helsinki.fi>"]
edition = "2021"
rust-version = "1.56"
description = "Macros that make using enums like trait objects more convenient."
readme = "README.md"
repository = "https://github.com/Heliozoa/impl-enum"
license = "MPL-2.0"
keywords = ["macro", "enum", "methods"]
categories = ["rust-patterns"]
resolver = "2"
[lib]
proc-macro = true
[features]
default = ["with_methods", "as_dyn"]
with_methods = []
as_dyn = []
[[example]]
name = "as_dyn"
path = "examples/as_dyn.rs"
required-features = ["as_dyn"]
[[example]]
name = "with_methods"
path = "examples/with_methods.rs"
required-features = ["with_methods"]
[dependencies]
heck = "0.4.0"
proc-macro2 = "1.0.43"
# full: using types like syn::Signature
syn = { version = "2.0.39", features = ["full"] }
quote = "1.0.21"