mirror of https://github.com/astral-sh/ruff
84 lines
3.5 KiB
TOML
84 lines
3.5 KiB
TOML
[workspace]
|
|
members = ["crates/*"]
|
|
resolver = "2"
|
|
|
|
[workspace.package]
|
|
edition = "2021"
|
|
rust-version = "1.70"
|
|
homepage = "https://beta.ruff.rs/docs"
|
|
documentation = "https://beta.ruff.rs/docs"
|
|
repository = "https://github.com/astral-sh/ruff"
|
|
authors = ["Charlie Marsh <charlie.r.marsh@gmail.com>"]
|
|
license = "MIT"
|
|
|
|
[workspace.dependencies]
|
|
anyhow = { version = "1.0.69" }
|
|
bitflags = { version = "2.3.1" }
|
|
chrono = { version = "0.4.23", default-features = false, features = ["clock"] }
|
|
clap = { version = "4.1.8", features = ["derive"] }
|
|
colored = { version = "2.0.0" }
|
|
filetime = { version = "0.2.20" }
|
|
glob = { version = "0.3.1" }
|
|
globset = { version = "0.4.10" }
|
|
ignore = { version = "0.4.20" }
|
|
insta = { version = "1.30.0" }
|
|
is-macro = { version = "0.2.2" }
|
|
itertools = { version = "0.10.5" }
|
|
log = { version = "0.4.17" }
|
|
memchr = "2.5.0"
|
|
nohash-hasher = { version = "0.2.0" }
|
|
num-bigint = { version = "0.4.3" }
|
|
num-traits = { version = "0.2.15" }
|
|
once_cell = { version = "1.17.1" }
|
|
path-absolutize = { version = "3.0.14" }
|
|
proc-macro2 = { version = "1.0.51" }
|
|
quote = { version = "1.0.23" }
|
|
regex = { version = "1.7.1" }
|
|
rustc-hash = { version = "1.1.0" }
|
|
schemars = { version = "0.8.12" }
|
|
serde = { version = "1.0.152", features = ["derive"] }
|
|
serde_json = { version = "1.0.93" }
|
|
shellexpand = { version = "3.0.0" }
|
|
similar = { version = "2.2.1", features = ["inline"] }
|
|
smallvec = { version = "1.10.0" }
|
|
strum = { version = "0.24.1", features = ["strum_macros"] }
|
|
strum_macros = { version = "0.24.3" }
|
|
syn = { version = "2.0.15" }
|
|
test-case = { version = "3.0.0" }
|
|
thiserror = { version = "1.0.43" }
|
|
toml = { version = "0.7.2" }
|
|
wsl = { version = "0.1.0" }
|
|
|
|
# v1.0.1
|
|
libcst = { git = "https://github.com/Instagram/LibCST.git", rev = "3cacca1a1029f05707e50703b49fe3dd860aa839", default-features = false }
|
|
|
|
# Please tag the RustPython version every time you update its revision here and in fuzz/Cargo.toml
|
|
# Tagging the version ensures that older ruff versions continue to build from source even when we rebase our RustPython fork.
|
|
# Note: As of tag v0.0.8 we are cherry-picking commits instead of rebasing so the tag is not necessary
|
|
ruff_text_size = { git = "https://github.com/astral-sh/RustPython-Parser.git", rev = "126652b684910c29a7bcc32293d4ca0f81454e34" }
|
|
rustpython-ast = { git = "https://github.com/astral-sh/RustPython-Parser.git", rev = "126652b684910c29a7bcc32293d4ca0f81454e34" , default-features = false, features = ["num-bigint"]}
|
|
rustpython-format = { git = "https://github.com/astral-sh/RustPython-Parser.git", rev = "126652b684910c29a7bcc32293d4ca0f81454e34", default-features = false, features = ["num-bigint"] }
|
|
rustpython-literal = { git = "https://github.com/astral-sh/RustPython-Parser.git", rev = "126652b684910c29a7bcc32293d4ca0f81454e34", default-features = false }
|
|
rustpython-parser = { git = "https://github.com/astral-sh/RustPython-Parser.git", rev = "126652b684910c29a7bcc32293d4ca0f81454e34" , default-features = false, features = ["full-lexer", "num-bigint"] }
|
|
|
|
[profile.release]
|
|
lto = "fat"
|
|
codegen-units = 1
|
|
|
|
[profile.dev.package.insta]
|
|
opt-level = 3
|
|
|
|
[profile.dev.package.similar]
|
|
opt-level = 3
|
|
|
|
# Reduce complexity of a parser function that would trigger a locals limit in a wasm tool.
|
|
# https://github.com/bytecodealliance/wasm-tools/blob/b5c3d98e40590512a3b12470ef358d5c7b983b15/crates/wasmparser/src/limits.rs#L29
|
|
[profile.dev.package.rustpython-parser]
|
|
opt-level = 1
|
|
|
|
# Use the `--profile release-debug` flag to show symbols in release mode.
|
|
# e.g. `cargo build --profile release-debug`
|
|
[profile.release-debug]
|
|
inherits = "release"
|
|
debug = 1
|