Skip to content

Commit

Permalink
udp protocol: add comment on serde feature
Browse files Browse the repository at this point in the history
  • Loading branch information
greatest-ape committed Jan 21, 2024
1 parent 21d237e commit 7fe3ec6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/udp_protocol/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ readme.workspace = true
rust-version.workspace = true

[features]
# Derive serde Serialize and Deserialize for most types.
#
# The implementations leans towards pretty-printing. For instance, it will
# convert info hashes to hex strings. If you want maximum performance, use
# the zerocopy-based write_bytes/parse_bytes methods instead.
serde = ["dep:serde", "dep:serde_with"]

[dependencies]
Expand Down

0 comments on commit 7fe3ec6

Please sign in to comment.