Skip to content

Commit 81f9280

Browse files
authored
Merge pull request #405 from tansu-io/400-storage-service-doc-tests
v0.5.0
2 parents 77f1fef + ecb67ce commit 81f9280

5 files changed

Lines changed: 50 additions & 52 deletions

File tree

Cargo.lock

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

Cargo.toml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ members = [
1919

2020
[workspace.package]
2121
edition = "2024"
22-
version = "0.4.10"
22+
version = "0.5.0"
2323
license = "Apache-2.0"
2424
homepage = "https://tansu.io"
2525
repository = "https://github.com/tansu-io/tansu"
@@ -121,20 +121,20 @@ serde = { version = "1.0", features = ["derive"] }
121121
serde_json = "1"
122122
snap = "1.1.1"
123123
syn = { version = "2.0", features = ["full"] }
124-
tansu = { version = "0.4.10", path = "tansu" }
125-
tansu-broker = { version = "0.4.10", path = "tansu-broker" }
126-
tansu-cat = { version = "0.4.10", path = "tansu-cat" }
127-
tansu-cli = { version = "0.4.10", path = "tansu-cli" }
128-
tansu-client = { version = "0.4.10", path = "tansu-client" }
129-
tansu-generator = { version = "0.4.10", path = "tansu-generator" }
130-
tansu-model = { version = "0.4.10", path = "tansu-model" }
131-
tansu-otel = { version = "0.4.10", path = "tansu-otel" }
132-
tansu-proxy = { version = "0.4.10", path = "tansu-proxy" }
133-
tansu-sans-io = { version = "0.4.10", path = "tansu-sans-io" }
134-
tansu-schema = { version = "0.4.10", path = "tansu-schema" }
135-
tansu-service = { version = "0.4.10", path = "tansu-service" }
136-
tansu-storage = { version = "0.4.10", path = "tansu-storage" }
137-
tansu-topic = { version = "0.4.10", path = "tansu-topic" }
124+
tansu = { version = "0.5.0", path = "tansu" }
125+
tansu-broker = { version = "0.5.0", path = "tansu-broker" }
126+
tansu-cat = { version = "0.5.0", path = "tansu-cat" }
127+
tansu-cli = { version = "0.5.0", path = "tansu-cli" }
128+
tansu-client = { version = "0.5.0", path = "tansu-client" }
129+
tansu-generator = { version = "0.5.0", path = "tansu-generator" }
130+
tansu-model = { version = "0.5.0", path = "tansu-model" }
131+
tansu-otel = { version = "0.5.0", path = "tansu-otel" }
132+
tansu-proxy = { version = "0.5.0", path = "tansu-proxy" }
133+
tansu-sans-io = { version = "0.5.0", path = "tansu-sans-io" }
134+
tansu-schema = { version = "0.5.0", path = "tansu-schema" }
135+
tansu-service = { version = "0.5.0", path = "tansu-service" }
136+
tansu-storage = { version = "0.5.0", path = "tansu-storage" }
137+
tansu-topic = { version = "0.5.0", path = "tansu-topic" }
138138
tempfile = "3"
139139
thiserror = "2.0"
140140
time = { version = "0.3.37", features = ["formatting", "macros"] }
@@ -144,12 +144,11 @@ tokio-postgres = { version = "0.7.13", features = [
144144
"with-serde_json-1",
145145
"with-uuid-1",
146146
] }
147-
tower = "0.5.2"
148147
tracing = "0.1"
149148
tracing-core = { version = "0.1" }
150149
tracing-opentelemetry = "0.29.0"
151150
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
152-
turso = { git = "https://github.com/tursodatabase/turso.git", tag = "v0.1.4-pre.8" }
151+
turso = "0.1.4"
153152
url = { version = "2.5.4", features = ["serde"] }
154153
uuid = { version = "1.13.2", features = ["serde", "v4", "v7"] }
155154
zstd = "0.13.2"

tansu-sans-io/src/de.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ impl<'de> Decoder<'de> {
187187
}
188188

189189
#[must_use]
190-
pub fn field_name(&self) -> String {
190+
fn field_name(&self) -> String {
191191
self.path.iter().fold(String::new(), |acc, step| {
192192
if acc.is_empty() {
193193
(*step).to_string()
@@ -337,10 +337,6 @@ impl<'de> Decoder<'de> {
337337

338338
Ok(accumulator)
339339
}
340-
341-
pub fn position(&self) -> u64 {
342-
self.reader.position
343-
}
344340
}
345341

346342
impl fmt::Debug for Decoder<'_> {

tansu-storage/src/lib.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,9 +1054,7 @@ pub struct PartitionDetail {
10541054
partition_index: i32,
10551055
}
10561056

1057-
/// Version
1058-
///
1059-
/// Representing an `e_tag` and `version` used in conditional writes to an object store.
1057+
/// Version representing an `e_tag` and `version` used in conditional writes to an object store.
10601058
#[derive(Clone, Debug, Default, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
10611059
pub struct Version {
10621060
e_tag: Option<String>,
@@ -1081,9 +1079,8 @@ impl Default for ProducerIdResponse {
10811079
}
10821080
}
10831081

1084-
/// Transaction Add Partitions Request
1085-
///
1086-
/// For protocol versions 0..=3 using `AddPartitionsToTxnTopic`, thereafter using `AddPartitionsToTxnTransaction`.
1082+
/// For protocol versions 0..=3 using [`AddPartitionsToTxnTopic`],
1083+
/// thereafter using [`AddPartitionsToTxnTransaction`].
10871084
#[derive(Clone, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize)]
10881085
pub enum TxnAddPartitionsRequest {
10891086
VersionZeroToThree {

tansu-storage/src/service/delete_records.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use tracing::instrument;
1818

1919
use crate::{Error, Result, Storage};
2020

21+
/// A [`Service`] using [`Storage`] as [`Context`] taking [`DeleteRecordsRequest`] returning [`DeleteRecordsResponse`].
2122
#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
2223
pub struct DeleteRecordsService;
2324

0 commit comments

Comments
 (0)