Skip to content

Commit db8d910

Browse files
gautamg795Convex, Inc.
authored and
Convex, Inc.
committed
Refactor out new generic ConfigLoader with separate proto-decoding implementation (#26870)
New `ConfigLoader` for dynamically getting config files from disk and parsing them as desired. GitOrigin-RevId: 86c2ec55bd3400d2d60ab3bc824a9f0e0594f6f1
1 parent bcc2295 commit db8d910

File tree

6 files changed

+477
-7
lines changed

6 files changed

+477
-7
lines changed

Cargo.lock

Lines changed: 171 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jsonschema = "0.18"
6565
levenshtein_automata = "0.2.1"
6666
lru = "0.12.0"
6767
maplit = "1"
68+
miette = "7.0"
6869
mime = "0.3"
6970
mime2ext = "0.1.52"
7071
minitrace = { version = "0.6", features = [ "enable" ] }
@@ -87,6 +88,7 @@ proptest-derive = "0.4.0"
8788
proptest-http = { git = "https://github.com/sujayakar/proptest-http", rev = "12ef4c4ac2002b050ab0944a9587d83d7ea9fce2" }
8889
prost = "0.12"
8990
prost-types = "0.12"
91+
prost-reflect = { version = "0.13.1", features = [ "text-format", "miette" ] }
9092
pyo3 = "0.20.3"
9193
pyo3-asyncio = { version = "0.20.0", features = [ "tokio-runtime" ] }
9294
pyo3-build-config = { version = "0.20.3", features = [ "resolve-config" ] }
@@ -124,7 +126,7 @@ thousands = "0.2.0"
124126
tokio = { version = "1", features = [ "full" ] }
125127
tokio-metrics-collector = { version = "0.2.0" }
126128
tokio-process-stream = { version = "0.4.0" }
127-
tokio-stream = { version = "^0.1.8", features = [ "io-util", "sync" ] }
129+
tokio-stream = { version = "0.1", features = [ "io-util", "sync", "signal" ] }
128130
tokio-tungstenite = "0.20.0"
129131
tonic = { version = "0.10.2", features = [ "gzip" ] }
130132
tonic-build = "0.10.0"

crates/config_loader/Cargo.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[package]
2+
name = "config_loader"
3+
version = "0.1.0"
4+
authors = ["Convex, Inc. <[email protected]>"]
5+
edition = "2021"
6+
license = "LicenseRef-FSL-1.1-Apache-2.0"
7+
8+
[dependencies]
9+
anyhow = { workspace = true }
10+
common = { path = "../../crates/common" }
11+
futures = { workspace = true }
12+
miette = { workspace = true, features = ["fancy"] }
13+
prost-reflect = { workspace = true }
14+
tokio = { workspace = true }
15+
tokio-stream = { workspace = true }
16+
tracing = { workspace = true }
17+
18+
[dev-dependencies]
19+
common = { path = "../../crates/common", features = ["testing"] }
20+
convex_macro = { path = "../../crates/convex_macro" }
21+
pb = { path = "../../crates/pb" }
22+
runtime = { path = "../../crates/runtime", features = ["testing"] }
23+
tempfile = { workspace = true }

0 commit comments

Comments
 (0)