zoter 0.2, zbus 6.4, zlink 0.9.1, zruntime 0.2.4, zcheapstr 1.3 and busd 0.8 are...
Zeeshan Ali Khan :rust: πΊπ¦ @zeenix@toot.cat
zoter 0.2, zbus 6.4, zlink 0.9.1, zruntime 0.2.4, zcheapstr 1.3 and busd 0.8 are out, with a round of improvements to restarting services under systemd without dropping their clients.
What's new:
β’ zoter stores a hand-over whole and takes it over whole, or fails, and tells systemd that the service has started as it takes over: a much simpler API.
β’ zbus hands a connection over with its object server, which answers the calls it has under way and leaves the rest to the next instance.
β’ zlink's `handover` feature builds on zoter 0.2 too, and zoter's errors convert into those of zbus and zlink, so `?` works on them.
β’ busd hands over its own connection as well, both ends of it, so a restart no longer waits for its messages to get through.
Also in this release:
β’ busd keeps serving its clients when accepting a connection fails, waiting on the runtime that zruntime's sockets now hand out.
β’ zbus's names and paths, and zcheapstr's strings, are (de)serialized as plain strings in every format, so RON reads them back.
What breaks:
β’ zoter returns `zoter::Error`, hands over through `Store::hand_over` alone, and needs socket activation.
β’ A service that calls zoter itself, beside the `handover` feature of zbus or zlink, needs zoter 0.2 too.
β’ zbus's `jiff` feature moves to jiff 1.0.
β’ busd now needs a socket unit and a store under `Type=notify` or `FileDescriptorStoreMax=` for the hand-over feature.
β’ `CheapStr` is a plain string in every format, which changes its encoding in formats such as RON.
The release notes of each crate have the details:
zoter: https://github.com/z-galaxy/zoter/releases/tag/zoter-0.2.0
zbus: https://github.com/z-galaxy/zbus/releases/tag/zbus-6.4.0
zlink: https://github.com/z-galaxy/zlink/releases/tag/zlink-0.9.1
busd: https://github.com/z-galaxy/busd/releases/tag/0.8.0
zruntime: https://github.com/z-galaxy/zruntime/releases/tag/zruntime-0.2.4
zcheapstr: https://github.com/z-galaxy/zcheapstr/releases/tag/v1.3.0