Skip to content

Commit 049787a

Browse files
authored
Merge pull request #564 from http-rs/convert
Convert
2 parents 4276d67 + 99a15ae commit 049787a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

src/convert.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//! Traits for conversions between types.
2+
3+
#[doc(inline)]
4+
pub use http_types::convert::*;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ pub mod router;
207207
mod server;
208208
mod utils;
209209

210+
pub mod convert;
210211
pub mod log;
211212
pub mod prelude;
212213
pub mod security;
@@ -218,7 +219,6 @@ pub use redirect::Redirect;
218219
pub use request::Request;
219220
pub use response::Response;
220221
pub use route::Route;
221-
pub use serde_json;
222222
pub use server::Server;
223223

224224
#[doc(inline)]

src/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
//! The Tide prelude.
2+
pub use crate::convert::{json, Deserialize, Serialize};
23
pub use http_types::Status;
3-
pub use serde_json::json;

0 commit comments

Comments
 (0)