Skip to content

Commit 1c03326

Browse files
authored
Merge pull request #5 from jngls/formatting
[FEATURE]: Generics, lifetimes, where clauses and internal field variant formatting
2 parents 115d6e5 + 430a2a0 commit 1c03326

5 files changed

Lines changed: 690 additions & 84 deletions

File tree

Cargo.toml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1+
[workspace]
2+
members = [".", "enum-display-macro"]
3+
14
[package]
25
name = "enum-display"
36
description = "A macro to derive Display for enums"
47
keywords = ["enum", "display", "derive", "macro"]
5-
version = "0.1.4"
8+
version = "0.1.5"
69
edition = "2021"
710
license = "MIT"
811
documentation = "https://docs.rs/enum-display"
912
homepage = "https://github.com/SeedyROM/enum-display"
1013
repository = "https://github.com/SeedyROM/enum-display"
1114

12-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
13-
1415
[dependencies]
15-
enum-display-macro = { version = "0.1.4" }
16+
enum-display-macro = { version = "0.1.5", path = "./enum-display-macro" }
17+
18+
[features]
19+
default = ["std"]
20+
std = []
21+
22+
[dev-dependencies]
23+
static_assertions = "1.1"
24+
25+
[[test]]
26+
name = "no_std_integration"
27+
required-features = []
28+
29+
[package.metadata.docs.rs]
30+
all-features = true
31+
rustdoc-args = ["--cfg", "docsrs"]

enum-display-macro/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "enum-display-macro"
33
description = "A macro to derive Display for enums"
44
keywords = ["enum", "display", "derive", "macro"]
5-
version = "0.1.4"
5+
version = "0.1.5"
66
edition = "2021"
77
license = "MIT"
88
documentation = "https://docs.rs/enum-display/tree/main/enum-display-derive"
@@ -12,9 +12,11 @@ repository = "https://github.com/SeedyROM/enum-display/tree/main/enum-display-de
1212
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1313

1414
[dependencies]
15+
proc-macro2 = "1.0.95"
1516
convert_case = "0.6.0"
1617
quote = "1.0.21"
1718
syn = { version = "1.0.101", features = ["full"] }
19+
regex = "1.11.1"
1820

1921
[lib]
2022
proc-macro = true

0 commit comments

Comments
 (0)