Skip to content

Commit

Permalink
support numbers in labels (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
diptanu authored Jun 7, 2024
1 parent da63f07 commit 18f5150
Show file tree
Hide file tree
Showing 29 changed files with 1,163 additions and 327 deletions.
141 changes: 120 additions & 21 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ opensearch = { version = "2", default_features = false, features = [
] }
opentelemetry = { version = "0.22", features = ["metrics"] }
pgvector = { version = "0.3", features = ["sqlx"] }
prost = { version = "0.12" }
prost = { version = "0.12.6" }
prost-types = { version = "0.12" }
prost-wkt = "0.5.1"
prost-wkt-types = {version = "0.5.1" }
qdrant-client = { version = "1.9.0" }
rand = { version = "0.8" }
redis = { version = "0.24", features = [
Expand Down Expand Up @@ -162,6 +164,9 @@ openraft = { workspace = true }
opensearch = { workspace = true }
opentelemetry = { workspace = true }
pgvector = { workspace = true }
prost = { workspace = true }
prost-wkt = { workspace = true }
prost-wkt-types = { workspace = true }
qdrant-client = { workspace = true }
rand = { workspace = true }
redis = { workspace = true }
Expand Down Expand Up @@ -234,6 +239,7 @@ vergen = { version = "8", features = [
"si",
] }
tonic-build = { version = "0.10.2", features = ["prost"] }
prost-wkt-build = "0.5"

[package.metadata.deb]
maintainer = "Diptanu Gon Choudhury <[email protected]>"
Expand Down
7 changes: 6 additions & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ use std::error::Error;
use vergen::EmitBuilder;

fn main() -> Result<(), Box<dyn Error>> {
let out_dir = std::path::Path::new("crates/indexify_proto/src/");

EmitBuilder::builder()
.all_build()
.all_cargo()
Expand All @@ -12,7 +14,7 @@ fn main() -> Result<(), Box<dyn Error>> {
.emit()?;

tonic_build::configure()
.out_dir("crates/indexify_proto/src/")
.out_dir(out_dir)
.type_attribute(
"CreateContentRequest",
"#[derive(serde::Deserialize, serde::Serialize)]",
Expand All @@ -21,6 +23,9 @@ fn main() -> Result<(), Box<dyn Error>> {
"ContentMetadata",
"#[derive(serde::Deserialize, serde::Serialize)]",
)
.extern_path(".google.protobuf.Any", "::prost_wkt_types::Any")
.extern_path(".google.protobuf.Timestamp", "::prost_wkt_types::Timestamp")
.extern_path(".google.protobuf.Value", "::prost_wkt_types::Value")
.compile(
&["protos/coordinator_service.proto", "protos/raft.proto"],
&["protos"],
Expand Down
3 changes: 2 additions & 1 deletion crates/indexify_internal_api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,5 @@ serde_with = { workspace = true }
serde_json = { workspace = true }
smart-default = { workspace = true }
strum = { workspace = true }
utoipa = { workspace = true }
utoipa = { workspace = true }
prost-wkt-types = { workspace = true }
Loading

0 comments on commit 18f5150

Please sign in to comment.