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 }
29
29
# Bitvec support
30
30
bit-vec = { version = " ~0.6" , optional = true }
31
31
# 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 }
33
35
34
36
rorm-declaration = { version = " 0.3.0" , path = " ../rorm-declaration" }
35
37
@@ -46,5 +48,6 @@ sqlite = [
46
48
mysql = []
47
49
postgres = [
48
50
" dep:bit-vec" ,
49
- " dep:ip_network" ,
51
+ " dep:ipnetwork" ,
52
+ " dep:mac_address" ,
50
53
]
Original file line number Diff line number Diff line change @@ -121,10 +121,10 @@ pub enum Value<'a> {
121
121
JsonValue ( & ' a serde_json:: Value ) ,
122
122
/// Mac address representation
123
123
#[ cfg( all( feature = "postgres" , not( any( feature = "mysql" , feature = "sqlite" ) ) ) ) ]
124
- MacAddress ( [ u8 ; 6 ] ) ,
124
+ MacAddress ( mac_address :: MacAddress ) ,
125
125
/// IP network presentation
126
126
#[ cfg( all( feature = "postgres" , not( any( feature = "mysql" , feature = "sqlite" ) ) ) ) ]
127
- IpNetwork ( ip_network :: IpNetwork ) ,
127
+ IpNetwork ( ipnetwork :: IpNetwork ) ,
128
128
/// Bit vec representation
129
129
#[ cfg( all( feature = "postgres" , not( any( feature = "mysql" , feature = "sqlite" ) ) ) ) ]
130
130
BitVec ( & ' a bit_vec:: BitVec ) ,
You can’t perform that action at this time.
0 commit comments