Fixed rustc breakage in tarpc-plugins. These changes require a recent version of rustc.
Updates bincode to version 1.0.
Updates tarpc to use tarpc-plugins 0.2.
This release updates tarpc to use serde 1.0. As such, users must also update to use serde 1.0. The serde 1.0 release notes detail migration paths.
This release removes the Sync
bound on RPC args for both sync and future
clients. No breaking changes.
This release updates tarpc-plugins to work with rustc master. Thus, older versions of rustc are no longer supported. We chose a minor version bump because it is still source-compatible with existing code using tarpc.
This release was purely doc fixes. No breaking changes.
This release is a complete overhaul to build tarpc on top of the tokio stack. It's safe to assume that everything broke with this release.
Two traits are now generated by the macro, FutureService
and SyncService
.
SyncService
is the successor to the original Service
trait. It uses a configurable
thread pool to serve requests. FutureService
, as the name implies, uses futures
to serve requests and is single-threaded by default.
The easiest way to upgrade from a 0.6 service impl is to impl SyncService for MyService
.
For more complete information, see the readme and the examples directory.
- 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.