Move more dependencies into workspace dependencies (#2842)

This commit is contained in:
Charlie Marsh 2023-02-12 23:19:26 -05:00 committed by GitHub
parent 67198ce7b3
commit dde69d50b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 49 additions and 37 deletions

View file

@ -3,9 +3,21 @@ members = ["crates/*"]
default-members = ["crates/ruff", "crates/ruff_cli"] default-members = ["crates/ruff", "crates/ruff_cli"]
[workspace.dependencies] [workspace.dependencies]
anyhow = { version = "1.0.66" }
clap = { version = "4.0.1", features = ["derive"] }
itertools = { version = "0.10.5" }
libcst = { git = "https://github.com/charliermarsh/LibCST", rev = "f2f0b7a487a8725d161fe8b3ed73a6758b21e177" } libcst = { git = "https://github.com/charliermarsh/LibCST", rev = "f2f0b7a487a8725d161fe8b3ed73a6758b21e177" }
once_cell = { version = "1.16.0" }
regex = { version = "1.6.0" }
rustc-hash = { version = "1.1.0" }
rustpython-common = { git = "https://github.com/RustPython/RustPython.git", rev = "61b48f108982d865524f86624a9d5bc2ae3bccef" } rustpython-common = { git = "https://github.com/RustPython/RustPython.git", rev = "61b48f108982d865524f86624a9d5bc2ae3bccef" }
rustpython-parser = { features = ["lalrpop"], git = "https://github.com/RustPython/RustPython.git", rev = "61b48f108982d865524f86624a9d5bc2ae3bccef" } rustpython-parser = { features = ["lalrpop"], git = "https://github.com/RustPython/RustPython.git", rev = "61b48f108982d865524f86624a9d5bc2ae3bccef" }
schemars = { version = "0.8.11" }
serde = { version = "1.0.147", features = ["derive"] }
serde_json = { version = "1.0.87" }
strum = { version = "0.24.1", features = ["strum_macros"] }
strum_macros = { version = "0.24.3" }
toml = { version = "0.6.0" }
[profile.release] [profile.release]
panic = "abort" panic = "abort"

View file

@ -4,16 +4,16 @@ version = "0.0.246"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = { version = "1.0.66" } anyhow = { workspace = true }
clap = { version = "4.0.1", features = ["derive"] } clap = { workspace = true }
colored = { version = "2.0.0" } colored = { version = "2.0.0" }
configparser = { version = "3.0.2" } configparser = { version = "3.0.2" }
once_cell = { version = "1.16.0" } once_cell = { workspace = true }
regex = { version = "1.6.0" } regex = { workspace = true }
ruff = { path = "../ruff", default-features = false } ruff = { path = "../ruff", default-features = false }
rustc-hash = { version = "1.1.0" } rustc-hash = { workspace = true }
serde = { version = "1.0.147", features = ["derive"] } serde = { workspace = true }
serde_json = { version = "1.0.87" } serde_json = { workspace = true }
strum = { version = "0.24.1", features = ["strum_macros"] } strum = { workspace = true }
strum_macros = { version = "0.24.3" } strum_macros = { workspace = true }
toml = { version = "0.6.0" } toml = { workspace = true }

View file

@ -16,7 +16,7 @@ crate-type = ["cdylib", "rlib"]
doctest = false doctest = false
[dependencies] [dependencies]
anyhow = { version = "1.0.66" } anyhow = { workspace = true }
bisection = { version = "0.1.0" } bisection = { version = "0.1.0" }
bitflags = { version = "1.3.2" } bitflags = { version = "1.3.2" }
cfg-if = { version = "1.0.0" } cfg-if = { version = "1.0.0" }
@ -29,32 +29,32 @@ glob = { version = "0.3.0" }
globset = { version = "0.4.9" } globset = { version = "0.4.9" }
ignore = { version = "0.4.18" } ignore = { version = "0.4.18" }
imperative = { version = "1.0.3" } imperative = { version = "1.0.3" }
itertools = { version = "0.10.5" } itertools = { workspace = true }
libcst = { workspace = true } libcst = { workspace = true }
log = { version = "0.4.17" } log = { version = "0.4.17" }
natord = { version = "1.0.9" } natord = { version = "1.0.9" }
nohash-hasher = { version = "0.2.0" } nohash-hasher = { version = "0.2.0" }
num-bigint = { version = "0.4.3" } num-bigint = { version = "0.4.3" }
num-traits = "0.2.15" num-traits = "0.2.15"
once_cell = { version = "1.16.0" } once_cell = { workspace = true }
path-absolutize = { version = "3.0.14", features = ["once_cell_cache", "use_unix_paths_on_wasm"] } path-absolutize = { version = "3.0.14", features = ["once_cell_cache", "use_unix_paths_on_wasm"] }
regex = { version = "1.6.0" } regex = { workspace = true }
ruff_macros = { version = "0.0.246", path = "../ruff_macros" } ruff_macros = { version = "0.0.246", path = "../ruff_macros" }
ruff_python = { version = "0.0.246", path = "../ruff_python" } ruff_python = { version = "0.0.246", path = "../ruff_python" }
rustc-hash = { version = "1.1.0" } rustc-hash = { workspace = true }
rustpython-common = { workspace = true } rustpython-common = { workspace = true }
rustpython-parser = { workspace = true } rustpython-parser = { workspace = true }
schemars = { version = "0.8.11" } schemars = { workspace = true }
semver = { version = "1.0.16" } semver = { version = "1.0.16" }
serde = { version = "1.0.147", features = ["derive"] } serde = { workspace = true }
shellexpand = { version = "3.0.0" } shellexpand = { version = "3.0.0" }
smallvec = { version = "1.10.0" } smallvec = { version = "1.10.0" }
strum = { version = "0.24.1", features = ["strum_macros"] } strum = { workspace = true }
strum_macros = { version = "0.24.3" } strum_macros = { workspace = true }
textwrap = { version = "0.16.0" } textwrap = { version = "0.16.0" }
thiserror = { version = "1.0" } thiserror = { version = "1.0" }
titlecase = { version = "2.2.1" } titlecase = { version = "2.2.1" }
toml = { version = "0.6.0" } toml = { workspace = true }
# https://docs.rs/getrandom/0.2.7/getrandom/#webassembly-support # https://docs.rs/getrandom/0.2.7/getrandom/#webassembly-support
# For (future) wasm-pack support # For (future) wasm-pack support

View file

@ -27,7 +27,7 @@ doc = false
ruff = { path = "../ruff" } ruff = { path = "../ruff" }
annotate-snippets = { version = "0.9.1", features = ["color"] } annotate-snippets = { version = "0.9.1", features = ["color"] }
anyhow = { version = "1.0.66" } anyhow = { workspace = true }
atty = { version = "0.2.14" } atty = { version = "0.2.14" }
bincode = { version = "1.3.3" } bincode = { version = "1.3.3" }
bitflags = { version = "1.3.2" } bitflags = { version = "1.3.2" }
@ -40,7 +40,7 @@ colored = { version = "2.0.0" }
filetime = { version = "0.2.17" } filetime = { version = "0.2.17" }
glob = { version = "0.3.0" } glob = { version = "0.3.0" }
ignore = { version = "0.4.18" } ignore = { version = "0.4.18" }
itertools = { version = "0.10.5" } itertools = { workspace = true }
log = { version = "0.4.17" } log = { version = "0.4.17" }
mdcat = { version = "1.0.0", default-features = false } mdcat = { version = "1.0.0", default-features = false }
notify = { version = "5.0.0" } notify = { version = "5.0.0" }
@ -48,10 +48,10 @@ path-absolutize = { version = "3.0.14", features = ["once_cell_cache"] }
pulldown-cmark = { version = "0.9.2", default-features = false, features = ['simd'] } pulldown-cmark = { version = "0.9.2", default-features = false, features = ['simd'] }
quick-junit = { version = "0.3.2" } quick-junit = { version = "0.3.2" }
rayon = { version = "1.5.3" } rayon = { version = "1.5.3" }
regex = { version = "1.6.0" } regex = { workspace = true }
rustc-hash = { version = "1.1.0" } rustc-hash = { workspace = true }
serde = { version = "1.0.147", features = ["derive"] } serde = { workspace = true }
serde_json = { version = "1.0.87" } serde_json = { workspace = true }
similar = { version = "2.2.1" } similar = { version = "2.2.1" }
strum = { version = "0.24.1" } strum = { version = "0.24.1" }
syntect = { version = "5.0.0", default-features = false, features = ["parsing", "regex-fancy", "default-themes", "default-syntaxes"] } syntect = { version = "5.0.0", default-features = false, features = ["parsing", "regex-fancy", "default-themes", "default-syntaxes"] }

View file

@ -4,17 +4,17 @@ version = "0.0.246"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
anyhow = { version = "1.0.66" } anyhow = { workspace = true }
clap = { version = "4.0.1", features = ["derive"] } clap = { workspace = true }
itertools = { version = "0.10.5" } itertools = { workspace = true }
libcst = { workspace = true } libcst = { workspace = true }
once_cell = { version = "1.16.0" } once_cell = { workspace = true }
ruff = { path = "../ruff" } ruff = { path = "../ruff" }
ruff_cli = { path = "../ruff_cli" } ruff_cli = { path = "../ruff_cli" }
rustpython-common = { workspace = true } rustpython-common = { workspace = true }
rustpython-parser = { workspace = true } rustpython-parser = { workspace = true }
schemars = { version = "0.8.11" } schemars = { workspace = true }
serde_json = { version = "1.0.91" } serde_json = { version = "1.0.91" }
strum = { version = "0.24.1", features = ["strum_macros"] } strum = { workspace = true }
strum_macros = { version = "0.24.3" } strum_macros = { workspace = true }
textwrap = { version = "0.16.0" } textwrap = { version = "0.16.0" }

View file

@ -12,4 +12,4 @@ proc-macro2 = { version = "1.0.47" }
quote = { version = "1.0.21" } quote = { version = "1.0.21" }
syn = { version = "1.0.103", features = ["derive", "parsing", "extra-traits"] } syn = { version = "1.0.103", features = ["derive", "parsing", "extra-traits"] }
textwrap = { version = "0.16.0" } textwrap = { version = "0.16.0" }
itertools = { version = "0.10.5" } itertools = { workspace = true }

View file

@ -6,6 +6,6 @@ edition = "2021"
[lib] [lib]
[dependencies] [dependencies]
once_cell = { version = "1.16.0" } once_cell = {workspace = true}
regex = { version = "1.6.0" } regex = { workspace = true }
rustc-hash = { version = "1.1.0" } rustc-hash = { workspace = true }