Skip to content

Commit 5193a74

Browse files
authored
Merge pull request #11139 from Byron/fix
Rust dependencies maintenance
2 parents ce79ea4 + 5515d06 commit 5193a74

File tree

14 files changed

+297
-448
lines changed

14 files changed

+297
-448
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ but-gerrit = { path = "crates/but-gerrit" }
120120
but-cherry-apply = { path = "crates/but-cherry-apply" }
121121
but-github = { path = "crates/but-github" }
122122
open = "5.3.2"
123+
regex = { version = "1.11.3", default-features = false, features = ["std", "unicode" ] }
124+
clap = { version = "4.5.51", default-features = false, features = ["derive", "std", "help"]}
125+
tracing-forest = { version = "0.3.0" }
126+
sysinfo = { version = "0.37.2", default-features = false }
123127

124128
[profile.release]
125129
# There are no overrides here as we optimise for fast release builds,
@@ -151,6 +155,8 @@ gix-actor = { opt-level = 3 }
151155
gix-config = { opt-level = 3 }
152156
sha1-checked = { opt-level = 3 }
153157
zlib-rs = { opt-level = 3 }
158+
serde = { opt-level = 3 }
159+
serde_json = { opt-level = 3 }
154160
# This one is special as we can run into debug assertions otherwise.
155161
# They have a time, but let's chose the time instead of always being hit by it.
156162
gix-merge = { opt-level = 3, debug-assertions = false }

crates/but-api-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ doctest = false
1313
[dependencies]
1414
syn = "2"
1515
quote = "1"
16-
convert_case = "0.8"
16+
convert_case = "0.9.0"

crates/but-github/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ anyhow.workspace = true
2222
gitbutler-user.workspace = true
2323
serde_json.workspace = true
2424
reqwest = { workspace = true, features = ["json"] }
25-
octorust = "0.10.0"
25+
octorust = { version = "0.10.0", default-features = false }

crates/but-graph/src/init/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,17 +249,16 @@ impl Graph {
249249
options: Options,
250250
) -> anyhow::Result<Self> {
251251
let (repo, meta, _entrypoint) = Overlay::default().into_parts(tip.repo, meta);
252-
Graph::from_commit_traversal_inner(tip.detach(), &repo, ref_name, &meta, options)
252+
Graph::from_commit_traversal_inner(tip.detach(), &repo, ref_name.into(), &meta, options)
253253
}
254254

255255
fn from_commit_traversal_inner<T: RefMetadata>(
256256
tip: gix::ObjectId,
257257
repo: &OverlayRepo<'_>,
258-
ref_name: impl Into<Option<gix::refs::FullName>>,
258+
ref_name: Option<gix::refs::FullName>,
259259
meta: &OverlayMetadata<'_, T>,
260260
options: Options,
261261
) -> anyhow::Result<Self> {
262-
let ref_name = ref_name.into();
263262
{
264263
if let Some(name) = &ref_name {
265264
let span = tracing::Span::current();

crates/but-rules/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ doctest = false
1313
anyhow.workspace = true
1414
itertools.workspace = true
1515
serde.workspace = true
16-
regex = "1.11.3"
16+
regex = { workspace = true, features = ["perf"] }
1717
gix = { workspace = true }
1818
chrono.workspace = true
1919
serde_regex = "1.1.0"

crates/but-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ gitbutler-project.workspace = true
4242
gitbutler-watcher.workspace = true
4343
tracing.workspace = true
4444
tracing-subscriber.workspace = true
45-
tracing-forest = { version = "0.2.0" }
45+
tracing-forest.workspace = true
4646
but-secret.workspace = true

crates/but-testing/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ gitbutler-reference.workspace = true
3434

3535
gitbutler-commit = { workspace = true, optional = true, features = ["testing"] }
3636

37-
clap = { version = "4.5.51", features = ["derive", "env"] }
37+
clap = { workspace = true, features = ["env"] }
3838
gix.workspace = true
3939
anyhow.workspace = true
4040
itertools.workspace = true
41-
tracing-forest = { version = "0.2.0" }
41+
tracing-forest.workspace = true
4242
tracing-subscriber.workspace = true
4343
tracing.workspace = true
4444
dirs-next = "2.0.0"

crates/but-testsupport/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ termtree = "0.5.1"
1919
gix-testtools.workspace = true
2020
but-graph.workspace = true
2121
but-core.workspace = true
22-
regex = "1.11.3"
22+
regex = { workspace = true }
2323
snapbox = { workspace = true, optional = true }
2424

2525
[dev-dependencies]

crates/but/Cargo.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,14 @@ posthog-rs = { version = "0.3.7" }
2222
serde.workspace = true
2323
tokio = { workspace = true, features = ["rt-multi-thread", "io-std"] }
2424
strum = { version = "0.27", features = ["derive"] }
25-
clap = { version = "4.5.51", features = ["derive", "env", "wrap_help"] }
25+
clap = { workspace = true, features = ["env", "wrap_help", "color", "error-context", "usage", "suggestions" ] }
2626
clap_complete = "4.5.60"
2727
chrono.workspace = true
2828
bstr.workspace = true
29-
regex = "1.11.3"
29+
regex.workspace = true
3030
anyhow.workspace = true
31-
# rmcp = { git = "https://github.com/modelcontextprotocol/rust-sdk", branch = "main" }
3231
rmcp.workspace = true
3332
command-group = { version = "5.0.1", features = ["with-tokio"] }
34-
sysinfo = "0.37.1"
3533
gitbutler-project.workspace = true
3634
gix.workspace = true
3735
but-core.workspace = true
@@ -63,12 +61,12 @@ colored = "3.0.0"
6361
serde_json.workspace = true
6462
terminal_size = "0.4.3"
6563
tracing.workspace = true
66-
tracing-subscriber = { version = "0.3", features = [
64+
tracing-subscriber = { workspace = true, features = [
6765
"env-filter",
6866
"std",
6967
"fmt",
7068
] }
71-
tracing-forest = { version = "0.2.0" }
69+
tracing-forest.workspace = true
7270
ratatui = "0.29.0"
7371
crossterm = "0.29.0"
7472
atty = "0.2.0"

0 commit comments

Comments
 (0)