Skip to content

Commit 27d63c1

Browse files
committed
Define 'serde' cfg feature for generated modules
1 parent dd5989b commit 27d63c1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

pdl-derive/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ authors = [
1515
exclude = ["editors/*"]
1616
categories = ["parsing"]
1717

18+
[features]
19+
serde = []
20+
1821
[lib]
1922
name = "pdl_derive"
2023
proc-macro = true

pdl-tests/Cargo.toml

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ publish = false
55
edition = "2021"
66
description = "PDL Rust generated code tests"
77

8+
[features]
9+
serde = []
10+
811
[dependencies]
912
bytes = "1.4.0"
1013
thiserror = "1.0.47"

0 commit comments

Comments
 (0)