Compare commits

..

2 commits

Author SHA1 Message Date
Joe Ardent
6195807355 add doc comment for mk_payload 2025-09-17 13:06:12 -07:00
Joe Ardent
c7f3c21fd0 Add function for parsing topology messages. 2025-09-17 12:55:23 -07:00
2 changed files with 4 additions and 2 deletions

View file

@ -1,10 +1,10 @@
[package]
name = "nebkor-maelstrom"
edition = "2024"
version = "1.1.0"
version = "1.1.1"
license-file = "LICENSE.md"
readme = "README.md"
description = "An easy-to-use and synchronous client for creating Maelstrom distributed clients."
description = "An easy-to-use and synchronous framework for creating Maelstrom distributed clients."
repository = "https://git.kittencollective.com/nebkor/nebkor-maelstrom"
keywords = ["maelstrom", "glomers", "gossip", "distributed"]

View file

@ -224,6 +224,8 @@ pub fn check_err(msg: &Message) -> RpcResult {
Ok(None)
}
/// Convenience function for turning a list of `(&str, serde::Value)` pairs into
/// a Payload.
pub fn mk_payload(payload: &[(&str, Value)]) -> Payload {
payload
.iter()