Skip to content

Commit

Permalink
style: reformat all TOMLs with taplo
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jul 12, 2024
1 parent c62ad06 commit c94564f
Show file tree
Hide file tree
Showing 22 changed files with 116 additions and 96 deletions.
1 change: 0 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
[alias]
dev-install = "run -- --no-modify-path -y"

8 changes: 8 additions & 0 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include = ["**/*.toml"]

[[rule]]
include = ["**/Cargo.toml"]
keys = ["dependencies"]

[rule.formatting]
column_width = 160
47 changes: 25 additions & 22 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ build = "build.rs"
[features]
curl-backend = ["download/curl-backend"]
default = [
"curl-backend",
"reqwest-backend",
"reqwest-native-tls",
"reqwest-rustls-tls",
"curl-backend",
"reqwest-backend",
"reqwest-native-tls",
"reqwest-rustls-tls",
]

reqwest-backend = ["download/reqwest-backend"]
Expand All @@ -30,10 +30,10 @@ no-self-update = []

# Include an Opentelemetry sink for tracing events
otel = [
"dep:opentelemetry-otlp",
"dep:tracing-opentelemetry",
"dep:opentelemetry",
"dep:opentelemetry_sdk",
"dep:opentelemetry-otlp",
"dep:tracing-opentelemetry",
"dep:opentelemetry",
"dep:opentelemetry_sdk",
]

# Exports code dependent on private interfaces for the integration test suite
Expand Down Expand Up @@ -100,19 +100,19 @@ winreg = "0.52"

[target."cfg(windows)".dependencies.windows-sys]
features = [
"Win32_Foundation",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_IO",
"Win32_System_Ioctl",
"Win32_System_JobObjects",
"Win32_System_Kernel",
"Win32_System_LibraryLoader",
"Win32_System_SystemInformation",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_System_WindowsProgramming",
"Win32_Foundation",
"Win32_Security",
"Win32_Storage_FileSystem",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_IO",
"Win32_System_Ioctl",
"Win32_System_JobObjects",
"Win32_System_Kernel",
"Win32_System_LibraryLoader",
"Win32_System_SystemInformation",
"Win32_System_SystemServices",
"Win32_System_Threading",
"Win32_System_WindowsProgramming",
]
version = "0.52.0"

Expand Down Expand Up @@ -143,7 +143,10 @@ proptest = "1.1.0"
tempfile = "3.8"
termcolor = "1.2"
thiserror = "1.0"
tokio = { version = "1.26.0", default-features = false, features = ["macros", "rt-multi-thread"] }
tokio = { version = "1.26.0", default-features = false, features = [
"macros",
"rt-multi-thread",
] }
tokio-retry = { version = "0.3.0" }
tokio-stream = { version = "0.1.14" }
tracing = "0.1"
Expand Down
5 changes: 4 additions & 1 deletion download/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ url.workspace = true

[dev-dependencies]
http-body-util = "0.1.0"
hyper = { version = "1.0", default-features = false, features = ["server", "http1"] }
hyper = { version = "1.0", default-features = false, features = [
"server",
"http1",
] }
hyper-util = { version = "0.1.1", features = ["tokio"] }
tempfile.workspace = true
105 changes: 52 additions & 53 deletions src/dist/manifest/tests/channel-rust-nightly-example.toml
Original file line number Diff line number Diff line change
@@ -1,60 +1,59 @@
manifest-version = "2"
date = "2015-10-10"
[pkg.rust]
version = "rustc 1.3.0 (9a92aaf19 2015-09-15)"
[pkg.rust.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
[[pkg.rust.target.x86_64-unknown-linux-gnu.components]]
pkg = "rustc"
target = "x86_64-unknown-linux-gnu"
[[pkg.rust.target.x86_64-unknown-linux-gnu.components]]
pkg = "rust-docs"
target = "x86_64-unknown-linux-gnu"
[[pkg.rust.target.x86_64-unknown-linux-gnu.components]]
pkg = "cargo"
target = "x86_64-unknown-linux-gnu"
[[pkg.rust.target.x86_64-unknown-linux-gnu.components]]
pkg = "rust-std"
target = "x86_64-unknown-linux-gnu"
# extensions are rust-std or rust-docs that aren't in the rust tarball's component list
[[pkg.rust.target.x86_64-unknown-linux-gnu.extensions]]
pkg = "rust-std"
target = "x86_64-unknown-linux-musl"
[[pkg.rust.target.x86_64-unknown-linux-gnu.extensions]]
pkg = "rust-std"
target = "i686-unknown-linux-gnu"
version = "rustc 1.3.0 (9a92aaf19 2015-09-15)"
[pkg.rust.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
[[pkg.rust.target.x86_64-unknown-linux-gnu.components]]
pkg = "rustc"
target = "x86_64-unknown-linux-gnu"
[[pkg.rust.target.x86_64-unknown-linux-gnu.components]]
pkg = "rust-docs"
target = "x86_64-unknown-linux-gnu"
[[pkg.rust.target.x86_64-unknown-linux-gnu.components]]
pkg = "cargo"
target = "x86_64-unknown-linux-gnu"
[[pkg.rust.target.x86_64-unknown-linux-gnu.components]]
pkg = "rust-std"
target = "x86_64-unknown-linux-gnu"
# extensions are rust-std or rust-docs that aren't in the rust tarball's component list
[[pkg.rust.target.x86_64-unknown-linux-gnu.extensions]]
pkg = "rust-std"
target = "x86_64-unknown-linux-musl"
[[pkg.rust.target.x86_64-unknown-linux-gnu.extensions]]
pkg = "rust-std"
target = "i686-unknown-linux-gnu"
[pkg.rustc]
version = "rustc 1.3.0 (9a92aaf19 2015-09-15)"
[pkg.rustc.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
version = "rustc 1.3.0 (9a92aaf19 2015-09-15)"
[pkg.rustc.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
[pkg.cargo]
version = "cargo 0.4.0-nightly (553b363 2015-08-03)"
[pkg.cargo.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
version = "cargo 0.4.0-nightly (553b363 2015-08-03)"
[pkg.cargo.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
[pkg.rust-std]
version = "rustc 1.3.0 (9a92aaf19 2015-09-15)"
[pkg.rust-std.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
[pkg.rust-std.target.x86_64-unknown-linux-musl]
available = true
url = "example.com"
hash = "..."
[pkg.rust-std.target.i686-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
version = "rustc 1.3.0 (9a92aaf19 2015-09-15)"
[pkg.rust-std.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
[pkg.rust-std.target.x86_64-unknown-linux-musl]
available = true
url = "example.com"
hash = "..."
[pkg.rust-std.target.i686-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
[pkg.rust-docs]
version = "rustc 1.3.0 (9a92aaf19 2015-09-15)"
[pkg.rust-docs.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."

version = "rustc 1.3.0 (9a92aaf19 2015-09-15)"
[pkg.rust-docs.target.x86_64-unknown-linux-gnu]
available = true
url = "example.com"
hash = "..."
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["check","--help"]
args = ["check", "--help"]
stdout = """
...
Check for updates to Rust toolchains and rustup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["override","--help"]
args = ["override", "--help"]
stdout = """
...
Modify toolchain overrides for directories
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["override","list","--help"]
args = ["override", "list", "--help"]
stdout = """
...
List directory toolchain overrides
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["self","update","--help"]
args = ["self", "update", "--help"]
stdout = """
...
Download and install updates to rustup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["set","--help"]
args = ["set", "--help"]
stdout = """
...
Alter rustup settings
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["show","active-toolchain","--help"]
args = ["show", "active-toolchain", "--help"]
stdout = """
...
Show the active toolchain
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["show","--help"]
args = ["show", "--help"]
stdout = """
...
Show the active and installed toolchains or profiles
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["show","home","--help"]
args = ["show", "home", "--help"]
stdout = """
...
Display the computed value of RUSTUP_HOME
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["show","profile","--help"]
args = ["show", "profile", "--help"]
stdout = """
...
Show the default profile used for the `rustup install` command
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["target","--help"]
args = ["target", "--help"]
stdout = """
...
Modify a toolchain's supported targets
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["toolchain","--help"]
args = ["toolchain", "--help"]
stdout = """
...
Modify or query the installed toolchains
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["toolchain","list","--help"]
args = ["toolchain", "list", "--help"]
stdout = """
...
List installed toolchains
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["toolchain","uninstall","--help"]
args = ["toolchain", "uninstall", "--help"]
stdout = """
...
Uninstall a toolchain
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["up","--help"]
args = ["up", "--help"]
stdout = """
...
Update Rust toolchains and rustup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["update","--help"]
args = ["update", "--help"]
stdout = """
...
Update Rust toolchains and rustup
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin.name = "rustup"
args = ["upgrade","--help"]
args = ["upgrade", "--help"]
stdout = """
...
Update Rust toolchains and rustup
Expand Down
14 changes: 11 additions & 3 deletions triagebot.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
[relabel]

allow-unauthenticated = [
"bug", "duplicate", "enhancement", "forwarded",
"performance", "question", "security", "tracking", "website",
"O-*", "A-*"
"bug",
"duplicate",
"enhancement",
"forwarded",
"performance",
"question",
"security",
"tracking",
"website",
"O-*",
"A-*",
]

[assign]

0 comments on commit c94564f

Please sign in to comment.