mirror of
https://github.com/astral-sh/ruff
synced 2026-01-11 08:34:29 -05: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>
27 lines
717 B
TOML
27 lines
717 B
TOML
[package]
|
|
name = "ruff_python_literal"
|
|
version = "0.0.0"
|
|
publish = false
|
|
description = "Common literal handling utilities mostly useful for unparse and repr."
|
|
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 }
|
|
|
|
[dependencies]
|
|
bitflags = { workspace = true }
|
|
hexf-parse = "0.2.1"
|
|
is-macro.workspace = true
|
|
itertools = { workspace = true }
|
|
lexical-parse-float = { version = "0.8.0", features = ["format"] }
|
|
unic-ucd-category = "0.9"
|
|
|
|
[dev-dependencies]
|
|
rand = "0.8.5"
|
|
|
|
[lints]
|
|
workspace = true
|