mirror of
https://github.com/servo/servo.git
synced 2025-06-04 07:35:36 +00:00
Format toml files (#30112)
* Add taplo fmt config for toml fmt * fmt toml files * Add even-better-toml to extensions recommendations
This commit is contained in:
parent
6622b91f79
commit
c0bee7cb86
19 changed files with 139 additions and 124 deletions
5
.vscode/extensions.json
vendored
5
.vscode/extensions.json
vendored
|
@ -1,7 +1,6 @@
|
|||
{
|
||||
// See http://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
|
||||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
|
||||
|
||||
// List of extensions which should be recommended for users of this workspace.
|
||||
"recommendations": [
|
||||
// Trim only touched lines.
|
||||
|
@ -15,6 +14,8 @@
|
|||
// CSS support for HTML documents.
|
||||
"ecmel.vscode-html-css",
|
||||
// IDL language support
|
||||
"mythmon.idl"
|
||||
"mythmon.idl",
|
||||
// TOML files
|
||||
"tamasfe.even-better-toml"
|
||||
]
|
||||
}
|
|
@ -52,4 +52,3 @@ unicode-bidi = { workspace = true, features = ["with_serde"] }
|
|||
unicode-script = { workspace = true }
|
||||
webrender_api = { workspace = true }
|
||||
xi-unicode = { workspace = true }
|
||||
|
||||
|
|
|
@ -18,10 +18,20 @@ doctest = false
|
|||
|
||||
[features]
|
||||
gecko = ["style_traits/gecko", "bindgen", "regex", "toml", "num_cpus", "mozbuild"]
|
||||
servo = ["serde", "style_traits/servo", "servo_atoms", "servo_config", "html5ever",
|
||||
"cssparser/serde", "encoding_rs", "malloc_size_of/servo", "servo_url",
|
||||
"string_cache", "to_shmem/servo",
|
||||
"servo_arc/servo"]
|
||||
servo = [
|
||||
"serde",
|
||||
"style_traits/servo",
|
||||
"servo_atoms",
|
||||
"servo_config",
|
||||
"html5ever",
|
||||
"cssparser/serde",
|
||||
"encoding_rs",
|
||||
"malloc_size_of/servo",
|
||||
"servo_url",
|
||||
"string_cache",
|
||||
"to_shmem/servo",
|
||||
"servo_arc/servo",
|
||||
]
|
||||
gecko_debug = []
|
||||
gecko_refcount_logging = []
|
||||
|
||||
|
|
|
@ -13,4 +13,3 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
euclid = { workspace = true }
|
||||
surfman = { workspace = true }
|
||||
|
||||
|
|
|
@ -13,4 +13,3 @@ path = "lib.rs"
|
|||
[dependencies]
|
||||
euclid = { workspace = true }
|
||||
webrender_api = { workspace = true }
|
||||
|
||||
|
|
|
@ -34,4 +34,3 @@ webxr = { git = "https://github.com/servo/webxr", features = ["glwindow"] }
|
|||
|
||||
[build-dependencies]
|
||||
gst-plugin-version-helper = "0.2"
|
||||
|
||||
|
|
|
@ -6,4 +6,3 @@ documentation_style = "c99"
|
|||
|
||||
[export]
|
||||
exclude = ["OutputDebugStringA"]
|
||||
|
||||
|
|
9
taplo.toml
Normal file
9
taplo.toml
Normal file
|
@ -0,0 +1,9 @@
|
|||
# upstream files we should not format
|
||||
exclude = ["third_party/**", "tests/**"]
|
||||
|
||||
[formatting]
|
||||
array_auto_collapse = false
|
||||
array_auto_expand = false
|
||||
align_comments = false
|
||||
column_width = 120
|
||||
indent_string = " "
|
Loading…
Add table
Add a link
Reference in a new issue