diff --git a/Cargo.lock b/Cargo.lock index 98b2dcd..e988a1e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,14 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +[[package]] +name = "aho-corasick" +version = "0.7.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8716408b8bc624ed7f65d223ddb9ac2d044c0547b6fa4b0d554f3a9540496ada" +dependencies = [ + "memchr", +] + [[package]] name = "arc-swap" version = "0.4.6" @@ -757,6 +766,24 @@ version = "0.1.56" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2439c63f3f6139d1b57529d16bc3b8bb855230c8efcc5d3a896c8bea7c3b1e84" +[[package]] +name = "regex" +version = "1.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6020f034922e3194c711b82a627453881bc4682166cabb07134a10c26ba7692" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", + "thread_local", +] + +[[package]] +name = "regex-syntax" +version = "0.6.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fe5bd57d1d7414c6b5ed48563a2c855d995ff777729dcd91c369ec7fea395ae" + [[package]] name = "rustc-serialize" version = "0.3.24" @@ -885,6 +912,15 @@ dependencies = [ "unicode-xid", ] +[[package]] +name = "thread_local" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" +dependencies = [ + "lazy_static", +] + [[package]] name = "tokio" version = "0.2.20" @@ -966,6 +1002,7 @@ dependencies = [ "libc", "pcap", "rayon", + "regex", "serde", "serde_json", "tokio", diff --git a/Cargo.toml b/Cargo.toml index cd8af9b..62808d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,8 +14,7 @@ libc = "0.2.68" byteorder = "*" bitfield = "*" eui48 = "~0.4.6" -#time = {version = "~0.2", default-features = false } -#serde_json = "1.0" serde_json = { version = "1.0", features = ["raw_value"] } serde = { version = "1.0.3", features = ["derive"] } rayon = "1.3" +regex = "1.3.7"