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:
Samson 2023-08-17 17:07:43 +02:00 committed by GitHub
parent 6622b91f79
commit c0bee7cb86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 139 additions and 124 deletions

View file

@ -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"
]
}

View file

@ -52,4 +52,3 @@ unicode-bidi = { workspace = true, features = ["with_serde"] }
unicode-script = { workspace = true }
webrender_api = { workspace = true }
xi-unicode = { workspace = true }

View file

@ -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 = []

View file

@ -13,4 +13,3 @@ path = "lib.rs"
[dependencies]
euclid = { workspace = true }
surfman = { workspace = true }

View file

@ -13,4 +13,3 @@ path = "lib.rs"
[dependencies]
euclid = { workspace = true }
webrender_api = { workspace = true }

View file

@ -34,4 +34,3 @@ webxr = { git = "https://github.com/servo/webxr", features = ["glwindow"] }
[build-dependencies]
gst-plugin-version-helper = "0.2"

View file

@ -6,4 +6,3 @@ documentation_style = "c99"
[export]
exclude = ["OutputDebugStringA"]

9
taplo.toml Normal file
View 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 = " "