ruff/crates
Chris Pryer bdd925c0f2
Use workspace `tracing` in `ruff_formatter` crate (#7849)
I noticed that `tracing::instrument` wasn't available with only the
`"std"` feature enabled when trying to run `cargo doc -p
ruff_formatter`.

I could be misunderstanding something, but I couldn't even run the tests
for the crate.

```
ruff on  ruff-formatter-tracing [$] is 📦 v0.0.292 via 🦀 v1.72.0 
❯ cargo test -p ruff_formatter          
   Compiling ruff_formatter v0.0.0 (/Users/chrispryer/github/ruff/crates/ruff_formatter)
error[E0433]: failed to resolve: could not find `instrument` in `tracing`
   --> crates/ruff_formatter/src/printer/mod.rs:57:16
    |
57  |     #[tracing::instrument(name = "Printer::print", skip_all)]
    |                ^^^^^^^^^^ could not find `instrument` in `tracing`
    |
note: found an item that was configured out
   --> /Users/chrispryer/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tracing-0.1.37/src/lib.rs:959:29
    |
959 | pub use tracing_attributes::instrument;
    |                             ^^^^^^^^^^
    = note: the item is gated behind the `attributes` feature

For more information about this error, try `rustc --explain E0433`.
error: could not compile `ruff_formatter` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `ruff_formatter` (lib test) due to previous error
```

Maybe the idea is to keep this crate minimal, but I figured I'd at least
point this out.
2023-10-08 09:50:10 -04:00
..
flake8_to_ruff Bump Ruff version to v0.0.292 (#7761) 2023-10-02 12:14:47 -04:00
ruff_benchmark Bump ureq from 2.7.1 to 2.8.0 (#7756) 2023-10-02 09:49:59 -04:00
ruff_cache Introduce `FormatterSettings` (#7545) 2023-09-21 08:01:24 +02:00
ruff_cli Rename applicability levels to `Safe`, `Unsafe`, and `Display` (#7843) 2023-10-06 20:50:05 -05:00
ruff_dev Rename `FixKind` to `FixAvailability` (#7658) 2023-10-02 14:38:25 +00:00
ruff_diagnostics Rename applicability levels to `Safe`, `Unsafe`, and `Display` (#7843) 2023-10-06 20:50:05 -05:00
ruff_formatter Use workspace `tracing` in `ruff_formatter` crate (#7849) 2023-10-08 09:50:10 -04:00
ruff_index Add unreachable code rule (#5384) 2023-07-04 14:27:23 +00:00
ruff_linter Document `reimplemented-starmap` performance effects (#7846) 2023-10-07 09:27:02 -04:00
ruff_macros Rename `FixKind` to `FixAvailability` (#7658) 2023-10-02 14:38:25 +00:00
ruff_notebook Write full Jupyter notebook to `stdout` (#7748) 2023-10-02 14:20:13 +00:00
ruff_python_ast Show changed files when running under `--check` (#7788) 2023-10-03 18:50:06 +00:00
ruff_python_codegen Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
ruff_python_formatter Make serde a default feature of ruff_python_formatter (#7825) 2023-10-08 09:47:13 -04:00
ruff_python_index Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
ruff_python_literal Implement our own small-integer optimization (#7584) 2023-09-25 15:13:21 +00:00
ruff_python_parser Fix lexing single-quoted f-string with multi-line format spec (#7787) 2023-10-05 23:12:09 +05:30
ruff_python_resolver Replace `.map_or(false, $closure)` with `.is_some_and(closure)` (#6244) 2023-08-01 19:29:42 +02:00
ruff_python_semantic Check sequence type before triggering `unnecessary-enumerate` (`FURB148`) `len` suggestion (#7781) 2023-10-03 14:39:14 +00:00
ruff_python_stdlib Use `u8` to represent version segments (#7578) 2023-09-21 14:24:51 -04:00
ruff_python_trivia Extend pragma comment cases (#7687) 2023-09-28 18:55:19 +00:00
ruff_shrinking Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
ruff_source_file Skip BOM when inserting start-of-file imports (#7622) 2023-09-23 19:36:50 +00:00
ruff_text_size Unify line size settings between ruff and the formatter (#6873) 2023-08-28 06:44:56 +00:00
ruff_wasm Add support for PEP 701 (#7376) 2023-09-29 02:55:39 +00:00
ruff_workspace Update CLI to respect fix applicability (#7769) 2023-10-06 03:41:43 +00:00