Skip to content

Commit cb5a9d4

Browse files
committed
Upgrade deps and fix Default impl for ConnectionBuilder
1 parent b63a997 commit cb5a9d4

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "Apache-2.0"
99
name = "skytable"
1010
readme = "README.md"
1111
repository = "https://github.com/skytable/client-rust"
12-
version = "0.7.0"
12+
version = "0.7.2"
1313

1414
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1515

@@ -30,20 +30,20 @@ const-gen = []
3030
dbg = []
3131

3232
[dependencies]
33-
bytes = { version = "1.1.0", optional = true }
34-
openssl = { version = "0.10.38", optional = true }
35-
tokio = { version = "1.17.0", features = [
33+
bytes = { version = "1.2.1", optional = true }
34+
openssl = { version = "0.10.41", optional = true }
35+
tokio = { version = "1.20.1", features = [
3636
"net",
3737
"io-util",
3838
"io-std",
3939
], optional = true, default-features = false }
4040
tokio-openssl = { version = "0.6.3", optional = true }
41-
r2d2 = { version = "0.8.9", optional = true }
41+
r2d2 = { version = "0.8.10", optional = true }
4242
bb8 = { version = "0.8.0", optional = true }
43-
async-trait = { version = "0.1.53", optional = true }
43+
async-trait = { version = "0.1.57", optional = true }
4444

4545
[dev-dependencies]
46-
tokio = { version = "1.17.0", features = [
46+
tokio = { version = "1.20.1", features = [
4747
"test-util",
4848
"macros",
4949
], default-features = false }

src/lib.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,11 @@ pub struct ConnectionBuilder {
304304

305305
impl Default for ConnectionBuilder {
306306
fn default() -> Self {
307-
Self::new()
307+
Self {
308+
port: 2004,
309+
host: "127.0.0.1".to_owned(),
310+
entity: "default:default".to_owned(),
311+
}
308312
}
309313
}
310314

@@ -535,7 +539,7 @@ impl Query {
535539
arg.push_into_query(&mut self);
536540
self
537541
}
538-
pub(in crate) fn _push_arg(&mut self, arg: Vec<u8>) {
542+
pub(crate) fn _push_arg(&mut self, arg: Vec<u8>) {
539543
// A data element will look like:
540544
// `<bytes_in_next_line>\n<data>`
541545
let bytes_in_next_line = arg.len().to_string().into_bytes();
@@ -557,7 +561,7 @@ impl Query {
557561
pub fn push(&mut self, arg: impl IntoSkyhashAction) {
558562
arg.push_into_query(self);
559563
}
560-
pub(in crate) fn _push_alt_iter<T, U>(
564+
pub(crate) fn _push_alt_iter<T, U>(
561565
mut self,
562566
v1: impl GetIterator<T>,
563567
v2: impl GetIterator<U>,

0 commit comments

Comments
 (0)