mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-09 23:37:54 +00:00
refactor: remove protobuf
This commit is contained in:
parent
f1685495eb
commit
4596d98670
31 changed files with 58 additions and 577 deletions
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -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(())
|
||||
}
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -1 +0,0 @@
|
|||
include!(concat!(env!("OUT_DIR"), "/_.rs"));
|
||||
Loading…
Add table
Add a link
Reference in a new issue