Skip to content

Commit 9d62761

Browse files
committed
upgrade deps
1 parent 9f0f182 commit 9d62761

9 files changed

Lines changed: 317 additions & 227 deletions

File tree

Cargo.lock

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

teller-cli/Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,28 @@ serde = { workspace = true }
1717
serde_json = { workspace = true }
1818
serde_yaml = { workspace = true }
1919
serde_derive = { workspace = true }
20-
fs-err = "2.9.0"
20+
fs-err = "3.2.2"
2121
eyre = "0.6.8"
2222
thiserror = { workspace = true }
2323
tokio = { workspace = true }
2424
# async-trait = "*"
2525
tracing = "^0.1.34"
26-
tracing-tree = { version = "0.2.1" }
26+
tracing-tree = { version = "0.4.1" }
2727
tracing-subscriber = { version = "^0.3.11", features = ["env-filter"] }
2828
strum = { workspace = true }
2929
proc-macro2 = "1.0.63" # Remove once https://github.com/rust-lang/rust/issues/113152 is fixed.
3030
clap = { version = "4.3.0", features = ["cargo", "derive"] }
3131
exitcode = { version = "^1.1.2" }
32-
console = { version = "0.15.8" }
32+
console = { version = "0.16.2" }
3333
comfy-table = { version = "7.1.1" }
34-
dialoguer = { version = "0.11.0" }
34+
dialoguer = { version = "0.12.0" }
3535
teller-providers = { workspace = true }
3636
teller-core = { workspace = true }
3737

3838
[dev-dependencies]
3939
insta = { workspace = true }
4040
dockertest-server = { version = "0.1.7", features = ["hashi", "cloud"] }
41-
trycmd = "0.14.10"
41+
trycmd = "0.15.11"
4242

4343
[[bin]]
4444
name = "teller"

teller-core/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ serde_variant = { workspace = true }
1919
lazy_static = { workspace = true }
2020
strum = { workspace = true }
2121
shell-words = "1"
22-
duct = "0.13.6"
22+
duct = "1.1.1"
2323
thiserror = { workspace = true }
24-
fs-err = "2.9.0"
24+
fs-err = "3.2.2"
2525
ignore = "0.4.22"
26-
unicode-width = "0.1.12"
26+
unicode-width = "0.2.2"
2727
aho-corasick = { workspace = true }
2828
tera = { workspace = true }
2929
csv = "1.2.1"

teller-core/src/scan.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ mod tests {
119119
assert_eq!(get_visual_position(b"", 0), None);
120120
assert_eq!(get_visual_position(b"a", 1), None);
121121

122-
assert_eq!(get_visual_position(b"abcde\nfghi", 8), Some((2, 3)));
123-
assert_eq!(get_visual_position(b"abcde\r\nfghi", 8), Some((2, 2)));
122+
assert_eq!(get_visual_position(b"abcde\nfghi", 8), Some((2, 4)));
123+
assert_eq!(get_visual_position(b"abcde\r\nfghi", 8), Some((2, 3)));
124124

125125
let text = r#" 100% ❯ j teller-rs
126126
/Users/jondot/spikes/teller-rs
@@ -137,7 +137,7 @@ mod tests {
137137
~/spikes/teller-rs on  master [!?] via 🦀 v1.73.0-nightly
138138
 100% ❯"#;
139139
let position = get_visual_position(text.as_bytes(), 438);
140-
assert_eq!(position, Some((11, 19)));
140+
assert_eq!(position, Some((11, 20)));
141141
}
142142

143143
#[test]

teller-core/src/snapshots/teller_core__scan__tests__scan-2.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
source: teller-core/src/scan.rs
3-
expression: normalize_matches(res.unwrap())
3+
expression: normalize_matches(&res.unwrap())
44
---
55
[
66
Match {
77
path: "fixtures/config.yml",
88
position: Some(
99
(
1010
3,
11-
11,
11+
12,
1212
),
1313
),
1414
offset: 32,

teller-core/src/snapshots/teller_core__scan__tests__scan-3.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
source: teller-core/src/scan.rs
3-
expression: normalize_matches(res.unwrap())
3+
expression: normalize_matches(&res.unwrap())
44
---
55
[
66
Match {
@@ -36,7 +36,7 @@ expression: normalize_matches(res.unwrap())
3636
position: Some(
3737
(
3838
3,
39-
11,
39+
12,
4040
),
4141
),
4242
offset: 32,

teller-core/src/snapshots/teller_core__scan__tests__scan.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
source: teller-core/src/scan.rs
3-
expression: normalize_matches(res.unwrap())
3+
expression: normalize_matches(&res.unwrap())
44
---
55
[
66
Match {
77
path: "fixtures/config.yml",
88
position: Some(
99
(
1010
3,
11-
11,
11+
12,
1212
),
1313
),
1414
offset: 32,

teller-providers/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ serde_yaml = { workspace = true }
4242
serde_derive = { workspace = true }
4343
strum = { workspace = true }
4444
thiserror = { workspace = true }
45+
hyper-util = { version = "0.1", features = ["client-legacy"] }
4546
fs-err = "3"
4647
home = "0.5"
47-
hyper = "0.14"
48+
hyper = "1.8.1"
4849
tokio = "1"
4950
# gcp
5051
google-secretmanager1 = { version = "5.0", optional = true }
@@ -61,13 +62,13 @@ dotenvy = { version = "0.15.7", optional = true }
6162
vaultrs = { version = "0.7.4", optional = true }
6263
rustify = { version = "0.6.1", optional = true }
6364
# HashiCorp Consul
64-
rs-consul = { version = "0.6", optional = true }
65+
rs-consul = { version = "0.13.0", optional = true }
6566

66-
etcd-client = { version = "0.15", optional = true }
67+
etcd-client = { version = "0.18.0", optional = true }
6768

6869
[dev-dependencies]
6970
insta = { workspace = true }
7071
dockertest-server = { version = "0.1.7", features = ["hashi", "cloud"] }
71-
dockertest = "0.3"
72+
dockertest = "0.3.0"
7273
tokio = { workspace = true }
7374
test-log = "0.2"

teller-providers/src/providers/hashicorp_consul.rs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,9 @@ impl HashiCorpConsul {
9494
consul: Consul::new(rs_consul::Config {
9595
address,
9696
token: Some(token),
97-
#[allow(clippy::default_trait_access)]
98-
hyper_builder: Default::default(),
97+
hyper_builder: hyper_util::client::legacy::Client::builder(
98+
hyper_util::rt::TokioExecutor::new(),
99+
),
99100
}),
100101
opts,
101102
name: name.to_string(),
@@ -125,7 +126,7 @@ impl Provider for HashiCorpConsul {
125126
.map_err(|e| to_err(pm, e))?;
126127

127128
let mut results = vec![];
128-
for kv_pair in res {
129+
for kv_pair in res.response {
129130
let val = kv_pair.value.ok_or_else(|| Error::NotFound {
130131
path: pm.path.to_string(),
131132
msg: "value not found".to_string(),
@@ -170,6 +171,7 @@ impl Provider for HashiCorpConsul {
170171
})
171172
.await
172173
.map_err(|e| to_err(pm, e))?
174+
.response
173175
.iter()
174176
.map(|resp| resp.key.clone())
175177
.collect::<Vec<_>>()
@@ -180,10 +182,10 @@ impl Provider for HashiCorpConsul {
180182
.collect::<Vec<_>>()
181183
};
182184

183-
for key in keys {
185+
for key in &keys {
184186
self.consul
185187
.delete_key(rs_consul::DeleteKeyRequest {
186-
key: &key,
188+
key,
187189
datacenter: &self.opts.dc.clone().unwrap_or_default(),
188190
..Default::default()
189191
})

0 commit comments

Comments
 (0)