mirror of
https://github.com/OMGeeky/tarpc.git
synced 2025-12-26 17:02:32 +01:00
Reexport/tokio serde (#332)
Re-export tokio_serde when the serde-transport feature is enabled.
This commit is contained in:
@@ -19,8 +19,6 @@ futures = "0.3"
|
||||
serde = { version = "1.0" }
|
||||
tarpc = { version = "0.23", path = "../tarpc", features = ["full"] }
|
||||
tokio = { version = "0.3", features = ["full"] }
|
||||
tokio-serde = { version = "0.7.1", features = ["json"] }
|
||||
tokio-util = { version = "0.5", features = ["codec"] }
|
||||
|
||||
[lib]
|
||||
name = "service"
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
use clap::{App, Arg};
|
||||
use std::{io, net::SocketAddr};
|
||||
use tarpc::{client, context};
|
||||
use tokio_serde::formats::Json;
|
||||
use tarpc::{client, context, tokio_serde::formats::Json};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> io::Result<()> {
|
||||
|
||||
@@ -14,8 +14,8 @@ use std::{
|
||||
use tarpc::{
|
||||
context,
|
||||
server::{self, Channel, Handler},
|
||||
tokio_serde::formats::Json,
|
||||
};
|
||||
use tokio_serde::formats::Json;
|
||||
|
||||
// This is the type that implements the generated World trait. It is the business logic
|
||||
// and is used to start the server.
|
||||
|
||||
Reference in New Issue
Block a user