mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:22:24 +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>
40 lines
1.1 KiB
TOML
40 lines
1.1 KiB
TOML
[package]
|
|
name = "ruff_python_parser"
|
|
version = "0.0.0"
|
|
publish = false
|
|
authors = ["Charlie Marsh <charlie.r.marsh@gmail.com>", "RustPython Team"]
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
license = { workspace = true }
|
|
build = "build.rs"
|
|
|
|
[lib]
|
|
|
|
[dependencies]
|
|
ruff_python_ast = { path = "../ruff_python_ast" }
|
|
ruff_text_size = { path = "../ruff_text_size" }
|
|
|
|
anyhow = { workspace = true }
|
|
bitflags = { workspace = true }
|
|
is-macro = { workspace = true }
|
|
itertools = { workspace = true }
|
|
lalrpop-util = { version = "0.20.0", default-features = false }
|
|
memchr = { workspace = true }
|
|
unicode-ident = { workspace = true }
|
|
unicode_names2 = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
static_assertions = "1.1.0"
|
|
|
|
[dev-dependencies]
|
|
insta = { workspace = true }
|
|
|
|
[build-dependencies]
|
|
anyhow = { workspace = true }
|
|
lalrpop = { version = "0.20.0", default-features = false, optional = true }
|
|
tiny-keccak = { version = "2", features = ["sha3"] }
|
|
|
|
[lints]
|
|
workspace = true
|