Skip to content

Commit f11f533

Browse files
committed
refactor: remove tracing codes
1 parent 974e455 commit f11f533

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+50
-694
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,10 @@ chrono = "0.4.38"
3131
rustix = { version = "1", features = ["process", "stdio"] }
3232
libc = "0.2.159"
3333
reqwest = { version = "0.12.8", default-features = false }
34-
spdlog-rs = { git = "https://github.com/SpriteOvO/spdlog-rs.git", branch = "sink-decouple", features = [
34+
spdlog-rs = { git = "https://github.com/SpriteOvO/spdlog-rs.git", branch = "main-dev", features = [
3535
"multi-thread",
3636
"source-location",
37-
], optional = true }
38-
tracing = { version = "0.1.40", optional = true }
39-
tracing-subscriber = { version = "0.3.18", features = [
40-
"env-filter",
41-
], optional = true }
37+
] }
4238
smallvec = "1.13.2"
4339
console-subscriber = { version = "0.4.0", optional = true }
4440
ratatui = "0.29.0"
@@ -57,7 +53,6 @@ clap_complete = { version = "4.5", features = ["unstable-dynamic"] }
5753
clap_lex = "0.7.4"
5854
fs4 = "0.13.1"
5955
fs_extra = "1.3.0"
60-
tracing-appender = { version = "0.2.3", optional = true }
6156
dirs = "6.0.0"
6257
termtree = "0.5.1"
6358
textwrap = "0.16.2"
@@ -116,38 +111,6 @@ openssl = [
116111
]
117112
nice-setup = ["sequoia-nettle-backend", "rustls", "oma-refresh/apt"]
118113
openssl-setup = ["sequoia-openssl-backend", "openssl", "oma-refresh/apt"]
119-
spdlog-rs = [
120-
"dep:spdlog-rs",
121-
"oma-utils/spdlog-rs",
122-
"oma-console/spdlog-rs",
123-
"oma-pm/spdlog-rs",
124-
"oma-refresh/spdlog-rs",
125-
"oma-contents/spdlog-rs",
126-
"oma-fetch/spdlog-rs",
127-
"oma-topics/spdlog-rs",
128-
"oma-history/spdlog-rs",
129-
"oma-repo-verify/spdlog-rs",
130-
"oma-mirror/spdlog-rs",
131-
"apt-auth-config/spdlog-rs",
132-
"oma-tum/spdlog-rs",
133-
]
134-
tracing = [
135-
"dep:tracing",
136-
"dep:tracing-subscriber",
137-
"dep:tracing-appender",
138-
"oma-utils/tracing",
139-
"oma-console/tracing",
140-
"oma-pm/tracing",
141-
"oma-refresh/tracing",
142-
"oma-contents/tracing",
143-
"oma-fetch/tracing",
144-
"oma-topics/tracing",
145-
"oma-history/tracing",
146-
"oma-repo-verify/tracing",
147-
"oma-mirror/tracing",
148-
"apt-auth-config/tracing",
149-
"oma-tum/tracing",
150-
]
151114
default = ["aosc", "nice-setup", "mirror"]
152115

153116
[workspace]

apt-auth-config/Cargo.toml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ license = "MIT"
77

88
[dependencies]
99
thiserror = "2"
10-
spdlog-rs = { git = "https://github.com/SpriteOvO/spdlog-rs.git", branch = "sink-decouple", optional = true }
11-
tracing = { version = "0.1", optional = true }
10+
spdlog-rs = { git = "https://github.com/SpriteOvO/spdlog-rs.git", branch = "main-dev" }
1211
rust-netrc = "0.1"
1312
url = "2.5"
14-
15-
[features]
16-
spdlog-rs = ["dep:spdlog-rs"]
17-
tracing = ["dep:tracing"]

oma-console/Cargo.toml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ license = "MIT"
1111
chrono = { version = "0.4.38", optional = true }
1212
console = { version = "0.16", optional = true }
1313
indicatif = { version = "0.18", optional = true }
14-
spdlog-rs = { git = "https://github.com/SpriteOvO/spdlog-rs.git", branch = "sink-decouple", optional = true }
15-
tracing = { version = "0.1", optional = true }
16-
tracing-subscriber = { version = "0.3", optional = true }
14+
spdlog-rs = { git = "https://github.com/SpriteOvO/spdlog-rs.git", branch = "main-dev" }
1715
ratatui = { version = "0.29", optional = true }
1816
# https://github.com/async-rs/async-std/issues/1055
1917
# https://github.com/tokio-rs/tokio/issues/5535
@@ -23,9 +21,7 @@ textwrap = { version = "0.16", optional = true }
2321
aho-corasick = { version = "1.1.3", optional = true }
2422

2523
[features]
26-
tracing = ["dep:tracing", "dep:tracing-subscriber"]
2724
print = ["dep:textwrap", "dep:console", "dep:termbg", "dep:chrono"]
2825
pager = ["dep:ratatui", "dep:ansi-to-tui", "dep:console", "dep:aho-corasick"]
2926
progress_bar_style = ["dep:indicatif"]
30-
spdlog-rs = ["dep:spdlog-rs"]
3127
default = ["print", "pager", "progress_bar_style"]

0 commit comments

Comments
 (0)