Skip to content

Commit ff20e20

Browse files
committed
refactor: update dependencies and formatting
- Update workspace dependencies (rand, human-panic, clap_complete, tabled, clap, chrono) - Add utoipa feature for OpenAPI documentation - Improve code formatting and imports organization - Enhance error handling in file operations
1 parent eeed9b6 commit ff20e20

File tree

6 files changed

+170
-112
lines changed

6 files changed

+170
-112
lines changed

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ resolver = "2"
44

55
[workspace.dependencies]
66
# Shared dependencies
7+
rand = { version = "0.9.1", default-features = false }
78
rayon = "1.10.0"
8-
human-panic = "2.0.0"
9+
human-panic = "2.0.2"
910
better-panic = "0.3.0"
1011
log = "0.4.27"
11-
clap_complete = "4.5.50"
12-
rand = "0.9.1"
12+
clap_complete = "4.5.54"
1313
ignore = "0.4.23"
1414
serde = { version = "1.0.219", features = ["derive"] }
1515
serde_json = "1.0.140"
@@ -27,10 +27,10 @@ slog-term = "2.9.1"
2727
slog-scope = "4.4.0"
2828
slog-async = "2.8.0"
2929
slog-stdlog = "4.1.1"
30-
tabled = "0.19.0"
30+
tabled = "0.20.0"
3131
terminal_size = "0.4.2"
32-
clap = { version = "4.5.39", features = ["cargo", "derive"] }
33-
chrono = { version = "0.4.38", features = ["serde"] }
32+
clap = { version = "4.5.40", features = ["cargo", "derive"] }
33+
chrono = { version = "0.4.41", features = ["serde"] }
3434

3535
# Dev dependencies
3636
assert_cmd = "2.0.17"
@@ -68,4 +68,4 @@ debug = false
6868
rpath = false
6969
lto = true
7070
debug-assertions = false
71-
codegen-units = 1
71+
codegen-units = 1

ci/src/cli/mod.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ use clap_complete::{
66
use std::path::PathBuf;
77

88
use codeinput::core::{
9-
commands::{self, infer_owners::{InferScope, InferAlgorithm}},
9+
commands::{
10+
self,
11+
infer_owners::{InferAlgorithm, InferScope},
12+
},
1013
types::{CacheEncoding, OutputFormat},
1114
};
1215
use codeinput::utils::app_config::AppConfig;
@@ -377,7 +380,9 @@ fn parse_infer_algorithm(s: &str) -> std::result::Result<InferAlgorithm, String>
377380
"commits" => Ok(InferAlgorithm::Commits),
378381
"lines" => Ok(InferAlgorithm::Lines),
379382
"recent" => Ok(InferAlgorithm::Recent),
380-
_ => Err(format!("Invalid algorithm: {}. Valid options: commits, lines, recent", s)),
383+
_ => Err(format!(
384+
"Invalid algorithm: {}. Valid options: commits, lines, recent",
385+
s
386+
)),
381387
}
382388
}
383-

codeinput/Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ full = [
5656
"terminal_size",
5757
"clap",
5858
"chrono",
59+
"utoipa",
5960
]
6061
nightly = []
6162
termlog = ["slog-term"]
@@ -66,6 +67,7 @@ types = []
6667
[dependencies]
6768
# Core dependencies always needed
6869
serde = { workspace = true }
70+
utoipa = { version = "4.2.3", optional = true }
6971

7072
# Full feature dependencies
7173
rayon = { workspace = true, optional = true }
@@ -90,7 +92,7 @@ slog-stdlog = { workspace = true, optional = true }
9092
tabled = { workspace = true, optional = true }
9193
terminal_size = { workspace = true, optional = true }
9294
clap = { workspace = true, optional = true }
93-
chrono = { version = "0.4.38", features = ["serde"], optional = true }
95+
chrono = { version = "0.4.41", features = ["serde"], optional = true }
9496

9597
[target.'cfg(target_os = "linux")'.dependencies]
9698
slog-journald = { version = "2.2.0", optional = true }

0 commit comments

Comments
 (0)