feat: update deps
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
parent
8a6e5c7ac0
commit
8beaeb53d7
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -596,7 +596,7 @@ dependencies = [
|
||||
"anyhow",
|
||||
"async-trait",
|
||||
"futures",
|
||||
"prost 0.12.1",
|
||||
"prost",
|
||||
"thiserror",
|
||||
"tokio",
|
||||
"uuid",
|
||||
|
@ -10,7 +10,7 @@ name = "envelope_benchmark"
|
||||
harness = false
|
||||
|
||||
[features]
|
||||
default = ["proto", "capnp"]
|
||||
default = ["proto"]
|
||||
json = ["dep:serde", "dep:serde_json", "dep:base64"]
|
||||
proto = ["dep:prost", "dep:prost-types", "dep:bytes"]
|
||||
capnp = ["dep:capnp"]
|
||||
|
@ -1,18 +1,20 @@
|
||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct Envelope {
|
||||
#[prost(message, optional, tag="1")]
|
||||
pub metadata: ::std::option::Option<Metadata>,
|
||||
#[prost(bytes, tag="2")]
|
||||
pub content: std::vec::Vec<u8>,
|
||||
#[prost(message, optional, tag = "1")]
|
||||
pub metadata: ::core::option::Option<Metadata>,
|
||||
#[prost(bytes = "vec", tag = "2")]
|
||||
pub content: ::prost::alloc::vec::Vec<u8>,
|
||||
}
|
||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct Metadata {
|
||||
#[prost(string, tag="1")]
|
||||
pub domain: std::string::String,
|
||||
#[prost(string, tag="2")]
|
||||
pub entity: std::string::String,
|
||||
#[prost(uint64, tag="3")]
|
||||
#[prost(string, tag = "1")]
|
||||
pub domain: ::prost::alloc::string::String,
|
||||
#[prost(string, tag = "2")]
|
||||
pub entity: ::prost::alloc::string::String,
|
||||
#[prost(uint64, tag = "3")]
|
||||
pub timestamp: u64,
|
||||
#[prost(uint64, tag="4")]
|
||||
#[prost(uint64, tag = "4")]
|
||||
pub sequence: u64,
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ async fn main() -> anyhow::Result<()> {
|
||||
tracing_subscriber::fmt::init();
|
||||
|
||||
// Remember to start nats via. docker first, or set equivalent settings as in `NatsConnectOptions`
|
||||
let crunch = crunch::builder::Builder::default()
|
||||
let crunch = crunch::Builder::default()
|
||||
.with_nats_transport(NatsConnectOptions {
|
||||
host: "127.0.0.1:4222",
|
||||
credentials: NatsConnectCredentials::UserPass {
|
||||
|
@ -6,7 +6,7 @@ edition = "2021"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
crunch = { workspace = true,default-features = false, features = ["in-memory"] }
|
||||
crunch = { workspace = true, features = ["in-memory"] }
|
||||
|
||||
tracing.workspace = true
|
||||
tokio.workspace = true
|
||||
|
@ -1,5 +1,6 @@
|
||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct MyInclude {
|
||||
#[prost(string, tag="1")]
|
||||
pub name: std::string::String,
|
||||
#[prost(string, tag = "1")]
|
||||
pub name: ::prost::alloc::string::String,
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
#[allow(clippy::derive_partial_eq_without_eq)]
|
||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||
pub struct MyEvent {
|
||||
#[prost(string, tag="1")]
|
||||
pub name: std::string::String,
|
||||
#[prost(message, optional, tag="2")]
|
||||
pub include: ::std::option::Option<super::includes::my_include::MyInclude>,
|
||||
#[prost(string, tag = "1")]
|
||||
pub name: ::prost::alloc::string::String,
|
||||
#[prost(message, optional, tag = "2")]
|
||||
pub include: ::core::option::Option<super::includes::my_include::MyInclude>,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user