refactor: extract the line protocol parser to a separate crate
This will facilitate reusing the parser for other tasks.pull/24376/head
parent
d394e2177f
commit
d4af54c3de
|
@ -373,6 +373,7 @@ dependencies = [
|
|||
"criterion 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"croaring 0.4.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"csv 1.1.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"delorean_line_parser 0.1.0",
|
||||
"delorean_test_helpers 0.1.0",
|
||||
"delorean_wal 0.1.0",
|
||||
"dirs 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -385,7 +386,6 @@ dependencies = [
|
|||
"hyper 0.13.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"integer-encoding 1.1.5 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"nom 5.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"num 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"num_cpus 1.13.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"prost 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -395,7 +395,6 @@ dependencies = [
|
|||
"serde 1.0.110 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde_json 1.0.53 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"serde_urlencoded 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"smallvec 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"snafu 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"tempfile 3.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"tokio 0.2.20 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -403,6 +402,17 @@ dependencies = [
|
|||
"tonic-build 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "delorean_line_parser"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"delorean_test_helpers 0.1.0",
|
||||
"either 1.5.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"nom 5.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"smallvec 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"snafu 0.6.7 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "delorean_test_helpers"
|
||||
version = "0.1.0"
|
||||
|
|
|
@ -7,6 +7,7 @@ default-run = "delorean"
|
|||
|
||||
[workspace]
|
||||
members = [
|
||||
"delorean_line_parser",
|
||||
"delorean_test_helpers",
|
||||
"delorean_utilities",
|
||||
"delorean_wal",
|
||||
|
@ -18,6 +19,7 @@ debug = true
|
|||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
delorean_line_parser = { path = "delorean_line_parser" }
|
||||
delorean_wal = { path = "delorean_wal" }
|
||||
|
||||
bytes = "0.5.4"
|
||||
|
@ -52,10 +54,8 @@ num = "0.2.1"
|
|||
croaring = "0.4.2"
|
||||
http = "0.2.0"
|
||||
serde_urlencoded = "0.6.1"
|
||||
nom = "5.1.1"
|
||||
snafu = "0.6.2"
|
||||
either = "1.5.3"
|
||||
smallvec = "1.2.0"
|
||||
flatbuffers = "0.6.1"
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
[package]
|
||||
name = "delorean_line_parser"
|
||||
version = "0.1.0"
|
||||
authors = ["Paul Dix <paul@pauldix.net>"]
|
||||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
either = "1.5.3"
|
||||
nom = "5.1.1"
|
||||
smallvec = "1.2.0"
|
||||
snafu = "0.6.2"
|
||||
|
||||
[dev-dependencies]
|
||||
delorean_test_helpers = { path = "../delorean_test_helpers" }
|
File diff suppressed because it is too large
Load Diff
1181
src/line_parser.rs
1181
src/line_parser.rs
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue