Skip to content

Commit 3bb5a6d

Browse files
committed
Fix build
1 parent b63c397 commit 3bb5a6d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

sea-streamer-file/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ tokio = { version = "1.10.0", optional = true }
3737
[features]
3838
default = []
3939
test = ["anyhow", "async-std?/attributes", "tokio?/full", "env_logger"]
40-
executables = ["anyhow", "tokio/full", "env_logger", "clap", "sea-streamer-runtime/runtime-tokio", "serde", "serde_json", "sea-streamer-types/serde"]
40+
executables = ["anyhow", "tokio/full", "env_logger", "clap", "sea-streamer-runtime/runtime-tokio", "serde", "serde_json", "sea-streamer-types/json"]
4141
runtime-async-std = ["async-std", "sea-streamer-runtime/runtime-async-std"]
4242
runtime-tokio = ["tokio", "sea-streamer-runtime/runtime-tokio"]
4343

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)