From 193ea42ea1d36228717839a25d1badf415e71320 Mon Sep 17 00:00:00 2001 From: murilo ijanc Date: Thu, 20 Nov 2025 19:08:49 -0300 Subject: Add support to exec rustfmt --- dprint.json | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/dprint.json b/dprint.json index 284a8ee..a2a3c8f 100644 --- a/dprint.json +++ b/dprint.json @@ -1,20 +1,25 @@ { - "lineWidth": 79, "markdown": { - "textWrap": "always" - }, - "json": { - "indentWidth": 2 }, "toml": { }, "excludes": [ - "CHANGELOG.md", "deny.toml" ], + "exec": { + "cwd": "${configDir}", + "commands": [{ + "command": "rustfmt", + "exts": ["rs"], + "cacheKeyFiles": [ + ".rustfmt.toml", + "rust-toolchain.toml" + ] + }] + }, "plugins": [ - "https://plugins.dprint.dev/json-0.21.0.wasm", "https://plugins.dprint.dev/markdown-0.20.0.wasm", - "https://plugins.dprint.dev/toml-0.7.0.wasm" + "https://plugins.dprint.dev/toml-0.7.0.wasm", + "https://plugins.dprint.dev/exec-0.6.0.json@a054130d458f124f9b5c91484833828950723a5af3f8ff2bd1523bd47b83b364" ] } -- cgit v1.2.3