mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 12:25:45 +00:00
Update to [Rust 1.74](https://blog.rust-lang.org/2023/11/16/Rust-1.74.0.html) and use the new clippy lints table. The update itself introduced a new clippy lint about superfluous hashes in raw strings, which got removed. I moved our lint config from `rustflags` to the newly stabilized [workspace.lints](https://doc.rust-lang.org/stable/cargo/reference/workspaces.html#the-lints-table). One consequence is that we have to `unsafe_code = "warn"` instead of "forbid" because the latter now actually bans unsafe code: ``` error[E0453]: allow(unsafe_code) incompatible with previous forbid --> crates/ruff_source_file/src/newlines.rs:62:17 | 62 | #[allow(unsafe_code)] | ^^^^^^^^^^^ overruled by previous forbid | = note: `forbid` lint level was set on command line ``` --------- Co-authored-by: Charlie Marsh <charlie.r.marsh@gmail.com>
59 lines
1.8 KiB
TOML
59 lines
1.8 KiB
TOML
[package]
|
|
name = "ruff_dev"
|
|
version = "0.0.0"
|
|
publish = false
|
|
authors = { workspace = true }
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[dependencies]
|
|
ruff_linter = { path = "../ruff_linter", features = ["schemars"] }
|
|
ruff_cli = { path = "../ruff_cli" }
|
|
ruff_diagnostics = { path = "../ruff_diagnostics" }
|
|
ruff_formatter = { path = "../ruff_formatter" }
|
|
ruff_python_ast = { path = "../ruff_python_ast" }
|
|
ruff_python_codegen = { path = "../ruff_python_codegen" }
|
|
ruff_python_formatter = { path = "../ruff_python_formatter" }
|
|
ruff_notebook = { path = "../ruff_notebook" }
|
|
ruff_python_literal = { path = "../ruff_python_literal" }
|
|
ruff_python_parser = { path = "../ruff_python_parser" }
|
|
ruff_python_stdlib = { path = "../ruff_python_stdlib" }
|
|
ruff_python_trivia = { path = "../ruff_python_trivia" }
|
|
ruff_workspace = { path = "../ruff_workspace", features = ["schemars"]}
|
|
|
|
anyhow = { workspace = true }
|
|
clap = { workspace = true }
|
|
ignore = { workspace = true }
|
|
indicatif = "0.17.7"
|
|
itertools = { workspace = true }
|
|
libcst = { workspace = true }
|
|
once_cell = { workspace = true }
|
|
pretty_assertions = { version = "1.3.0" }
|
|
rayon = "1.8.0"
|
|
regex = { workspace = true }
|
|
schemars = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
similar = { workspace = true }
|
|
strum = { workspace = true }
|
|
strum_macros = { workspace = true }
|
|
tempfile = "3.8.1"
|
|
toml = { workspace = true, features = ["parse"] }
|
|
tracing = { workspace = true }
|
|
tracing-indicatif = { workspace = true }
|
|
tracing-subscriber = { workspace = true, features = ["env-filter"] }
|
|
imara-diff = "0.1.5"
|
|
|
|
[dev-dependencies]
|
|
indoc = "2.0.4"
|
|
|
|
[features]
|
|
# Turn off rayon for profiling
|
|
singlethreaded = []
|
|
|
|
[lints]
|
|
workspace = true
|