Skip to content

Releases: sitano/maelstrom-rust-node

v0.1.6 - minors: fix broadcast example and internal unwrap() calls

31 May 10:50
Compare
Choose a tag to compare

491ad90 - fix clippy warnings and 2 dangerous unwraps()
a75cdd1 - examples: fix broadcast to have a set storage

v0.1.5, call+async call, runtime.rpc, into s

16 Apr 17:54
Compare
Choose a tag to compare
        let msg = self.runtime.call(ctx, self.typ, req).await?;
        let data = msg.body.as_obj::<Message<T>>()?;

or

        r0.send_async(n, msg)

v0.1.4, async send, ::rpc, g-set workload

15 Apr 16:03
Compare
Choose a tag to compare
bump version to v0.1.4, async send, ::rpc, g-set workload

lin/seq/tso/lww kv api

14 Apr 17:27
Compare
Choose a tag to compare
Ok(Request::Cas { key, from, to, put }) => {
    let (ctx, _handler) = Context::new();
    self.s.cas(ctx, key.to_string(), from, to, put).await?;
    return runtime.reply(req, Request::CasOk {}).await;
}

Minor API refinement

13 Apr 15:24
Compare
Choose a tag to compare

like

let mut msg = req.body.as_obj::<BroadcastRequest>()?;

if !runtime.is_from_cluster(&req.src) {
    for node in runtime.neighbours() {
        let _ = Runtime::rpc(runtime.clone(), node.clone(), msg.clone())
            .await? // Result<RPCResult>
            .await?; // Result<Message>
    }
}

RPC() + result + context support

12 Apr 16:58
Compare
Choose a tag to compare
v0.1.1

bump v0.1.1, rpc support

First version, lots todo, but already works

11 Apr 21:59
Compare
Choose a tag to compare