#tokio #tower #protocol #transport

tokio-tower

Bridging the protocol gap between Tokio and Tower

19 releases

0.7.0-rc4 Mar 14, 2023
0.7.0-rc3 Sep 7, 2022
0.7.0-rc2 Apr 11, 2022
0.6.0 Aug 20, 2021
0.0.0 Aug 22, 2017

#500 in Asynchronous

Download history 5873/week @ 2023-06-06 5757/week @ 2023-06-13 6057/week @ 2023-06-20 6251/week @ 2023-06-27 6634/week @ 2023-07-04 7915/week @ 2023-07-11 7350/week @ 2023-07-18 8140/week @ 2023-07-25 7992/week @ 2023-08-01 6909/week @ 2023-08-08 8297/week @ 2023-08-15 8890/week @ 2023-08-22 7829/week @ 2023-08-29 7631/week @ 2023-09-05 7266/week @ 2023-09-12 5660/week @ 2023-09-19

29,636 downloads per month
Used in 13 crates (8 directly)

MIT license

82KB
1.5K SLoC

Crates.io Documentation Build Status Dependency status

This crate provides convenient wrappers to make Tokio and Tower work together. In particular, it provides:

  • server bindings wrappers that combine a tower::Service with a transport that implements Sink<SinkItem = Request> and Stream<Item = Response>.
  • client wrappers that implement tower::Service for transports that implement Sink<SinkItem = Request> and Stream<Item = Response>.

Take a look at the crate documentation for details.

Dependencies

~4–15MB
~148K SLoC