This Week in Ruma › published on 2016-07-31 by Jimmy Cuadra

This week serde 0.8.0 was released, offering a new serialization API. Most of the work on Ruma was towards serialization of the ID and event types. This will support the next step of implementing APIs in the homeserver that take events as user input. In addition to the changes landed in ruma-events, I've been working on figuring out how to approach Matrix types that are represented as enums in Rust code but involve checking the value of a key in the JSON structure of the serialized form to determine which variant it is. I hope to get this nailed down and committed by next week's update.

Notable changes to ruma-identifiers

Implement serialization and deserialization for ID types.

Change the new constructor to an implementation of TryFrom and add a separate generate constructor for generating new IDs with random localparts.

constructor to an implementation of and add a separate constructor for generating new IDs with random localparts. Begin running the test suite on Travis CI.

Publish the crate to crates.io. ruma-identifiers is the first Ruma component to get a crates.io release!

Notable changes to ruma-events