- Updated serde to 0.8. Requires dependents to update as well.
0.5 adds support for arbitrary transports via the
Transport
trait.
Out of the box tarpc provides implementations for:
- Tcp, for types
impl
ingToSocketAddrs
. - Unix sockets via the
UnixTransport
type.
This was a breaking change: handler.local_addr()
was renamed
handler.dialer()
.
- Updated to the latest version of serde, 0.7.0. Because tarpc exposes serde in its API, this forces downstream code to update to the latest version of serde, as well.
- The timeout arg to
serve
was replaced with aConfig
struct, which currently only contains one field, but will be expanded in the future to allow configuring serialization protocol, and other things. serve
was changed to be a default method on the generatedService
traits, and it was renamedspawn_with_config
. A seconddefault fn
was added:spawn
, which takes noConfig
arg.
- Expanded items will no longer generate unused warnings.