File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ libsqlite3-sys = { version = "~0.26", optional = true }
2929# Bitvec support
3030bit-vec = { version = " ~0.6" , optional = true }
3131# Ip network
32- ip_network = { version = " ~0.4" , optional = true }
32+ ipnetwork = { version = " ~0.20" , optional = true }
33+ # Mac Address support
34+ mac_address = { version = " ~1" , optional = true }
3335
3436rorm-declaration = { version = " 0.3.0" , path = " ../rorm-declaration" }
3537
@@ -46,5 +48,6 @@ sqlite = [
4648mysql = []
4749postgres = [
4850 " dep:bit-vec" ,
49- " dep:ip_network" ,
51+ " dep:ipnetwork" ,
52+ " dep:mac_address" ,
5053]
Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ pub enum Value<'a> {
121121 JsonValue ( & ' a serde_json:: Value ) ,
122122 /// Mac address representation
123123 #[ cfg( all( feature = "postgres" , not( any( feature = "mysql" , feature = "sqlite" ) ) ) ) ]
124- MacAddress ( [ u8 ; 6 ] ) ,
124+ MacAddress ( mac_address :: MacAddress ) ,
125125 /// IP network presentation
126126 #[ cfg( all( feature = "postgres" , not( any( feature = "mysql" , feature = "sqlite" ) ) ) ) ]
127- IpNetwork ( ip_network :: IpNetwork ) ,
127+ IpNetwork ( ipnetwork :: IpNetwork ) ,
128128 /// Bit vec representation
129129 #[ cfg( all( feature = "postgres" , not( any( feature = "mysql" , feature = "sqlite" ) ) ) ) ]
130130 BitVec ( & ' a bit_vec:: BitVec ) ,
You can’t perform that action at this time.
0 commit comments