refactor: remove protobuf

This commit is contained in:
alyssa 2024-12-23 22:31:20 +00:00
parent f1685495eb
commit 4596d98670
31 changed files with 58 additions and 577 deletions

View file

@ -8,8 +8,6 @@ anyhow = { workspace = true }
fred = { workspace = true }
lazy_static = { workspace = true }
metrics = { workspace = true }
prost = { workspace = true }
prost-types = { workspace = true }
sentry = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
@ -24,6 +22,3 @@ uuid = { workspace = true }
config = "0.14.0"
json-subscriber = { version = "0.2.2", features = ["env-filter"] }
metrics-exporter-prometheus = { version = "0.15.3", default-features = false, features = ["tokio", "http-listener", "tracing"] }
[build-dependencies]
prost-build = { workspace = true }

View file

@ -1,9 +0,0 @@
use std::io::Result;
fn main() -> Result<()> {
prost_build::Config::new()
.type_attribute(".ShardState", "#[derive(serde::Serialize)]")
.field_attribute(".ShardState.shard_id", "#[serde(rename = \"id\")]")
.compile_protos(&["../../proto/state.proto"], &["../../proto/"])?;
Ok(())
}

View file

@ -6,7 +6,7 @@ use sentry::IntoDsn;
use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, EnvFilter};
pub mod db;
pub mod proto;
pub mod state;
pub mod util;
pub mod _config;

View file

@ -1 +0,0 @@
include!(concat!(env!("OUT_DIR"), "/_.rs"));