Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tyt2y3 committed Nov 6, 2024
1 parent b63c397 commit 3bb5a6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sea-streamer-file/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tokio = { version = "1.10.0", optional = true }
[features]
default = []
test = ["anyhow", "async-std?/attributes", "tokio?/full", "env_logger"]
executables = ["anyhow", "tokio/full", "env_logger", "clap", "sea-streamer-runtime/runtime-tokio", "serde", "serde_json", "sea-streamer-types/serde"]
executables = ["anyhow", "tokio/full", "env_logger", "clap", "sea-streamer-runtime/runtime-tokio", "serde", "serde_json", "sea-streamer-types/json"]
runtime-async-std = ["async-std", "sea-streamer-runtime/runtime-async-std"]
runtime-tokio = ["tokio", "sea-streamer-runtime/runtime-tokio"]

Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-types/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ impl<'a> IntoBytesOrStr<'a> for &'a [u8] {
}
}

#[cfg(feature = "json")]
#[cfg(feature = "serde")]
impl serde::Serialize for MessageHeader {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
Expand Down
2 changes: 1 addition & 1 deletion sea-streamer-types/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub fn is_valid_stream_key_char(c: char) -> bool {
c.is_ascii_alphanumeric() || matches!(c, '.' | '_' | '-')
}

#[cfg(feature = "json")]
#[cfg(feature = "serde")]
mod impl_serde {
use super::StreamKey;

Expand Down

0 comments on commit 3bb5a6d

Please sign in to comment.