mirror of
https://github.com/google/comprehensive-rust.git
synced 2024-12-01 10:51:06 +02:00
312e1515ec
Without this, several of the formatting directives in our `rustfmt.toml` file won’t have any effect. This will in turn lead to mismatches between the formatting done locally and in CI. This creates a dependency on `rustup`, but I think this is overall better than silently ignoring the formatting directives. From the discussion in #1682.
34 lines
845 B
JSON
34 lines
845 B
JSON
{
|
|
"lineWidth": 80,
|
|
"json": {},
|
|
"markdown": {
|
|
"textWrap": "always"
|
|
},
|
|
"exec": {
|
|
"commands": [{
|
|
"command": "yapf3",
|
|
"exts": ["py"]
|
|
}, {
|
|
"command": "rustup run nightly rustfmt --edition 2021",
|
|
"exts": ["rs"]
|
|
}, {
|
|
"command": "msgcat -",
|
|
"exts": ["po"]
|
|
}]
|
|
},
|
|
"excludes": [
|
|
"/book/",
|
|
"/theme/*.hbs",
|
|
"/theme/book.js",
|
|
"/third_party/",
|
|
"target/"
|
|
],
|
|
"plugins": [
|
|
"https://plugins.dprint.dev/exec-0.4.3.json@42343548b8022c99b1d750be6b894fe6b6c7ee25f72ae9f9082226dd2e515072",
|
|
"https://plugins.dprint.dev/json-0.17.4.wasm",
|
|
"https://plugins.dprint.dev/markdown-0.16.2.wasm",
|
|
"https://plugins.dprint.dev/toml-0.5.4.wasm",
|
|
"https://plugins.dprint.dev/prettier-0.27.0.json@3557a62b4507c55a47d8cde0683195b14d13c41dda66d0f0b0e111aed107e2fe"
|
|
]
|
|
}
|