Skip to content

Commit 92bf988

Browse files
committed
feat: revert to use log and env_logger for logging
1 parent 8038e36 commit 92bf988

File tree

17 files changed

+307
-279
lines changed

17 files changed

+307
-279
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ include = [
1919

2020
[dependencies]
2121
der = { version = "0.7.7", features = ["std"] }
22+
log = { workspace = true }
2223
rusqlite = { version = ">= 0.28.0", optional = true }
23-
tracing = { workspace = true }
2424

2525
[dev-dependencies]
2626
tempfile = { workspace = true }
@@ -29,25 +29,16 @@ tempfile = { workspace = true }
2929
default = []
3030
sqlite = ["dep:rusqlite"]
3131
sqlite-bundled = ["sqlite", "rusqlite/bundled"]
32-
log = ["tracing/log"]
3332

3433
[workspace]
3534
members = ["capi", "fuzzer", "tests/testhelper", "tools"]
3635
resolver = "3"
3736

3837
[workspace.dependencies]
38+
env_logger = "0.11.0"
39+
log = "0.4.0"
3940
tempfile = "3.10.1"
4041

41-
[workspace.dependencies.tracing]
42-
version = "0.1.18"
43-
default-features = false
44-
features = ["std", "release_max_level_info"]
45-
46-
[workspace.dependencies.tracing-subscriber]
47-
version = "0.3.0"
48-
default-features = false
49-
features = ["ansi", "fmt", "std"]
50-
5142
[profile.release]
5243
lto = true
5344
opt-level = 3

NEWS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ What's New in libchewing (unreleased)
3939
- autolearn: new phrases with break words inside will be learned both with
4040
and without the break word.
4141
- rust: simplified dictionary API.
42-
- rust: logging now depends on tracing and tracing-subscriber.
4342
- rust: the DictionaryMut trait is merged back to the Dictionary trait.
4443
- rust: the Editor::set_editor_options now accepts a closure for setting
4544
options in place.

capi/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ crate-type = ["rlib", "staticlib"]
1111

1212
[dependencies]
1313
chewing = { version = "0.11.0-alpha.7", path = ".." }
14-
tracing = { workspace = true }
15-
tracing-subscriber = { workspace = true }
14+
env_logger = { workspace = true }
15+
log = { workspace = true }
1616

1717
[dev-dependencies]
1818
tempfile = { workspace = true }

0 commit comments

Comments
 (0)