Skip to content

Commit b8eb6a1

Browse files
committed
used correct crates for macaddr and ipnetwork
1 parent 3d858ca commit b8eb6a1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ libsqlite3-sys = { version = "~0.26", optional = true }
2929
# Bitvec support
3030
bit-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

3436
rorm-declaration = { version = "0.3.0", path = "../rorm-declaration" }
3537

@@ -46,5 +48,6 @@ sqlite = [
4648
mysql = []
4749
postgres = [
4850
"dep:bit-vec",
49-
"dep:ip_network",
51+
"dep:ipnetwork",
52+
"dep:mac_address",
5053
]

src/value.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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),

0 commit comments

Comments
 (0)