mirror of https://github.com/astral-sh/ruff
[ruff,ty] Enable tracing's `log` feature
This has the effect of emitting tracing events via `log` whenever there isn't an active tracing subscriber present. This makes it so `ty_wasm` logs tracing messages to the JavaScript console automatically (via our use of `console_log`).
This commit is contained in:
parent
f9688bd05c
commit
00c0c567dc
|
|
@ -4449,6 +4449,7 @@ dependencies = [
|
||||||
"ruff_source_file",
|
"ruff_source_file",
|
||||||
"ruff_text_size",
|
"ruff_text_size",
|
||||||
"serde-wasm-bindgen",
|
"serde-wasm-bindgen",
|
||||||
|
"tracing",
|
||||||
"ty_ide",
|
"ty_ide",
|
||||||
"ty_project",
|
"ty_project",
|
||||||
"ty_python_semantic",
|
"ty_python_semantic",
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,7 @@ log = { workspace = true }
|
||||||
# See https://docs.rs/getrandom/latest/getrandom/#webassembly-support
|
# See https://docs.rs/getrandom/latest/getrandom/#webassembly-support
|
||||||
getrandom = { workspace = true, features = ["wasm_js"] }
|
getrandom = { workspace = true, features = ["wasm_js"] }
|
||||||
serde-wasm-bindgen = { workspace = true }
|
serde-wasm-bindgen = { workspace = true }
|
||||||
|
tracing = { workspace = true, features = ["log"] }
|
||||||
# Not a direct dependency but required to compile for Wasm.
|
# Not a direct dependency but required to compile for Wasm.
|
||||||
uuid = { workspace = true, features = ["js"] }
|
uuid = { workspace = true, features = ["js"] }
|
||||||
|
|
||||||
|
|
@ -50,3 +51,7 @@ wasm-bindgen-test = { workspace = true }
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
workspace = true
|
workspace = true
|
||||||
|
|
||||||
|
[package.metadata.cargo-shear]
|
||||||
|
# Depended on only to enable `log` feature as of 2025-10-03.
|
||||||
|
ignored = ["tracing"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue