Skip to content

Commit 435fff9

Browse files
committed
Fix build
1 parent b63c397 commit 435fff9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

sea-streamer-types/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ futures = { version = "0.3", default-features = false, features = ["std", "alloc
2020
thiserror = { version = "1", default-features = false }
2121
time = { version = "0.3", default-features = false, features = ["std", "macros", "formatting"] }
2222
url = { version = "2.2", default-features = false }
23-
serde = { version = "1", default-features = false, optional = true }
23+
serde = { version = "1", default-features = false, optional = true, features = ["derive"] }
2424
serde_json = { version = "1", optional = true }
2525

2626
[features]
27-
json = ["serde/derive", "serde_json"]
27+
json = ["serde", "serde_json"]
2828
wide-seq-no = []

sea-streamer-types/src/message.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ impl<'a> IntoBytesOrStr<'a> for &'a [u8] {
358358
}
359359
}
360360

361-
#[cfg(feature = "json")]
361+
#[cfg(feature = "serde")]
362362
impl serde::Serialize for MessageHeader {
363363
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
364364
where

sea-streamer-types/src/stream.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ pub fn is_valid_stream_key_char(c: char) -> bool {
9696
c.is_ascii_alphanumeric() || matches!(c, '.' | '_' | '-')
9797
}
9898

99-
#[cfg(feature = "json")]
99+
#[cfg(feature = "serde")]
100100
mod impl_serde {
101101
use super::StreamKey;
102102

0 commit comments

Comments
 (0)