зеркало из https://github.com/mozilla/sccache.git
chore: Make sure Cargo.toml is formatted
Signed-off-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
Родитель
17fa66b040
Коммит
092c856f09
|
@ -0,0 +1,30 @@
|
|||
include = ["Cargo.toml", "**/*.toml"]
|
||||
|
||||
[formatting]
|
||||
# Align consecutive entries vertically.
|
||||
align_entries = false
|
||||
# Append trailing commas for multi-line arrays.
|
||||
array_trailing_comma = true
|
||||
# Expand arrays to multiple lines that exceed the maximum column width.
|
||||
array_auto_expand = true
|
||||
# Collapse arrays that don't exceed the maximum column width and don't contain comments.
|
||||
array_auto_collapse = true
|
||||
# Omit white space padding from single-line arrays
|
||||
compact_arrays = true
|
||||
# Omit white space padding from the start and end of inline tables.
|
||||
compact_inline_tables = false
|
||||
# Maximum column width in characters, affects array expansion and collapse, this doesn't take whitespace into account.
|
||||
# Note that this is not set in stone, and works on a best-effort basis.
|
||||
column_width = 80
|
||||
# Indent based on tables and arrays of tables and their subtables, subtables out of order are not indented.
|
||||
indent_tables = false
|
||||
# The substring that is used for indentation, should be tabs or spaces (but technically can be anything).
|
||||
indent_string = ' '
|
||||
# Add trailing newline at the end of the file if not present.
|
||||
trailing_newline = true
|
||||
# Alphabetically reorder keys that are not separated by empty lines.
|
||||
reorder_keys = true
|
||||
# Maximum amount of allowed consecutive blank lines. This does not affect the whitespace at the end of the document, as it is always stripped.
|
||||
allowed_blank_lines = 1
|
||||
# Use CRLF for line endings.
|
||||
crlf = false
|
65
Cargo.toml
65
Cargo.toml
|
@ -38,10 +38,14 @@ directories = "5.0.0"
|
|||
encoding = "0.2"
|
||||
env_logger = "0.10"
|
||||
filetime = "0.2"
|
||||
flate2 = { version = "1.0", optional = true, default-features = false, features = ["rust_backend"] }
|
||||
flate2 = { version = "1.0", optional = true, default-features = false, features = [
|
||||
"rust_backend",
|
||||
] }
|
||||
fs-err = "2.9"
|
||||
futures = "0.3"
|
||||
gzp = { version = "0.11.3", default-features = false, features = ["deflate_rust"] }
|
||||
gzp = { version = "0.11.3", default-features = false, features = [
|
||||
"deflate_rust",
|
||||
] }
|
||||
http = "0.2"
|
||||
hyper = { version = "0.14.25", optional = true, features = ["server"] }
|
||||
is-terminal = "0.4.5"
|
||||
|
@ -56,7 +60,13 @@ number_prefix = "0.4"
|
|||
openssl = { version = "0.10.49", optional = true }
|
||||
rand = "0.8.4"
|
||||
regex = "1.7.3"
|
||||
reqwest = { version = "0.11", features = ["json", "blocking", "stream", "rustls-tls", "trust-dns"], optional = true }
|
||||
reqwest = { version = "0.11", features = [
|
||||
"json",
|
||||
"blocking",
|
||||
"stream",
|
||||
"rustls-tls",
|
||||
"trust-dns",
|
||||
], optional = true }
|
||||
retry = "2"
|
||||
semver = "1.0"
|
||||
sha2 = { version = "0.10.6", optional = true }
|
||||
|
@ -66,9 +76,20 @@ strip-ansi-escapes = "0.1"
|
|||
tar = "0.4.36"
|
||||
tempfile = "3"
|
||||
# trust-dns-resolver must be kept in sync with the version reqwest uses
|
||||
trust-dns-resolver = { version = "0.22.0", features = ["dnssec-ring", "dns-over-rustls", "dns-over-https-rustls"] }
|
||||
trust-dns-resolver = { version = "0.22.0", features = [
|
||||
"dnssec-ring",
|
||||
"dns-over-rustls",
|
||||
"dns-over-https-rustls",
|
||||
] }
|
||||
mime = "0.3"
|
||||
tokio = { version = "1", features = ["rt-multi-thread", "io-util", "time", "net", "process", "macros"] }
|
||||
tokio = { version = "1", features = [
|
||||
"rt-multi-thread",
|
||||
"io-util",
|
||||
"time",
|
||||
"net",
|
||||
"process",
|
||||
"macros",
|
||||
] }
|
||||
tokio-serde = "0.8"
|
||||
tokio-util = { version = "0.7", features = ["codec", "io"] }
|
||||
tower = "0.4"
|
||||
|
@ -83,7 +104,9 @@ zstd = "0.12"
|
|||
|
||||
# dist-server only
|
||||
nix = { version = "0.26.2", optional = true }
|
||||
rouille = { version = "3.5", optional = true, default-features = false, features = ["ssl"] }
|
||||
rouille = { version = "3.5", optional = true, default-features = false, features = [
|
||||
"ssl",
|
||||
] }
|
||||
syslog = { version = "6", optional = true }
|
||||
version-compare = { version = "0.1.1", optional = true }
|
||||
object = "0.30"
|
||||
|
@ -108,16 +131,20 @@ version = "0.1.10"
|
|||
|
||||
[target.'cfg(windows)'.dependencies.winapi]
|
||||
version = "0.3"
|
||||
features = [
|
||||
"fileapi",
|
||||
"handleapi",
|
||||
"stringapiset",
|
||||
"winnls",
|
||||
]
|
||||
features = ["fileapi", "handleapi", "stringapiset", "winnls"]
|
||||
|
||||
[features]
|
||||
default = ["all"]
|
||||
all = ["dist-client", "redis", "s3", "memcached", "gcs", "azure", "gha", "webdav"]
|
||||
all = [
|
||||
"dist-client",
|
||||
"redis",
|
||||
"s3",
|
||||
"memcached",
|
||||
"gcs",
|
||||
"azure",
|
||||
"gha",
|
||||
"webdav",
|
||||
]
|
||||
azure = ["opendal", "reqsign"]
|
||||
s3 = ["opendal", "reqsign"]
|
||||
gcs = ["opendal", "reqsign", "url", "reqwest/blocking"]
|
||||
|
@ -135,7 +162,17 @@ unstable = []
|
|||
# Enables distributed support in the sccache client
|
||||
dist-client = ["flate2", "hyper", "reqwest", "url", "sha2"]
|
||||
# Enables the sccache-dist binary
|
||||
dist-server = ["jwt", "flate2", "libmount", "nix", "openssl", "reqwest", "rouille", "syslog", "version-compare"]
|
||||
dist-server = [
|
||||
"jwt",
|
||||
"flate2",
|
||||
"libmount",
|
||||
"nix",
|
||||
"openssl",
|
||||
"reqwest",
|
||||
"rouille",
|
||||
"syslog",
|
||||
"version-compare",
|
||||
]
|
||||
# Enables dist tests with external requirements
|
||||
dist-tests = ["dist-client", "dist-server"]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче