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 435fff9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sea-streamer-types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ futures = { version = "0.3", default-features = false, features = ["std", "alloc
thiserror = { version = "1", default-features = false }
time = { version = "0.3", default-features = false, features = ["std", "macros", "formatting"] }
url = { version = "2.2", default-features = false }
serde = { version = "1", default-features = false, optional = true }
serde = { version = "1", default-features = false, optional = true, features = ["derive"] }
serde_json = { version = "1", optional = true }

[features]
json = ["serde/derive", "serde_json"]
json = ["serde", "serde_json"]
wide-seq-no = []
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 435fff9

Please sign in to comment.