zed/crates/util/src
Max Brunsfeld 97159bd88d
Some checks are pending
CI / Check formatting and spelling (push) Waiting to run
CI / (macOS) Run Clippy and tests (push) Waiting to run
CI / (Linux) Run Clippy and tests (push) Waiting to run
CI / (Windows) Run Clippy and tests (push) Waiting to run
CI / Create a macOS bundle (push) Blocked by required conditions
CI / Create a Linux bundle (push) Blocked by required conditions
CI / Create arm64 Linux bundle (push) Blocked by required conditions
Deploy Docs / Deploy Docs (push) Waiting to run
Associate logs from log_err with the calling crate (#13617)
Now, when you selectively enable logs from particular crates with
`RUST_LOG=call,worktree`, logs created via `log_err` calls in those
crates get correctly enabled. Previously, they were all attributed to
the `util` crate, because they used the normal logging macros, which
implicitly insert the current crate name.

This relies on the regularity of our directory naming. Rust's
`track_caller` feature allows you to obtain the file system path of the
caller, but not its rust module path, so I'm inferring the crate name
from the file system path (which I believe is always valid, in our
codebase).

Release Notes:

- N/A
2024-06-27 17:03:47 -07:00
..
test Fix Clippy warnings in util crate (#8721) 2024-03-02 13:06:35 -05:00
arc_cow.rs Add logic for managing language and theme extensions (#7467) 2024-02-07 15:14:50 -05:00
fs.rs chore: Clean up util dependencies. (#9247) 2024-03-13 00:10:49 +01:00
paths.rs windows: Improve file_finder to support match with unix style path (#12357) 2024-06-20 11:33:49 -07:00
serde.rs Allow ignoring soft wraps when moving to line ends (#11153) 2024-05-02 12:30:45 +03:00
test.rs Fix Clippy warnings in util crate (#8721) 2024-03-02 13:06:35 -05:00
util.rs Associate logs from log_err with the calling crate (#13617) 2024-06-27 17:03:47 -07:00