Bump regular dependencies (#2618)

* etcd-client is not updated, since we plan to replace it with another client and the new version errors with some missing prost library error
* clap had released another major update that requires changing every CLI declaration again, deserves a separate PR
This commit is contained in:
Kirill Bulatov
2022-10-15 01:55:31 +03:00
committed by GitHub
parent 9c24de254f
commit f03b7c3458
11 changed files with 436 additions and 377 deletions

View File

@@ -5,7 +5,7 @@ edition = "2021"
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde_with = "1.12.0"
serde_with = "2.0"
const_format = "0.2.21"
utils = { path = "../utils" }

View File

@@ -1,20 +1,23 @@
use serde::{Deserialize, Serialize};
use serde_with::{serde_as, DisplayFromStr};
use utils::{
id::{NodeId, TenantId, TimelineId},
lsn::Lsn,
};
#[serde_as]
#[derive(Serialize, Deserialize)]
pub struct TimelineCreateRequest {
#[serde(with = "serde_with::rust::display_fromstr")]
#[serde_as(as = "DisplayFromStr")]
pub tenant_id: TenantId,
#[serde(with = "serde_with::rust::display_fromstr")]
#[serde_as(as = "DisplayFromStr")]
pub timeline_id: TimelineId,
pub peer_ids: Option<Vec<NodeId>>,
pub pg_version: u32,
pub system_id: Option<u64>,
pub wal_seg_size: Option<u32>,
#[serde(with = "serde_with::rust::display_fromstr")]
#[serde_as(as = "DisplayFromStr")]
pub commit_lsn: Lsn,
// If not passed, it is assigned to the beginning of commit_lsn segment.
pub local_start_lsn: Option<Lsn>,