Skip to content

Commit 70492d6

Browse files
authored
VER: Release 0.32.0
2 parents 189e4d8 + d956db0 commit 70492d6

File tree

5 files changed

+22
-15
lines changed

5 files changed

+22
-15
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## 0.32.0 - 2025-08-12
4+
5+
### Enhancements
6+
- Upgraded DBN version to 0.39.1:
7+
- Added `PUBLISHER_SPECIFIC` flag
8+
- Improved JSON encoding performance
9+
- Added a `Default` implementation for `SecurityUpdateAction`
10+
11+
### Breaking changes
12+
- Removed unused `Received` variant from `JobState` enum
13+
314
## 0.31.0 - 2025-07-30
415

516
### Enhancements

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "databento"
33
authors = ["Databento <support@databento.com>"]
4-
version = "0.31.0"
4+
version = "0.32.0"
55
edition = "2021"
66
repository = "https://github.com/databento/databento-rs"
77
description = "Official Databento client library"
@@ -31,7 +31,7 @@ historical = [
3131
live = ["dep:hex", "dep:sha2", "tokio/net"]
3232

3333
[dependencies]
34-
dbn = { version = "0.39.0", features = ["async", "serde"] }
34+
dbn = { version = "0.39.1", features = ["async", "serde"] }
3535

3636
async-compression = { version = "0.4", features = ["tokio", "zstd"], optional = true }
3737
# Async stream trait
@@ -52,11 +52,11 @@ tracing = "0.1"
5252
typed-builder = "0.21"
5353

5454
[dev-dependencies]
55-
anyhow = "1.0.98"
55+
anyhow = "1.0.99"
5656
async-compression = { version = "0.4", features = ["tokio", "zstd"] }
57-
clap = { version = "4.5.40", features = ["derive"] }
57+
clap = { version = "4.5.44", features = ["derive"] }
5858
rstest = "0.26.1"
5959
tempfile = "3.20.0"
60-
tokio = { version = "1.45", features = ["full"] }
60+
tokio = { version = "1.47", features = ["full"] }
6161
tracing-subscriber = "0.3.19"
6262
wiremock = "0.6"

src/historical/batch.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,6 @@ pub enum Delivery {
218218
/// The state of a batch job.
219219
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
220220
pub enum JobState {
221-
/// The job has been received (the initial state).
222-
Received,
223221
/// The job has been queued for processing.
224222
Queued,
225223
/// The job has begun processing.
@@ -374,7 +372,7 @@ pub struct BatchJob {
374372
/// get a builder type with all the preset defaults.
375373
#[derive(Debug, Clone, Default, TypedBuilder, PartialEq, Eq)]
376374
pub struct ListJobsParams {
377-
/// The optional filter for job states.
375+
/// The optional filter for job states. If `None`, defaults to all except `Expired`.
378376
#[builder(default, setter(strip_option))]
379377
pub states: Option<Vec<JobState>>,
380378
/// The optional filter for timestamp submitted (will not include jobs prior to
@@ -497,7 +495,6 @@ impl JobState {
497495
/// Converts the enum to its `str` representation.
498496
pub const fn as_str(&self) -> &'static str {
499497
match self {
500-
JobState::Received => "received",
501498
JobState::Queued => "queued",
502499
JobState::Processing => "processing",
503500
JobState::Done => "done",
@@ -517,7 +514,6 @@ impl FromStr for JobState {
517514

518515
fn from_str(s: &str) -> Result<Self, Self::Err> {
519516
match s {
520-
"received" => Ok(JobState::Received),
521517
"queued" => Ok(JobState::Queued),
522518
"processing" => Ok(JobState::Processing),
523519
"done" => Ok(JobState::Done),

src/historical/client.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,22 +90,22 @@ impl Client {
9090
}
9191

9292
/// Returns the batch subclient.
93-
pub fn batch(&mut self) -> BatchClient {
93+
pub fn batch(&mut self) -> BatchClient<'_> {
9494
BatchClient { inner: self }
9595
}
9696

9797
/// Returns the metadata subclient.
98-
pub fn metadata(&mut self) -> MetadataClient {
98+
pub fn metadata(&mut self) -> MetadataClient<'_> {
9999
MetadataClient { inner: self }
100100
}
101101

102102
/// Returns the symbology subclient.
103-
pub fn symbology(&mut self) -> SymbologyClient {
103+
pub fn symbology(&mut self) -> SymbologyClient<'_> {
104104
SymbologyClient { inner: self }
105105
}
106106

107107
/// Returns the timeseries subclient.
108-
pub fn timeseries(&mut self) -> TimeseriesClient {
108+
pub fn timeseries(&mut self) -> TimeseriesClient<'_> {
109109
TimeseriesClient { inner: self }
110110
}
111111

src/live/client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ impl Client {
279279
/// This method is cancel safe. It can be used within a [`tokio::select!`] statement
280280
/// without the potential for corrupting the input stream.
281281
#[instrument(parent = &self.span, level = "debug", skip_all)]
282-
pub async fn next_record(&mut self) -> crate::Result<Option<RecordRef>> {
282+
pub async fn next_record(&mut self) -> crate::Result<Option<RecordRef<'_>>> {
283283
if !self.fsm.has_decoded_metadata() {
284284
return Err(crate::Error::BadArgument {
285285
param_name: "self".to_owned(),

0 commit comments

Comments
 (0)