File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ use std::net::IpAddr;
1717use std:: sync:: Arc ;
1818use std:: time:: { Duration , SystemTime , UNIX_EPOCH } ;
1919
20+ #[ cfg( feature = "with-serde_json-1" ) ]
21+ pub use crate :: serde_json_1:: Json ;
2022use crate :: type_gen:: { Inner , Other } ;
2123
2224#[ doc( inline) ]
@@ -94,9 +96,6 @@ mod uuid_07;
9496mod special;
9597mod type_gen;
9698
97- #[ cfg( feature = "with-serde_json-1" ) ]
98- pub use crate :: types:: serde_json_1:: Json ;
99-
10099/// A Postgres type.
101100#[ derive( PartialEq , Eq , Clone , Debug ) ]
102101pub struct Type ( Inner ) ;
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use postgres_protocol::types;
22use std:: error:: Error ;
33use uuid_07:: Uuid ;
44
5- use crate :: types :: { FromSql , IsNull , ToSql , Type } ;
5+ use crate :: { FromSql , IsNull , ToSql , Type } ;
66
77impl < ' a > FromSql < ' a > for Uuid {
88 fn from_sql ( _: & Type , raw : & [ u8 ] ) -> Result < Uuid , Box < dyn Error + Sync + Send > > {
Original file line number Diff line number Diff line change @@ -49,3 +49,11 @@ lazy_static = { version = "1.0", optional = true }
4949[dev-dependencies ]
5050tokio = " =0.2.0-alpha.6"
5151env_logger = " 0.5"
52+
53+ bit-vec-06 = { version = " 0.6" , package = " bit-vec" }
54+ chrono-04 = { version = " 0.4" , package = " chrono" }
55+ eui48-04 = { version = " 0.4" , package = " eui48" }
56+ geo-types-04 = { version = " 0.4" , package = " geo-types" }
57+ serde-1 = { version = " 1.0" , package = " serde" }
58+ serde_json-1 = { version = " 1.0" , package = " serde_json" }
59+ uuid-07 = { version = " 0.7" , package = " uuid" }
You can’t perform that action at this time.
0 commit comments