Skip to content

Commit d3cc411

Browse files
update Cargo.toml for release v3.2.4 (#1805)
* update Cargo.toml for release v3.2.4 * clippy fix
1 parent d13997a commit d3cc411

3 files changed

Lines changed: 39 additions & 12 deletions

File tree

‎Cargo.lock‎

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

‎Cargo.toml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "parseable"
3-
version = "3.2.3"
3+
version = "3.2.4"
44
authors = ["Parseable Team <hi@parseable.com>"]
55
edition = "2024"
66
rust-version = "1.94.0"
@@ -83,7 +83,7 @@ serde_json = "1.0.150"
8383
serde_repr = "0.1.20"
8484

8585
# Async and Runtime
86-
async-trait = "0.1.89"
86+
async-trait = "0.1.92"
8787
futures = "0.3.32"
8888
futures-util = "0.3.32"
8989
tokio = { version = "^1.52.3", default-features = false, features = [
@@ -226,8 +226,8 @@ arrow = "59.2.0"
226226
temp-dir = "0.1.14"
227227

228228
[package.metadata.parseable_ui]
229-
assets-url = "https://parseableprismbuild.blob.core.windows.net/parseable-prism-build/v3.2.3/build.zip"
230-
assets-sha1 = "6a37909468e2ee4f8eac694b9a0213519b6317ad"
229+
assets-url = "https://parseableprismbuild.blob.core.windows.net/parseable-prism-build/v3.2.4/build.zip"
230+
assets-sha1 = "5e3ec81fbb35b2b8aa6486a2bd38257d46b0264b"
231231

232232
[features]
233233
debug = []

‎src/connectors/kafka/mod.rs‎

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ use crate::handlers::TENANT_ID;
2121
use aws_config::default_provider::region::DefaultRegionChain;
2222
use aws_msk_iam_sasl_signer::generate_auth_token;
2323
use aws_types::region::Region;
24-
use derive_more::Constructor;
2524
use rdkafka::client::OAuthToken;
2625
use rdkafka::consumer::{ConsumerContext, Rebalance};
2726
use rdkafka::error::KafkaResult;
@@ -118,13 +117,17 @@ impl RebalanceEvent {
118117
}
119118
}
120119

121-
#[derive(Constructor, Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, Hash)]
120+
#[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, Hash)]
122121
pub struct TopicPartition {
123122
pub topic: String,
124123
pub partition: i32,
125124
}
126125

127126
impl TopicPartition {
127+
pub const fn new(topic: String, partition: i32) -> Self {
128+
Self { topic, partition }
129+
}
130+
128131
pub fn from_kafka_msg(msg: &BorrowedMessage) -> Self {
129132
Self::new(msg.topic().to_owned(), msg.partition())
130133
}
@@ -134,12 +137,16 @@ impl TopicPartition {
134137
}
135138
}
136139

137-
#[derive(Constructor, Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, Hash)]
140+
#[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq, Hash)]
138141
pub struct TopicPartitionList {
139142
pub tpl: Vec<TopicPartition>,
140143
}
141144

142145
impl TopicPartitionList {
146+
pub const fn new(tpl: Vec<TopicPartition>) -> Self {
147+
Self { tpl }
148+
}
149+
143150
pub fn from_rdkafka_tpl(tpl: &rdkafka::topic_partition_list::TopicPartitionList) -> Self {
144151
let elements = tpl.elements();
145152
let mut tp_vec = Vec::with_capacity(elements.len());
@@ -155,7 +162,7 @@ impl TopicPartitionList {
155162
}
156163
}
157164

158-
#[derive(Constructor, Debug, Hash, Eq, PartialEq)]
165+
#[derive(Debug, Hash, Eq, PartialEq)]
159166
pub struct ConsumerRecord {
160167
pub payload: Option<Vec<u8>>,
161168
pub key: Option<Vec<u8>>,
@@ -167,6 +174,26 @@ pub struct ConsumerRecord {
167174
}
168175

169176
impl ConsumerRecord {
177+
pub const fn new(
178+
payload: Option<Vec<u8>>,
179+
key: Option<Vec<u8>>,
180+
topic: String,
181+
partition: i32,
182+
offset: i64,
183+
timestamp: Option<i64>,
184+
tenant_id: Option<String>,
185+
) -> Self {
186+
Self {
187+
payload,
188+
key,
189+
topic,
190+
partition,
191+
offset,
192+
timestamp,
193+
tenant_id,
194+
}
195+
}
196+
170197
pub fn from_borrowed_msg(msg: BorrowedMessage) -> Self {
171198
let tenant_id = if let Some(headers) = extract_headers(&msg)
172199
&& let Some(tenant_id) = headers.get(TENANT_ID)

0 commit comments

Comments
 (0)