Utilities needed to easily implement a Tokio JSON transport using serde for JSON serialization and deserialization of frame values.
To use tokio-serde-json
, first add this to your Cargo.toml
:
[dependencies]
tokio-serde-json = { git = "https://github.com/carllerche/tokio-serde-json" }
Next, add this to your crate:
extern crate tokio_serde_json;
use tokio_serde_json::{ReadJson, WriteJson};
tokio-serde-json
is primarily distributed under the terms of both the MIT
license and the Apache License (Version 2.0), with portions covered by various
BSD-like licenses.
See LICENSE-APACHE, and LICENSE-MIT for details.