From bfcebc3081a956c8343f001b9d0c5e63c8d04c2c Mon Sep 17 00:00:00 2001 From: magic-akari Date: Fri, 12 Jan 2024 16:48:47 +0800 Subject: [PATCH] chore(deps): update ruff crates --- Cargo.lock | 99 +++++++++++++++---------------- Cargo.toml | 4 +- crates/ruff_fmt_dprint/Cargo.toml | 2 +- rust-toolchain.toml | 2 +- 4 files changed, 52 insertions(+), 55 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 86f9e03..e1ebb28 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.5" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d664a92ecae85fd0a7392615844904654d1d5f5514837f471ddef4a057aba1b6" +checksum = "4cd2405b3ac1faab2990b74d728624cd9fd115651fcecc7c2d8daf01376275ba" dependencies = [ "anstyle", "anstyle-parse", @@ -67,9 +67,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.77" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9d19de80eff169429ac1e9f48fffb163916b448a44e8e046186232046d9e1f9" +checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca" [[package]] name = "bitflags" @@ -85,9 +85,9 @@ checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07" [[package]] name = "bstr" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "542f33a8835a0884b006a0c3df3dadd99c0c3f296ed26c2fdc8028e01ad6230c" +checksum = "c48f0051a4b4c5e0b6d365cd04af53aeaa209e3cc15ec2cdb69e73cc87fbd0dc" dependencies = [ "memchr", "serde", @@ -107,9 +107,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "clap" -version = "4.4.11" +version = "4.4.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfaff671f6b22ca62406885ece523383b9b64022e341e53e009a62ebc47a45f2" +checksum = "58e54881c004cec7895b0068a0a954cd5d62da01aef83fa35b1e594497bf5445" dependencies = [ "clap_builder", "clap_derive", @@ -117,9 +117,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.4.11" +version = "4.4.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a216b506622bb1d316cd51328dce24e07bdff4a6128a47c7e7fad11878d5adbb" +checksum = "59cb82d7f531603d2fd1f507441cdd35184fa81beff7bd489570de7f773460bb" dependencies = [ "anstream", "anstyle", @@ -218,9 +218,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe9006bed769170c11f845cf00c7c1e9092aeb3f268e007c3e760ac68008070f" +checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5" dependencies = [ "cfg-if", "libc", @@ -271,9 +271,9 @@ dependencies = [ [[package]] name = "is-macro" -version = "0.3.3" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97707cce574453d050d7c53194bdd88f6e5e53d7c94d294f63f2511308af9867" +checksum = "59a85abdc13717906baccb5a1e435556ce0df215f242892f721dff62bf25288f" dependencies = [ "Inflector", "proc-macro2", @@ -283,9 +283,9 @@ dependencies = [ [[package]] name = "itertools" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1c173a5686ce8bfa551b3563d0c2170bf24ca44da99c7ca4bfdab5418c3fe57" +checksum = "25db6b064527c5d482d0423354fcd07a89a2dfe07b67892e62411946db7f07b0" dependencies = [ "either", ] @@ -313,9 +313,9 @@ checksum = "3f35c735096c0293d313e8f2a641627472b83d01b937177fe76e5e2708d31e0d" [[package]] name = "libc" -version = "0.2.151" +version = "0.2.152" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "302d7ab3130588088d277783b1e2d2e10c9e9e4a16dd9050e6ec93fb3e7048f4" +checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" [[package]] name = "log" @@ -325,9 +325,9 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "memchr" -version = "2.6.4" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167" +checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "once_cell" @@ -387,18 +387,18 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "proc-macro2" -version = "1.0.70" +version = "1.0.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39278fbbf5fb4f646ce651690877f89d1c5811a3d4acb27700c1cb3cdb78fd3b" +checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.33" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae" +checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] @@ -473,14 +473,14 @@ checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f" [[package]] name = "relative-path" -version = "1.9.0" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c707298afce11da2efef2f600116fa93ffa7a032b5d7b628aa17711ec81383ca" +checksum = "e898588f33fdd5b9420719948f9f2a32c922a246964576f71ba7f24f80610fbc" [[package]] name = "ruff_cache" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ "filetime", "glob", @@ -530,7 +530,7 @@ dependencies = [ [[package]] name = "ruff_formatter" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ "drop_bomb", "ruff_cache", @@ -546,7 +546,7 @@ dependencies = [ [[package]] name = "ruff_macros" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ "itertools", "proc-macro2", @@ -558,13 +558,11 @@ dependencies = [ [[package]] name = "ruff_python_ast" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ "bitflags 2.4.1", "is-macro", "itertools", - "memchr", - "once_cell", "ruff_python_trivia", "ruff_source_file", "ruff_text_size", @@ -577,7 +575,7 @@ dependencies = [ [[package]] name = "ruff_python_formatter" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ "anyhow", "bitflags 2.4.1", @@ -608,9 +606,8 @@ dependencies = [ [[package]] name = "ruff_python_index" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ - "itertools", "ruff_python_ast", "ruff_python_parser", "ruff_python_trivia", @@ -621,7 +618,7 @@ dependencies = [ [[package]] name = "ruff_python_parser" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ "anyhow", "bitflags 2.4.1", @@ -641,7 +638,7 @@ dependencies = [ [[package]] name = "ruff_python_trivia" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ "itertools", "ruff_source_file", @@ -652,7 +649,7 @@ dependencies = [ [[package]] name = "ruff_source_file" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ "memchr", "once_cell", @@ -663,7 +660,7 @@ dependencies = [ [[package]] name = "ruff_text_size" version = "0.0.0" -source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.9#0263f2715eba81aee471e3dd5a50ea5f9426cbb1" +source = "git+https://github.com/astral-sh/ruff.git?tag=v0.1.12#55f8f3b2cc64188393e978af8e80a7309714eda4" dependencies = [ "serde", ] @@ -688,9 +685,9 @@ checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" [[package]] name = "serde" -version = "1.0.193" +version = "1.0.195" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25dd9975e68d0cb5aa1120c288333fc98731bd1dd12f561e468ea4728c042b89" +checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02" dependencies = [ "serde_derive", ] @@ -708,9 +705,9 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.193" +version = "1.0.195" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43576ca501357b9b071ac53cdc7da8ef0cbd9493d8df094cd821777ea6e894d3" +checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c" dependencies = [ "proc-macro2", "quote", @@ -719,9 +716,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.108" +version = "1.0.111" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b" +checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" dependencies = [ "indexmap", "itoa", @@ -755,9 +752,9 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" [[package]] name = "syn" -version = "2.0.41" +version = "2.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44c8b28c477cc3bf0e7966561e3460130e1255f7a1cf71931075f1c5e7a7e269" +checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" dependencies = [ "proc-macro2", "quote", @@ -782,18 +779,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.51" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f11c217e1416d6f036b870f14e0413d480dbf28edbee1f877abaf0206af43bb7" +checksum = "d54378c645627613241d077a3a79db965db602882668f9136ac42af9ecb730ad" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.51" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01742297787513b79cf8e29d1056ede1313e2420b7b3b15d0a768b4921f549df" +checksum = "fa0faa943b50f3db30a20aa7e265dbc66076993efed8463e8de414e5d06d3471" dependencies = [ "proc-macro2", "quote", diff --git a/Cargo.toml b/Cargo.toml index 0cbb355..5e019ee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,8 +17,8 @@ resolver = "2" [workspace.dependencies] ruff_fmt_config = { path = "crates/ruff_fmt_config" } - ruff_formatter = { git = "https://github.com/astral-sh/ruff.git", tag = "v0.1.9" } - ruff_python_formatter = { git = "https://github.com/astral-sh/ruff.git", tag = "v0.1.9" } + ruff_formatter = { git = "https://github.com/astral-sh/ruff.git", tag = "v0.1.12" } + ruff_python_formatter = { git = "https://github.com/astral-sh/ruff.git", tag = "v0.1.12" } serde = { version = "1.0" } serde_json = { version = "1.0" } wasm-bindgen = "0.2.89" diff --git a/crates/ruff_fmt_dprint/Cargo.toml b/crates/ruff_fmt_dprint/Cargo.toml index 45989c2..b72ac6c 100644 --- a/crates/ruff_fmt_dprint/Cargo.toml +++ b/crates/ruff_fmt_dprint/Cargo.toml @@ -19,7 +19,7 @@ crate-type = ["lib", "cdylib"] [dependencies] -anyhow = "1.0.77" +anyhow = "1" dprint-core = { version = "0.65.0", features = ["wasm"] } ruff_fmt_config = { workspace = true } ruff_formatter = { workspace = true } diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 748be27..1c8cfba 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.72.0" +channel = "1.75.0" profile = "default"