sccache/Cargo.lock

3476 строки
83 KiB
Plaintext
Исходник Обычный вид История

# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
2020-06-11 04:40:05 +03:00
2020-12-08 08:07:09 +03:00
[[package]]
name = "adler"
version = "1.0.2"
2020-12-08 08:07:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
2020-12-08 08:07:09 +03:00
[[package]]
name = "ahash"
version = "0.7.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47"
dependencies = [
"getrandom 0.2.8",
"once_cell",
"version_check",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "aho-corasick"
version = "0.7.20"
2016-05-12 22:03:37 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac"
dependencies = [
"memchr",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "android_system_properties"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
dependencies = [
"libc",
]
[[package]]
name = "anstyle"
version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23ea9e81bd02e310c216d080f6223c179012256e5151c41db88d12c88a1684d2"
Change error handling from `error-chain` to `anyhow`. Because `anyhow` is what seems to be the most common error library for applications these days. - The global `Result` type is now `anyhow::Result`. - In errors.rs, there's no need for any boilerplate to wrap all the foreign errors seen: `hyper::Error`, `io:Error`, etc. - The internal errors that we care about are now separate types, rather than within an enum, because that works better when we need to check for them by downcasting an `anyhow::Error`. And it's nice to write `Err(ProcessError(output))` rather than `Err(ErrorKind::ProcessError(output))`. - The `Which` error was unused and is removed. - The most common change is that `.chain_err()` is changed to `.context`/`.with_context()`. - `anyhow!` is used where necessary, mostly to promote a string to an `anyhow::Error`. - Errors within futures: `FutureChainErr`/`.chain_err()` is changed to `FutureContext`/`fcontext`/`fwith_context`. The `f` prefix is because I found it helpful to distinguish these cases from the simple error cases. - `BuilderIncoming`, `SchedulerIncoming`, `ServerIncoming` no longer have an `Error` associated type, we just use `anyhow::Error` uniformly. - `e.display_chain()` changes to `format!("{:?}")`, because they both print the full cause chain, and the backtrace (if present). - A few places where the old code was doing something weird or more complicated than seemed necessary, I generally tried to replace it with something simpler and more typical. Two places used `with_boxed_chain()`, which doesn't have an equivalent in `anyhow`, so I did my best to do something reasonable. - In `src/server.rs` we now import `std::task::Context` as `TaskContext` to avoid overshadowing the `anyhow::Context` trait :(
2020-06-02 10:22:31 +03:00
[[package]]
name = "anyhow"
version = "1.0.70"
Change error handling from `error-chain` to `anyhow`. Because `anyhow` is what seems to be the most common error library for applications these days. - The global `Result` type is now `anyhow::Result`. - In errors.rs, there's no need for any boilerplate to wrap all the foreign errors seen: `hyper::Error`, `io:Error`, etc. - The internal errors that we care about are now separate types, rather than within an enum, because that works better when we need to check for them by downcasting an `anyhow::Error`. And it's nice to write `Err(ProcessError(output))` rather than `Err(ErrorKind::ProcessError(output))`. - The `Which` error was unused and is removed. - The most common change is that `.chain_err()` is changed to `.context`/`.with_context()`. - `anyhow!` is used where necessary, mostly to promote a string to an `anyhow::Error`. - Errors within futures: `FutureChainErr`/`.chain_err()` is changed to `FutureContext`/`fcontext`/`fwith_context`. The `f` prefix is because I found it helpful to distinguish these cases from the simple error cases. - `BuilderIncoming`, `SchedulerIncoming`, `ServerIncoming` no longer have an `Error` associated type, we just use `anyhow::Error` uniformly. - `e.display_chain()` changes to `format!("{:?}")`, because they both print the full cause chain, and the backtrace (if present). - A few places where the old code was doing something weird or more complicated than seemed necessary, I generally tried to replace it with something simpler and more typical. Two places used `with_boxed_chain()`, which doesn't have an equivalent in `anyhow`, so I did my best to do something reasonable. - In `src/server.rs` we now import `std::task::Context` as `TaskContext` to avoid overshadowing the `anyhow::Context` trait :(
2020-06-02 10:22:31 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7de8ce5e0f9f8d88245311066a578d72b7af3e7088f32783804676302df237e4"
Change error handling from `error-chain` to `anyhow`. Because `anyhow` is what seems to be the most common error library for applications these days. - The global `Result` type is now `anyhow::Result`. - In errors.rs, there's no need for any boilerplate to wrap all the foreign errors seen: `hyper::Error`, `io:Error`, etc. - The internal errors that we care about are now separate types, rather than within an enum, because that works better when we need to check for them by downcasting an `anyhow::Error`. And it's nice to write `Err(ProcessError(output))` rather than `Err(ErrorKind::ProcessError(output))`. - The `Which` error was unused and is removed. - The most common change is that `.chain_err()` is changed to `.context`/`.with_context()`. - `anyhow!` is used where necessary, mostly to promote a string to an `anyhow::Error`. - Errors within futures: `FutureChainErr`/`.chain_err()` is changed to `FutureContext`/`fcontext`/`fwith_context`. The `f` prefix is because I found it helpful to distinguish these cases from the simple error cases. - `BuilderIncoming`, `SchedulerIncoming`, `ServerIncoming` no longer have an `Error` associated type, we just use `anyhow::Error` uniformly. - `e.display_chain()` changes to `format!("{:?}")`, because they both print the full cause chain, and the backtrace (if present). - A few places where the old code was doing something weird or more complicated than seemed necessary, I generally tried to replace it with something simpler and more typical. Two places used `with_boxed_chain()`, which doesn't have an equivalent in `anyhow`, so I did my best to do something reasonable. - In `src/server.rs` we now import `std::task::Context` as `TaskContext` to avoid overshadowing the `anyhow::Context` trait :(
2020-06-02 10:22:31 +03:00
[[package]]
name = "ar"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d67af77d68a931ecd5cbd8a3b5987d63a1d1d1278f7f6a60ae33db485cdebb69"
[[package]]
name = "arc-swap"
version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "983cd8b9d4b02a6dc6ffa557262eb5858a27a0038ffffe21a0f133eaa819a164"
2019-12-10 00:17:20 +03:00
[[package]]
name = "arrayref"
2020-04-28 07:55:50 +03:00
version = "0.3.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-04-28 07:55:50 +03:00
checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544"
2018-08-27 17:23:32 +03:00
[[package]]
name = "arrayvec"
2020-12-08 08:07:09 +03:00
version = "0.5.2"
2018-08-27 17:23:32 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-12-08 08:07:09 +03:00
checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
2018-08-27 17:23:32 +03:00
[[package]]
name = "arrayvec"
version = "0.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"
2018-08-27 17:23:32 +03:00
[[package]]
name = "ascii"
version = "1.1.0"
2018-08-27 17:23:32 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d92bec98840b8f03a5ff5413de5293bfcd8bf96467cf5452609f939ec6f5de16"
2018-08-27 17:23:32 +03:00
[[package]]
2018-07-26 22:52:50 +03:00
name = "assert_cmd"
version = "2.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9834fcc22e0874394a010230586367d4a3e9f11b560f469262678547e1d2575e"
dependencies = [
"bstr",
"doc-comment",
"predicates 2.1.5",
"predicates-core",
"predicates-tree",
"wait-timeout",
]
[[package]]
name = "async-compat"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b48b4ff0c2026db683dea961cd8ea874737f56cffca86fa84415eaddc51c00d"
dependencies = [
"futures-core",
"futures-io",
"once_cell",
"pin-project-lite",
"tokio",
]
[[package]]
name = "async-trait"
version = "0.1.66"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b84f9ebcc6c1f5b8cb160f6990096a5c127f423fcb6e1ccc46c370cbdfb75dfc"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
2017-04-05 17:42:06 +03:00
[[package]]
name = "atty"
2020-04-28 07:55:50 +03:00
version = "0.2.14"
2017-04-05 17:42:06 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-04-28 07:55:50 +03:00
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
dependencies = [
"hermit-abi 0.1.19",
"libc",
"winapi",
]
2017-04-05 17:42:06 +03:00
2020-04-28 07:55:50 +03:00
[[package]]
name = "autocfg"
version = "1.1.0"
2020-04-28 07:55:50 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
2020-04-28 07:55:50 +03:00
[[package]]
name = "backon"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f34fac4d7cdaefa2deded0eda2d5d59dbfd43370ff3f856209e72340ae84c294"
dependencies = [
"futures",
"pin-project",
"rand 0.8.5",
"tokio",
]
[[package]]
name = "base64"
version = "0.13.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
[[package]]
name = "base64"
version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a4a4ddaa51a5bc52a6948f74c06d20aaaddb71924eab79b8c97a8c556e942d6a"
[[package]]
name = "base64ct"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b"
[[package]]
name = "bb8"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1627eccf3aa91405435ba240be23513eeca466b5dc33866422672264de061582"
dependencies = [
"async-trait",
"futures-channel",
"futures-util",
"parking_lot",
"tokio",
]
[[package]]
name = "bincode"
version = "1.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
dependencies = [
"serde",
]
[[package]]
name = "bitflags"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "blake3"
version = "1.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "42ae2468a89544a466886840aa467a25b766499f4f04bf7d9fcd10ecee9fccef"
dependencies = [
"arrayref",
"arrayvec 0.7.2",
"cc",
"cfg-if 1.0.0",
"constant_time_eq",
"digest",
]
2019-12-10 00:17:20 +03:00
[[package]]
name = "block-buffer"
version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "69cce20737498f97b993470a6e536b8523f0af7892a4f928cceb1ac5e52ebe7e"
dependencies = [
"generic-array",
]
[[package]]
name = "bstr"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fca0852af221f458706eb0725c03e4ed6c46af9ac98e6a689d5e634215d594dd"
dependencies = [
"memchr",
"once_cell",
"regex-automata",
"serde",
]
[[package]]
name = "buf_redux"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b953a6887648bb07a535631f2bc00fbdb2a2216f135552cb3f534ed136b9c07f"
dependencies = [
"memchr",
"safemem",
]
[[package]]
name = "bumpalo"
version = "3.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba"
[[package]]
name = "byteorder"
version = "1.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
2021-01-08 10:26:06 +03:00
[[package]]
name = "bytes"
version = "1.4.0"
2021-01-08 10:26:06 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be"
[[package]]
name = "cc"
version = "1.0.79"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f"
dependencies = [
"jobserver",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "cfg-if"
version = "0.1.10"
2016-05-12 22:03:37 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
2016-05-12 22:03:37 +03:00
2020-12-08 08:07:09 +03:00
[[package]]
name = "cfg-if"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
2018-01-07 18:33:04 +03:00
[[package]]
name = "chrono"
version = "0.4.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "16b0a3d9ed01224b22057780a37bb8c5dbfe1be8ba48678e7bf57ec4b385411f"
dependencies = [
"iana-time-zone",
"js-sys",
"num-integer",
"num-traits",
"serde",
2022-11-30 08:59:42 +03:00
"time 0.1.43",
"wasm-bindgen",
"winapi",
]
[[package]]
name = "chunked_transfer"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fff857943da45f546682664a79488be82e69e43c1a7a2307679ab9afb3a66d2e"
2016-05-12 22:03:37 +03:00
[[package]]
name = "clap"
version = "4.0.32"
2016-05-12 22:03:37 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7db700bc935f9e43e88d00b0850dae18a63773cfbec6d8e070fccf7fef89a39"
dependencies = [
"bitflags",
2022-03-11 07:33:09 +03:00
"clap_derive",
"clap_lex",
"is-terminal",
2022-03-11 07:33:09 +03:00
"once_cell",
"strsim",
2022-03-11 07:33:09 +03:00
"termcolor",
2022-04-01 06:38:11 +03:00
"terminal_size",
2022-03-11 07:33:09 +03:00
]
[[package]]
name = "clap_derive"
version = "4.0.21"
2022-03-11 07:33:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0177313f9f02afc995627906bbd8967e2be069f5261954222dac78290c2b9014"
2022-03-11 07:33:09 +03:00
dependencies = [
"heck",
"proc-macro-error",
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "clap_lex"
version = "0.3.0"
2022-03-11 07:33:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d4198f73e42b4936b35b5bb248d81d2b595ecb170da0bac7655c54eedfa8da8"
2022-03-11 07:33:09 +03:00
dependencies = [
"os_str_bytes",
]
2016-05-12 22:03:37 +03:00
2018-08-27 17:23:32 +03:00
[[package]]
name = "combine"
version = "4.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "35ed6e9d84f0b51a7f52daf1c7d71dd136fd7a3f41a8462b8cdb8c78d920fad4"
dependencies = [
2022-11-14 08:25:38 +03:00
"bytes",
"futures-core",
"memchr",
"pin-project-lite",
"tokio",
"tokio-util",
]
[[package]]
name = "const-oid"
version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "520fbf3c07483f94e3e3ca9d0cfd913d7718ef2483d2cfd91c0d9e91474ab913"
[[package]]
2019-12-10 00:17:20 +03:00
name = "constant_time_eq"
version = "0.2.4"
2019-12-10 00:17:20 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f3ad85c1f65dc7b37604eb0e89748faf0b9653065f2a8ef69f96a687ec1e9279"
2019-12-10 00:17:20 +03:00
[[package]]
name = "core-foundation"
version = "0.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
dependencies = [
"core-foundation-sys",
"libc",
]
2019-12-10 00:17:20 +03:00
[[package]]
name = "core-foundation-sys"
version = "0.8.3"
2019-12-10 00:17:20 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
2019-12-10 00:17:20 +03:00
[[package]]
name = "core_affinity"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4436406e93f52cce33bfba4be067a9f7229da44a634c385e4b22cdfaca5f84cc"
dependencies = [
"libc",
"num_cpus",
"winapi",
]
[[package]]
name = "cpufeatures"
version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "28d997bd5e24a5928dd43e46dc529867e207907fe0b239c3477d924f7f2ca320"
dependencies = [
"libc",
]
[[package]]
name = "crc32fast"
version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
dependencies = [
2020-12-08 08:07:09 +03:00
"cfg-if 1.0.0",
]
2020-12-08 08:07:09 +03:00
[[package]]
name = "crossbeam-utils"
version = "0.8.15"
2020-12-08 08:07:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c063cd8cc95f5c377ed0d4b49a4b21f632396ff690e8470c29b3359b346984b"
2020-12-08 08:07:09 +03:00
dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "crypto-common"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
dependencies = [
"generic-array",
"typenum",
2020-12-08 08:07:09 +03:00
]
2016-10-26 23:22:52 +03:00
[[package]]
name = "daemonize"
version = "0.5.0"
2016-10-26 23:22:52 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab8bfdaacb3c887a54d41bdf48d3af8873b3f5566469f8ba21b92057509f116e"
dependencies = [
"libc",
]
[[package]]
name = "dashmap"
version = "5.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "907076dfda823b0b36d2a1bb5f90c96660a5bbcd7729e10727f07858f22c4edc"
dependencies = [
"cfg-if 1.0.0",
"hashbrown",
"lock_api",
"once_cell",
"parking_lot_core",
]
[[package]]
name = "der"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1a467a65c5e759bce6e65eaf91cc29f466cdc57cb65777bd646872a8a1fd4de"
dependencies = [
"const-oid",
"pem-rfc7468",
"zeroize",
]
[[package]]
name = "difflib"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6184e33543162437515c2e2b48714794e37845ec9851711914eec9d308f6ebe8"
2020-12-08 08:07:09 +03:00
[[package]]
name = "digest"
version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8168378f4e5023e7218c89c891c0fd8ecdb5e5e4f18cb78f38cf245dd021e76f"
dependencies = [
"block-buffer",
"const-oid",
"crypto-common",
"subtle",
]
[[package]]
name = "directories"
version = "4.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f51c5d4ddabd36886dd3e1438cb358cdcb0d7c499cb99cb4ac2e38e18b5cb210"
dependencies = [
"dirs-sys",
]
2019-12-10 00:17:20 +03:00
[[package]]
name = "dirs"
version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca3aa72a6f96ea37bbc5aa912f6788242832f75369bdfdadcb0e38423f100059"
dependencies = [
"dirs-sys",
]
[[package]]
name = "dirs-sys"
version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1b1d1d91c932ef41c0f2663aa8b0ca0342d444d842c06914aa0a7e352d0bada6"
dependencies = [
"libc",
"redox_users",
"winapi",
]
[[package]]
name = "displaydoc"
version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adc2ab4d5a16117f9029e9a6b5e4e79f4c67f6519bc134210d4d4a04ba31f41b"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "dlv-list"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0688c2a7f92e427f44895cd63841bff7b29f8d7a1648b9e7e07a4a365b2e1257"
[[package]]
name = "doc-comment"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
[[package]]
name = "either"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797"
[[package]]
name = "encoding"
version = "0.2.33"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec"
dependencies = [
"encoding-index-japanese",
"encoding-index-korean",
"encoding-index-simpchinese",
"encoding-index-singlebyte",
"encoding-index-tradchinese",
]
[[package]]
name = "encoding-index-japanese"
version = "1.20141219.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04e8b2ff42e9a05335dbf8b5c6f7567e5591d0d916ccef4e0b1710d32a0d0c91"
dependencies = [
"encoding_index_tests",
]
[[package]]
name = "encoding-index-korean"
version = "1.20141219.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4dc33fb8e6bcba213fe2f14275f0963fd16f0a02c878e3095ecfdf5bee529d81"
dependencies = [
"encoding_index_tests",
]
[[package]]
name = "encoding-index-simpchinese"
version = "1.20141219.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d87a7194909b9118fc707194baa434a4e3b0fb6a5a757c73c3adb07aa25031f7"
dependencies = [
"encoding_index_tests",
]
[[package]]
name = "encoding-index-singlebyte"
version = "1.20141219.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a"
dependencies = [
"encoding_index_tests",
]
[[package]]
name = "encoding-index-tradchinese"
version = "1.20141219.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18"
dependencies = [
"encoding_index_tests",
]
[[package]]
name = "encoding_index_tests"
version = "0.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569"
[[package]]
name = "encoding_rs"
version = "0.8.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b"
dependencies = [
2020-12-08 08:07:09 +03:00
"cfg-if 1.0.0",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "env_logger"
version = "0.10.0"
2016-05-12 22:03:37 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0"
dependencies = [
"humantime",
"is-terminal",
"log",
"regex",
"termcolor",
]
2016-05-12 22:03:37 +03:00
2022-04-01 06:38:11 +03:00
[[package]]
name = "errno"
version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1"
dependencies = [
"errno-dragonfly",
"libc",
"winapi",
2022-04-01 06:38:11 +03:00
]
[[package]]
name = "errno-dragonfly"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"
dependencies = [
"cc",
"libc",
]
[[package]]
name = "error-chain"
2020-12-08 08:07:09 +03:00
version = "0.12.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-12-08 08:07:09 +03:00
checksum = "2d2f06b9cac1506ece98fe3231e3cc9c4410ec3d5b1f24ae1c8946f0742cdefc"
dependencies = [
"version_check",
]
[[package]]
name = "fastrand"
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499"
dependencies = [
"instant",
]
2018-04-12 04:25:15 +03:00
[[package]]
name = "filetime"
version = "0.2.20"
2018-04-12 04:25:15 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a3de6e8d11b22ff9edc6d916f890800597d60f8b2da1caf2955c274638d6412"
dependencies = [
2020-12-08 08:07:09 +03:00
"cfg-if 1.0.0",
"libc",
"redox_syscall",
"windows-sys 0.45.0",
]
2018-04-12 04:25:15 +03:00
[[package]]
name = "flagset"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cda653ca797810c02f7ca4b804b40b8b95ae046eb989d356bce17919a8c25499"
[[package]]
name = "flate2"
version = "1.0.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8a2db397cb1c8772f31494cb8917e48cd1e64f0fa7efac59fbd741a0a8ce841"
dependencies = [
"crc32fast",
"miniz_oxide",
]
2018-07-26 22:52:50 +03:00
[[package]]
name = "float-cmp"
version = "0.9.0"
2018-07-26 22:52:50 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4"
dependencies = [
"num-traits",
]
2018-07-26 22:52:50 +03:00
[[package]]
name = "flume"
version = "0.10.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1657b4441c3403d9f7b3409e47575237dac27b1b5726df654a6ecbf92f0f7577"
dependencies = [
"futures-core",
"futures-sink",
"nanorand",
"pin-project",
"spin 0.9.4",
]
[[package]]
name = "fnv"
2020-06-11 04:40:05 +03:00
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-06-11 04:40:05 +03:00
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
name = "foreign-types"
2018-01-07 18:33:04 +03:00
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
dependencies = [
"foreign-types-shared",
]
[[package]]
2018-01-07 18:33:04 +03:00
name = "foreign-types-shared"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
2020-12-08 08:07:09 +03:00
[[package]]
name = "form_urlencoded"
version = "1.1.0"
2020-12-08 08:07:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8"
2020-12-08 08:07:09 +03:00
dependencies = [
"percent-encoding",
2020-12-08 08:07:09 +03:00
]
[[package]]
name = "fs-err"
version = "2.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0845fa252299212f0389d64ba26f34fa32cfe41588355f21ed507c59a0f64541"
[[package]]
name = "futures"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "531ac96c6ff5fd7c62263c5e3c67a603af4fcaee2e1a0ae5565ba3a11e69e549"
dependencies = [
"futures-channel",
"futures-core",
"futures-executor",
"futures-io",
"futures-sink",
"futures-task",
"futures-util",
]
[[package]]
name = "futures-channel"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "164713a5a0dcc3e7b4b1ed7d3b433cabc18025386f9339346e8daf15963cf7ac"
dependencies = [
"futures-core",
"futures-sink",
]
[[package]]
name = "futures-core"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "86d7a0c1aa76363dac491de0ee99faf6941128376f1cf96f07db7603b7de69dd"
[[package]]
name = "futures-executor"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1997dd9df74cdac935c76252744c1ed5794fac083242ea4fe77ef3ed60ba0f83"
dependencies = [
"futures-core",
"futures-task",
"futures-util",
]
[[package]]
name = "futures-io"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "89d422fa3cbe3b40dca574ab087abb5bc98258ea57eea3fd6f1fa7162c778b91"
[[package]]
name = "futures-macro"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3eb14ed937631bd8b8b8977f2c198443447a8355b6e3ca599f38c975e5a963b6"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "futures-sink"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec93083a4aecafb2a80a885c9de1f0ccae9dbd32c2bb54b0c3a65690e0b8d2f2"
[[package]]
name = "futures-task"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd65540d33b37b16542a0438c12e6aeead10d4ac5d05bd3f805b8f35ab592879"
[[package]]
name = "futures-util"
version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ef6b17e481503ec85211fed8f39d1970f128935ca1f814cd32ac4a6842e84ab"
dependencies = [
"futures-channel",
"futures-core",
"futures-io",
"futures-macro",
"futures-sink",
"futures-task",
"memchr",
"pin-project-lite",
"pin-utils",
"slab",
]
2020-12-08 08:07:09 +03:00
[[package]]
name = "generic-array"
version = "0.14.6"
2020-12-08 08:07:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bff49e947297f3312447abdca79f45f4738097cc82b06e72054d2223f601f1b9"
2020-12-08 08:07:09 +03:00
dependencies = [
"typenum",
"version_check",
2020-12-08 08:07:09 +03:00
]
[[package]]
name = "getrandom"
2021-01-08 10:26:06 +03:00
version = "0.1.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
2021-01-08 10:26:06 +03:00
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
dependencies = [
2021-01-08 10:26:06 +03:00
"cfg-if 1.0.0",
"libc",
2020-12-08 08:07:09 +03:00
"wasi 0.9.0+wasi-snapshot-preview1",
]
2020-06-11 04:40:05 +03:00
[[package]]
name = "getrandom"
version = "0.2.8"
2020-06-11 04:40:05 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31"
dependencies = [
"cfg-if 1.0.0",
"js-sys",
"libc",
"wasi 0.11.0+wasi-snapshot-preview1",
"wasm-bindgen",
]
[[package]]
name = "gzp"
version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e7c65d1899521a11810501b50b898464d133e1afc96703cff57726964cfa7baf"
dependencies = [
"byteorder",
2022-11-14 08:25:38 +03:00
"bytes",
"core_affinity",
"flate2",
"flume",
"num_cpus",
"thiserror",
]
2020-06-11 04:40:05 +03:00
[[package]]
name = "h2"
version = "0.3.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5f9f29bc9dda355256b2916cf526ab02ce0aeaaaf2bad60d65ef3f12f11dd0f4"
dependencies = [
2022-11-14 08:25:38 +03:00
"bytes",
"fnv",
"futures-core",
"futures-sink",
"futures-util",
"http",
"indexmap",
"slab",
"tokio",
"tokio-util",
"tracing",
]
2020-12-08 08:07:09 +03:00
[[package]]
name = "hashbrown"
version = "0.12.3"
2020-12-08 08:07:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
dependencies = [
"ahash",
]
2020-12-08 08:07:09 +03:00
2022-03-11 07:33:09 +03:00
[[package]]
name = "heck"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
2019-12-10 00:17:20 +03:00
[[package]]
name = "hermit-abi"
version = "0.1.19"
2019-12-10 00:17:20 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
dependencies = [
"libc",
]
2019-12-10 00:17:20 +03:00
[[package]]
name = "hermit-abi"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7"
dependencies = [
"libc",
]
[[package]]
name = "hex"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "hmac"
version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
dependencies = [
"digest",
]
[[package]]
name = "hostname"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867"
dependencies = [
"libc",
"match_cfg",
"winapi",
]
[[package]]
name = "http"
version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482"
dependencies = [
2022-11-14 08:25:38 +03:00
"bytes",
"fnv",
"itoa",
]
[[package]]
name = "http-body"
version = "0.4.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1"
dependencies = [
2022-11-14 08:25:38 +03:00
"bytes",
"http",
"pin-project-lite",
]
[[package]]
name = "httparse"
2022-11-14 08:25:38 +03:00
version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-14 08:25:38 +03:00
checksum = "d897f394bad6a705d5f4104762e116a75639e470d80901eed05a860a95cb1904"
[[package]]
name = "httpdate"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
[[package]]
name = "humantime"
version = "2.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
[[package]]
name = "hyper"
version = "0.14.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e011372fa0b68db8350aa7a248930ecc7839bf46d8485577d69f117a75f164c"
dependencies = [
2022-11-14 08:25:38 +03:00
"bytes",
"futures-channel",
"futures-core",
"futures-util",
"h2",
"http",
"http-body",
"httparse",
2022-11-14 08:25:38 +03:00
"httpdate",
"itoa",
2022-11-14 08:25:38 +03:00
"pin-project-lite",
"socket2",
"tokio",
"tower-service",
"tracing",
"want",
]
[[package]]
name = "hyper-rustls"
version = "0.23.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59df7c4e19c950e6e0e868dcc0a300b09a9b88e9ec55bd879ca819087a77355d"
dependencies = [
2022-11-14 08:25:38 +03:00
"http",
"hyper",
"rustls",
"tokio",
"tokio-rustls",
]
2022-12-02 10:58:24 +03:00
[[package]]
name = "hyper-tls"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
dependencies = [
"bytes",
"hyper",
"native-tls",
"tokio",
"tokio-native-tls",
]
[[package]]
name = "iana-time-zone"
2022-11-30 08:59:42 +03:00
version = "0.1.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "4c495f162af0bf17656d0014a0eded5f3cd2f365fdd204548c2869db89359dc7"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"js-sys",
2022-11-30 08:59:42 +03:00
"once_cell",
"wasm-bindgen",
"winapi",
]
2019-12-10 00:17:20 +03:00
[[package]]
name = "idna"
version = "0.3.0"
2019-12-10 00:17:20 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6"
dependencies = [
"unicode-bidi",
"unicode-normalization",
]
[[package]]
name = "indexmap"
version = "1.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399"
dependencies = [
"autocfg",
2020-12-08 08:07:09 +03:00
"hashbrown",
]
[[package]]
name = "instant"
version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
dependencies = [
"cfg-if 1.0.0",
]
2022-04-01 06:38:11 +03:00
[[package]]
name = "io-lifetimes"
2022-11-30 08:59:42 +03:00
version = "0.7.5"
2022-04-01 06:38:11 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074"
2022-04-01 06:38:11 +03:00
[[package]]
name = "io-lifetimes"
version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "46112a93252b123d31a119a8d1a1ac19deac4fac6e0e8b0df58f0d4e5870e63c"
dependencies = [
"libc",
"windows-sys 0.42.0",
]
[[package]]
name = "ipnet"
version = "2.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f88c5561171189e69df9d98bcf18fd5f9558300f7ea7b801eb8a0fd748bd8745"
[[package]]
name = "is-terminal"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "927609f78c2913a6f6ac3c27a4fe87f43e2a35367c0c4b0f8265e8f49a104330"
dependencies = [
"hermit-abi 0.2.6",
"io-lifetimes 1.0.3",
"rustix 0.36.4",
"windows-sys 0.42.0",
]
2021-01-08 10:28:43 +03:00
[[package]]
name = "itertools"
version = "0.10.5"
2021-01-08 10:28:43 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
2021-01-08 10:28:43 +03:00
dependencies = [
"either",
]
[[package]]
name = "itoa"
version = "1.0.4"
2022-11-14 14:54:39 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4217ad341ebadf8d8e724e264f13e593e0648f5b3e94b3896a5df283be015ecc"
Add jobserver support to sccache This commit alters the main sccache server to operate and orchestrate its own GNU make style jobserver. This is primarily intended for interoperation with rustc itself. The Rust compiler currently has a multithreaded mode where it will execute code generation and optimization on the LLVM side of things in parallel. This parallelism, however, can overload a machine quickly if not properly accounted for (e.g. if 10 rustcs all spawn 10 threads...). The usage of a GNU make style jobserver is intended to arbitrate and rate limit all these rustc instances to ensure that one build's maximal parallelism never exceeds a particular amount. Currently for Rust Cargo is the primary driver for setting up a jobserver. Cargo will create this and manage this per compilation, ensuring that any one `cargo build` invocation never exceeds a maximal parallelism. When sccache enters the picture, however, the story gets slightly more odd. The jobserver implementation on Unix relies on inheritance of file descriptors in spawned processes. With sccache, however, there's no inheritance as the actual rustc invocation is spawned by the server, not the client. In this case the env vars used to configure the jobsever are usually incorrect. To handle this problem this commit bakes a jobserver directly into sccache itself. The jobserver then overrides whatever jobserver the client has configured in its own env vars to ensure correct operation. The settings of each jobserver may be misconfigured (there's no way to configure sccache's jobserver right now), but hopefully that's not too much of a problem for the forseeable future. The implementation here was to provide a thin wrapper around the `jobserver` crate with a futures-based interface. This interface was then hooked into the mock command infrastructure to automatically acquire a jobserver token when spawning a process and automatically drop the token when the process exits. Additionally, all spawned processes will now automatically receive a configured jobserver. cc rust-lang/rust#42867, the original motivation for this commit
2017-09-27 19:14:51 +03:00
[[package]]
name = "jobserver"
version = "0.1.26"
Add jobserver support to sccache This commit alters the main sccache server to operate and orchestrate its own GNU make style jobserver. This is primarily intended for interoperation with rustc itself. The Rust compiler currently has a multithreaded mode where it will execute code generation and optimization on the LLVM side of things in parallel. This parallelism, however, can overload a machine quickly if not properly accounted for (e.g. if 10 rustcs all spawn 10 threads...). The usage of a GNU make style jobserver is intended to arbitrate and rate limit all these rustc instances to ensure that one build's maximal parallelism never exceeds a particular amount. Currently for Rust Cargo is the primary driver for setting up a jobserver. Cargo will create this and manage this per compilation, ensuring that any one `cargo build` invocation never exceeds a maximal parallelism. When sccache enters the picture, however, the story gets slightly more odd. The jobserver implementation on Unix relies on inheritance of file descriptors in spawned processes. With sccache, however, there's no inheritance as the actual rustc invocation is spawned by the server, not the client. In this case the env vars used to configure the jobsever are usually incorrect. To handle this problem this commit bakes a jobserver directly into sccache itself. The jobserver then overrides whatever jobserver the client has configured in its own env vars to ensure correct operation. The settings of each jobserver may be misconfigured (there's no way to configure sccache's jobserver right now), but hopefully that's not too much of a problem for the forseeable future. The implementation here was to provide a thin wrapper around the `jobserver` crate with a futures-based interface. This interface was then hooked into the mock command infrastructure to automatically acquire a jobserver token when spawning a process and automatically drop the token when the process exits. Additionally, all spawned processes will now automatically receive a configured jobserver. cc rust-lang/rust#42867, the original motivation for this commit
2017-09-27 19:14:51 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2"
dependencies = [
"libc",
]
Add jobserver support to sccache This commit alters the main sccache server to operate and orchestrate its own GNU make style jobserver. This is primarily intended for interoperation with rustc itself. The Rust compiler currently has a multithreaded mode where it will execute code generation and optimization on the LLVM side of things in parallel. This parallelism, however, can overload a machine quickly if not properly accounted for (e.g. if 10 rustcs all spawn 10 threads...). The usage of a GNU make style jobserver is intended to arbitrate and rate limit all these rustc instances to ensure that one build's maximal parallelism never exceeds a particular amount. Currently for Rust Cargo is the primary driver for setting up a jobserver. Cargo will create this and manage this per compilation, ensuring that any one `cargo build` invocation never exceeds a maximal parallelism. When sccache enters the picture, however, the story gets slightly more odd. The jobserver implementation on Unix relies on inheritance of file descriptors in spawned processes. With sccache, however, there's no inheritance as the actual rustc invocation is spawned by the server, not the client. In this case the env vars used to configure the jobsever are usually incorrect. To handle this problem this commit bakes a jobserver directly into sccache itself. The jobserver then overrides whatever jobserver the client has configured in its own env vars to ensure correct operation. The settings of each jobserver may be misconfigured (there's no way to configure sccache's jobserver right now), but hopefully that's not too much of a problem for the forseeable future. The implementation here was to provide a thin wrapper around the `jobserver` crate with a futures-based interface. This interface was then hooked into the mock command infrastructure to automatically acquire a jobserver token when spawning a process and automatically drop the token when the process exits. Additionally, all spawned processes will now automatically receive a configured jobserver. cc rust-lang/rust#42867, the original motivation for this commit
2017-09-27 19:14:51 +03:00
[[package]]
name = "js-sys"
version = "0.3.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49409df3e3bf0856b916e2ceaca09ee28e6871cf7d9ce97a692cacfdb2a25a47"
dependencies = [
"wasm-bindgen",
]
2017-05-06 03:02:48 +03:00
[[package]]
name = "jsonwebtoken"
version = "8.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "09f4f04699947111ec1733e71778d763555737579e44b85844cae8e1940a1828"
dependencies = [
"base64 0.13.1",
"pem",
"ring",
"serde",
"serde_json",
"simple_asn1",
]
2017-05-06 03:02:48 +03:00
2018-01-07 18:33:04 +03:00
[[package]]
name = "lazy_static"
2019-12-10 00:17:20 +03:00
version = "1.4.0"
Rewrite the server module with Tokio This commit rewrites the `server` module of sccache to be backed with Tokio. The previous version was written with `mio`, which Tokio is built on, but is unfortunately less ergonomic. Tokio is the state-of-the-art for asynchronous programming in Rust and sccache serves as a great testing ground for ergonomics! It's intended that the support added here will eventually extend to many other operations that sccache does as well. For example thread spawning has all been replaced with `CpuPool` to have a shared pool for I/O operations and such (namely the filesystem). Eventually the HTTP requests made by the S3 backend can be integrated with the Tokio branch of Hyper as well to run that on the event loop instead of in a worker thread. I'd also like to eventually extend this with `tokio-process` as well to move process spawning off helper threads as well, but I'm leaving that to a future commit as well. Overall I found the transition was quite smooth, with the high level architecture look like: * The `tokio-proto` crate is used in streaming mode. The streaming part is used for the one RPC sccache gets which requires a second response to be sent later on. This second response is the "response body" in tokio-proto terms. * All of sccache's logic is manifested in an implementation of the `Service` trait. * The transport layer is provided with `tokio_core::io::{Framed, Codec}`, and simple deserialization/serialization is performed with protobuf. Some differences in design are: * The `SccacheService` for now is just a bunch of reference-counted pointers, making it cheap to clone. As the futures it returns progress they will each retain a reference to a cloned copy of the `SccacheService`. Before all this data was just stored and manipulated in a struct directly, but it's now directly managed through shared memory. * The storage backends share a thread pool with the main server instead of spawning threads. And finally, some things I've learned along the way: * Sharing data between futures isn't a trivial operation. It took an explicit decision to use `Rc` and I'm not sure I'm 100% happy with how the ergonomics played out. * Shutdown is pretty tricky here. I've tried to carry over all the previous logic but it definitely required not using `TcpServer` in tokio-proto at the very least, and otherwise required a few custom futures and such to track the various states. I have a hunch that tokio-proto could provide more options out of the box for something like this.
2017-01-31 04:04:03 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
dependencies = [
"spin 0.5.2",
]
Rewrite the server module with Tokio This commit rewrites the `server` module of sccache to be backed with Tokio. The previous version was written with `mio`, which Tokio is built on, but is unfortunately less ergonomic. Tokio is the state-of-the-art for asynchronous programming in Rust and sccache serves as a great testing ground for ergonomics! It's intended that the support added here will eventually extend to many other operations that sccache does as well. For example thread spawning has all been replaced with `CpuPool` to have a shared pool for I/O operations and such (namely the filesystem). Eventually the HTTP requests made by the S3 backend can be integrated with the Tokio branch of Hyper as well to run that on the event loop instead of in a worker thread. I'd also like to eventually extend this with `tokio-process` as well to move process spawning off helper threads as well, but I'm leaving that to a future commit as well. Overall I found the transition was quite smooth, with the high level architecture look like: * The `tokio-proto` crate is used in streaming mode. The streaming part is used for the one RPC sccache gets which requires a second response to be sent later on. This second response is the "response body" in tokio-proto terms. * All of sccache's logic is manifested in an implementation of the `Service` trait. * The transport layer is provided with `tokio_core::io::{Framed, Codec}`, and simple deserialization/serialization is performed with protobuf. Some differences in design are: * The `SccacheService` for now is just a bunch of reference-counted pointers, making it cheap to clone. As the futures it returns progress they will each retain a reference to a cloned copy of the `SccacheService`. Before all this data was just stored and manipulated in a struct directly, but it's now directly managed through shared memory. * The storage backends share a thread pool with the main server instead of spawning threads. And finally, some things I've learned along the way: * Sharing data between futures isn't a trivial operation. It took an explicit decision to use `Rc` and I'm not sure I'm 100% happy with how the ergonomics played out. * Shutdown is pretty tricky here. I've tried to carry over all the previous logic but it definitely required not using `TcpServer` in tokio-proto at the very least, and otherwise required a few custom futures and such to track the various states. I have a hunch that tokio-proto could provide more options out of the box for something like this.
2017-01-31 04:04:03 +03:00
2016-05-12 22:03:37 +03:00
[[package]]
name = "libc"
version = "0.2.140"
2016-05-12 22:03:37 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c"
2016-05-12 22:03:37 +03:00
[[package]]
name = "libm"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "348108ab3fba42ec82ff6e9564fc4ca0247bdccdc68dd8af9764bbc79c3c8ffb"
[[package]]
name = "libmount"
2019-12-10 00:17:20 +03:00
version = "0.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "23c4c2ad2d5cbd2f5a05620c3daf45930add53ec207fa99ce5eec971089dc35f"
dependencies = [
"libc",
"nix 0.14.1",
"quick-error",
]
[[package]]
name = "linked-hash-map"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
2022-04-01 06:38:11 +03:00
[[package]]
name = "linux-raw-sys"
2022-11-30 08:59:42 +03:00
version = "0.0.46"
2022-04-01 06:38:11 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d"
2022-04-01 06:38:11 +03:00
[[package]]
name = "linux-raw-sys"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f9f08d8963a6c613f4b1a78f4f4a4dbfadf8e6545b2d72861731e4858b8b47f"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
[[package]]
name = "lock_api"
version = "0.4.9"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
dependencies = [
"autocfg",
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
"scopeguard",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "log"
version = "0.4.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
dependencies = [
"cfg-if 1.0.0",
]
[[package]]
name = "match_cfg"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4"
[[package]]
name = "md-5"
version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca"
dependencies = [
"digest",
]
2018-08-28 15:42:57 +03:00
[[package]]
name = "memcache-async"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "60a114106a13014b37b174cd14ae13c3ac229f2cecc7174fe2f2c6c999ea4ee7"
dependencies = [
"futures",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "memchr"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
[[package]]
name = "memoffset"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5de893c32cde5f383baa4c04c5d6dbdd735cfd4a794b0debdb2bb1b421da5ff4"
dependencies = [
"autocfg",
]
[[package]]
name = "mime"
version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
[[package]]
name = "mime_guess"
version = "2.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4192263c238a5f0d0c6bfd21f336a313a4ce1c450542449ca191bb657b4642ef"
dependencies = [
"mime",
"unicase",
]
2020-12-08 08:07:09 +03:00
[[package]]
name = "miniz_oxide"
version = "0.6.2"
2020-12-08 08:07:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b275950c28b37e794e8c55d88aeb5e139d0ce23fdbbeda68f8d7174abdf9e8fa"
2020-12-08 08:07:09 +03:00
dependencies = [
"adler",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "mio"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5d732bc30207a6423068df043e3d02e0735b155ad7ce1a6f76fe2baa5b158de"
dependencies = [
"libc",
"log",
"wasi 0.11.0+wasi-snapshot-preview1",
"windows-sys 0.42.0",
]
2018-01-07 18:33:04 +03:00
[[package]]
name = "multipart"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "00dec633863867f29cb39df64a397cdf4a6354708ddd7759f70c7fb51c5f9182"
dependencies = [
"buf_redux",
"httparse",
"log",
"mime",
"mime_guess",
"quick-error",
"rand 0.8.5",
"safemem",
"tempfile",
"twoway",
]
[[package]]
name = "nanorand"
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a51313c5820b0b02bd422f4b44776fbf47961755c74ce64afc73bfad10226c3"
dependencies = [
"getrandom 0.2.8",
]
[[package]]
name = "native-tls"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07226173c32f2926027b63cce4bcd8076c3552846cbe7925f3aaffeac0a3b92e"
dependencies = [
"lazy_static",
"libc",
"log",
"openssl",
"openssl-probe",
"openssl-sys",
"schannel",
"security-framework",
"security-framework-sys",
"tempfile",
]
[[package]]
name = "nix"
version = "0.14.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c722bee1037d430d0f8e687bbdbf222f27cc6e4e68d5caf630857bb2b6dbdce"
dependencies = [
"bitflags",
"cc",
2020-12-08 08:07:09 +03:00
"cfg-if 0.1.10",
"libc",
"void",
]
2018-08-27 17:23:32 +03:00
[[package]]
2019-12-10 00:17:20 +03:00
name = "nix"
version = "0.26.2"
2018-08-27 17:23:32 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bfdda3d196821d6af13126e40375cdf7da646a96114af134d5f417a9a1dc8e1a"
dependencies = [
"bitflags",
2020-12-10 01:56:41 +03:00
"cfg-if 1.0.0",
"libc",
"memoffset",
"pin-utils",
"static_assertions",
]
2018-08-27 17:23:32 +03:00
[[package]]
name = "normalize-line-endings"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "61807f77802ff30975e01f4f071c8ba10c022052f98b3294119f3e615d13e5be"
[[package]]
name = "num-bigint"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f93ab6289c7b344a8a9f60f88d80aa20032336fe78da341afc91c8a2341fc75f"
dependencies = [
"autocfg",
"num-integer",
"num-traits",
]
[[package]]
name = "num-bigint-dig"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2399c9463abc5f909349d8aa9ba080e0b88b3ce2885389b60b993f39b1a56905"
dependencies = [
"byteorder",
"lazy_static",
"libm",
"num-integer",
"num-iter",
"num-traits",
"rand 0.8.5",
"smallvec",
"zeroize",
]
[[package]]
name = "num-integer"
version = "0.1.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
dependencies = [
"autocfg",
"num-traits",
]
[[package]]
name = "num-iter"
version = "0.1.43"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252"
dependencies = [
"autocfg",
"num-integer",
"num-traits",
]
2018-07-26 22:52:50 +03:00
[[package]]
name = "num-traits"
version = "0.2.15"
2018-07-26 22:52:50 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
dependencies = [
"autocfg",
"libm",
]
2018-07-26 22:52:50 +03:00
[[package]]
name = "num_cpus"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b"
dependencies = [
"hermit-abi 0.2.6",
"libc",
]
[[package]]
name = "num_threads"
version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2819ce041d2ee131036f4fc9d6ae7ae125a3a40e97ba64d04fe799ad9dabbb44"
dependencies = [
"libc",
]
[[package]]
name = "number_prefix"
2020-12-10 02:03:49 +03:00
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-12-10 02:03:49 +03:00
checksum = "830b246a0e5f20af87141b25c173cd1b609bd7779a4617d6ec582abaf90870f3"
2020-06-11 04:40:05 +03:00
[[package]]
name = "once_cell"
version = "1.17.0"
2020-06-11 04:40:05 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6f61fba1741ea2b3d6a1e3178721804bb716a68a6aeba1149b5d52e3d464ea66"
2020-06-11 04:40:05 +03:00
[[package]]
name = "opendal"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39f2018ea448841041cf00a01f6c145b5017753958dbb563c2bf8921ce4b3e49"
dependencies = [
"anyhow",
"async-compat",
"async-trait",
"backon",
"base64 0.21.0",
"bb8",
"bytes",
"flagset",
"futures",
"http",
"hyper",
"log",
"md-5",
"memcache-async",
"once_cell",
"parking_lot",
"percent-encoding",
"pin-project",
"quick-xml",
"redis",
"reqsign",
"reqwest",
"serde",
"serde_json",
"time 0.3.17",
"tokio",
"ureq",
"uuid",
]
[[package]]
name = "openssl"
version = "0.10.48"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "518915b97df115dd36109bfa429a48b8f737bd05508cf9588977b599648926d2"
dependencies = [
"bitflags",
2020-12-10 03:19:32 +03:00
"cfg-if 1.0.0",
"foreign-types",
"libc",
"once_cell",
"openssl-macros",
"openssl-sys",
]
[[package]]
name = "openssl-macros"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "openssl-probe"
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
[[package]]
name = "openssl-src"
version = "111.25.1+1.1.1t"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ef9a9cc6ea7d9d5e7c4a913dc4b48d0e359eddf01af1dfec96ba7064b4aba10"
dependencies = [
"cc",
]
[[package]]
name = "openssl-sys"
version = "0.9.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "666416d899cf077260dac8698d60a60b435a46d57e82acb1be3d0dad87284e5b"
dependencies = [
"autocfg",
"cc",
"libc",
"openssl-src",
"pkg-config",
"vcpkg",
]
[[package]]
name = "ordered-multimap"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ccd746e37177e1711c20dd619a1620f34f5c8b569c53590a72dedd5344d8924a"
dependencies = [
"dlv-list",
"hashbrown",
]
2022-03-11 07:33:09 +03:00
[[package]]
name = "os_str_bytes"
version = "6.4.1"
2022-03-11 07:33:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9b7820b9daea5457c9f21c69448905d723fbd21136ccf521748f23fd49e723ee"
2022-03-11 07:33:09 +03:00
[[package]]
name = "parity-tokio-ipc"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9981e32fb75e004cc148f5fb70342f393830e0a4aa62e3cc93b50976218d42b6"
dependencies = [
"futures",
"libc",
"log",
"rand 0.7.3",
"tokio",
"winapi",
]
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
[[package]]
name = "parking_lot"
version = "0.12.1"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
dependencies = [
"lock_api",
"parking_lot_core",
]
[[package]]
name = "parking_lot_core"
2022-11-30 08:59:42 +03:00
version = "0.9.4"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "4dc9e0dc2adc1c69d09143aff38d3d30c5c3f0df0dad82e6d25547af174ebec0"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
dependencies = [
"cfg-if 1.0.0",
"libc",
"redox_syscall",
"smallvec",
"windows-sys 0.42.0",
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
]
[[package]]
name = "pem"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03c64931a1a212348ec4f3b4362585eca7159d0d09cbdf4a7f74f02173596fd4"
dependencies = [
"base64 0.13.1",
]
[[package]]
name = "pem-rfc7468"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24d159833a9105500e0398934e205e0773f0b27529557134ecfc51c27646adac"
dependencies = [
"base64ct",
]
2019-12-10 00:17:20 +03:00
[[package]]
name = "percent-encoding"
version = "2.2.0"
2019-12-10 00:17:20 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e"
2019-12-10 00:17:20 +03:00
[[package]]
name = "pin-project"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ad29a609b6bcd67fee905812e544992d216af9d755757c05ed2d0e15a74c6ecc"
dependencies = [
"pin-project-internal",
]
[[package]]
name = "pin-project-internal"
version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "069bdb1e05adc7a8990dce9cc75370895fbe4e3d58b9b73bf1aee56359344a55"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
2020-12-08 08:07:09 +03:00
[[package]]
name = "pin-project-lite"
version = "0.2.9"
2020-12-08 08:07:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116"
[[package]]
name = "pin-utils"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
[[package]]
name = "pkcs1"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eff33bdbdfc54cc98a2eca766ebdec3e1b8fb7387523d5c9c9a2891da856f719"
dependencies = [
"der",
"pkcs8",
"spki",
"zeroize",
]
[[package]]
name = "pkcs8"
version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9eca2c590a5f85da82668fa685c09ce2888b9430e83299debf1f34b65fd4a4ba"
dependencies = [
"der",
"spki",
]
[[package]]
name = "pkg-config"
version = "0.3.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ac9a59f73473f1b8d852421e59e64809f025994837ef743615c6d0c5b305160"
2019-12-10 00:17:20 +03:00
[[package]]
name = "ppv-lite86"
version = "0.2.17"
2019-12-10 00:17:20 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
2019-12-10 00:17:20 +03:00
2018-07-26 22:52:50 +03:00
[[package]]
name = "predicates"
version = "2.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59230a63c37f3e18569bdb90e4a89cbf5bf8b06fea0b84e65ea10cc4df47addd"
dependencies = [
"difflib",
"itertools",
"predicates-core",
]
[[package]]
name = "predicates"
version = "3.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c575290b64d24745b6c57a12a31465f0a66f3a4799686a6921526a33b0797965"
dependencies = [
"anstyle",
"difflib",
"float-cmp",
"itertools",
"normalize-line-endings",
"predicates-core",
"regex",
]
[[package]]
name = "predicates-core"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "72f883590242d3c6fc5bf50299011695fa6590c2c70eac95ee1bdb9a733ad1a2"
[[package]]
name = "predicates-tree"
version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "54ff541861505aabf6ea722d2131ee980b8276e10a1297b94e896dd8b621850d"
dependencies = [
"predicates-core",
"termtree",
]
[[package]]
name = "proc-macro-error"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
dependencies = [
"proc-macro-error-attr",
"proc-macro2",
"quote",
"syn",
"version_check",
]
[[package]]
name = "proc-macro-error-attr"
version = "1.0.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
dependencies = [
"proc-macro2",
"quote",
"version_check",
]
[[package]]
name = "proc-macro2"
version = "1.0.47"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725"
dependencies = [
"unicode-ident",
]
[[package]]
name = "quick-error"
2020-04-28 07:55:50 +03:00
version = "1.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-04-28 07:55:50 +03:00
checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
[[package]]
name = "quick-xml"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ffc053f057dd768a56f62cd7e434c42c831d296968997e9ac1f76ea7c2d14c41"
dependencies = [
"memchr",
"serde",
]
[[package]]
name = "quote"
version = "1.0.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179"
dependencies = [
"proc-macro2",
]
[[package]]
name = "rand"
2020-04-28 07:55:50 +03:00
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-04-28 07:55:50 +03:00
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
dependencies = [
"getrandom 0.1.16",
"libc",
2020-04-28 07:55:50 +03:00
"rand_chacha 0.2.2",
"rand_core 0.5.1",
"rand_hc",
]
[[package]]
name = "rand"
version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [
"libc",
"rand_chacha 0.3.1",
"rand_core 0.6.4",
]
[[package]]
name = "rand_chacha"
version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
dependencies = [
2020-04-28 07:55:50 +03:00
"ppv-lite86",
"rand_core 0.5.1",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "rand_chacha"
version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
"ppv-lite86",
"rand_core 0.6.4",
]
2019-12-10 00:17:20 +03:00
[[package]]
name = "rand_core"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
dependencies = [
"getrandom 0.1.16",
]
[[package]]
name = "rand_core"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
"getrandom 0.2.8",
]
2019-12-10 00:17:20 +03:00
[[package]]
name = "rand_hc"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
dependencies = [
"rand_core 0.5.1",
]
[[package]]
name = "redis"
version = "0.22.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "513b3649f1a111c17954296e4a3b9eecb108b766c803e2b99f179ebe27005985"
dependencies = [
"arc-swap",
"async-trait",
2022-11-14 08:25:38 +03:00
"bytes",
"combine",
"futures",
"futures-util",
"itoa",
"percent-encoding",
"pin-project-lite",
"ryu",
"sha1_smol",
"tokio",
"tokio-util",
"url",
]
[[package]]
name = "redox_syscall"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
"bitflags",
]
2018-01-07 18:33:04 +03:00
[[package]]
2019-12-10 00:17:20 +03:00
name = "redox_users"
version = "0.4.3"
2018-01-07 18:33:04 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b033d837a7cf162d7993aded9304e30a83213c648b6e389db233191f891e5c2b"
dependencies = [
"getrandom 0.2.8",
"redox_syscall",
"thiserror",
]
2018-01-07 18:33:04 +03:00
2018-07-26 22:52:50 +03:00
[[package]]
name = "regex"
version = "1.7.3"
2018-07-26 22:52:50 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b1f693b24f6ac912f4893ef08244d70b6067480d2f1a46e950c9691e6749d1d"
dependencies = [
"aho-corasick",
"memchr",
"regex-syntax",
]
2018-07-26 22:52:50 +03:00
[[package]]
name = "regex-automata"
version = "0.1.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132"
2018-07-26 22:52:50 +03:00
[[package]]
name = "regex-syntax"
version = "0.6.29"
2018-07-26 22:52:50 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f162c6dd7b008981e4d40210aca20b4bd0f9b60ca9271061b07f78537722f2e1"
2018-07-26 22:52:50 +03:00
[[package]]
name = "reqsign"
version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef4d5fefeaaa1e64f4aabb79da4ea68bf6d0e7935ad927728280d2a8e95735fc"
dependencies = [
"anyhow",
"backon",
"base64 0.21.0",
"bytes",
"dirs",
"form_urlencoded",
"hex",
"hmac",
"http",
"jsonwebtoken",
"log",
"once_cell",
"percent-encoding",
"quick-xml",
"rand 0.8.5",
"rsa",
"rust-ini",
"serde",
"serde_json",
"sha1",
"sha2",
"time 0.3.17",
"ureq",
]
[[package]]
name = "reqwest"
version = "0.11.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0ba30cc2c0cd02af1222ed216ba659cdb2f879dfe3181852fe7c50b1d0005949"
dependencies = [
"base64 0.21.0",
2022-11-14 08:25:38 +03:00
"bytes",
"encoding_rs",
"futures-core",
"futures-util",
"h2",
"http",
"http-body",
"hyper",
"hyper-rustls",
2022-12-02 10:58:24 +03:00
"hyper-tls",
"ipnet",
"js-sys",
"log",
"mime",
2022-12-02 10:58:24 +03:00
"mime_guess",
"native-tls",
2022-11-14 08:25:38 +03:00
"once_cell",
"percent-encoding",
"pin-project-lite",
"rustls",
"rustls-native-certs",
"rustls-pemfile",
"serde",
"serde_json",
"serde_urlencoded",
"tokio",
2022-12-02 10:58:24 +03:00
"tokio-native-tls",
"tokio-rustls",
"tokio-util",
2022-11-14 08:25:38 +03:00
"tower-service",
"url",
"wasm-bindgen",
"wasm-bindgen-futures",
"wasm-streams",
"web-sys",
"winreg",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "retry"
version = "2.0.0"
2016-05-12 22:03:37 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9166d72162de3575f950507683fac47e30f6f2c3836b71b7fbc61aa517c9c5f4"
dependencies = [
"rand 0.8.5",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "ring"
version = "0.16.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc"
dependencies = [
"cc",
"libc",
"once_cell",
"spin 0.5.2",
"untrusted",
"web-sys",
"winapi",
]
2018-01-07 18:33:04 +03:00
[[package]]
name = "rouille"
2022-11-27 06:48:49 +03:00
version = "3.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-27 06:48:49 +03:00
checksum = "4f86e4c51a773f953f02bbab5fd049f004bfd384341d62da2a079aff812ab176"
dependencies = [
"base64 0.13.1",
"chrono",
"filetime",
"multipart",
"num_cpus",
"percent-encoding",
"rand 0.8.5",
"serde",
"serde_derive",
"serde_json",
2022-11-27 06:48:49 +03:00
"sha1",
"threadpool",
"time 0.3.17",
"tiny_http",
"url",
]
[[package]]
name = "rsa"
version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55a77d189da1fee555ad95b7e50e7457d91c0e089ec68ca69ad2989413bbdab4"
dependencies = [
"byteorder",
"digest",
"num-bigint-dig",
"num-integer",
"num-iter",
"num-traits",
"pkcs1",
"pkcs8",
"rand_core 0.6.4",
"sha2",
"signature",
"subtle",
"zeroize",
]
[[package]]
name = "rust-ini"
version = "0.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6d5f2436026b4f6e79dc829837d467cc7e9a55ee40e750d716713540715a2df"
dependencies = [
"cfg-if 1.0.0",
"ordered-multimap",
]
2022-04-01 06:38:11 +03:00
[[package]]
name = "rustix"
2022-11-30 08:59:42 +03:00
version = "0.35.13"
2022-04-01 06:38:11 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "727a1a6d65f786ec22df8a81ca3121107f235970dc1705ed681d3e6e8b9cd5f9"
2022-04-01 06:38:11 +03:00
dependencies = [
"bitflags",
"errno",
"io-lifetimes 0.7.5",
"libc",
"linux-raw-sys 0.0.46",
"windows-sys 0.42.0",
]
[[package]]
name = "rustix"
version = "0.36.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cb93e85278e08bb5788653183213d3a60fc242b10cb9be96586f5a73dcb67c23"
dependencies = [
"bitflags",
"errno",
"io-lifetimes 1.0.3",
2022-04-01 06:38:11 +03:00
"libc",
"linux-raw-sys 0.1.3",
"windows-sys 0.42.0",
]
[[package]]
name = "rustls"
2022-11-14 08:25:38 +03:00
version = "0.20.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-14 08:25:38 +03:00
checksum = "539a2bfe908f471bfa933876bd1eb6a19cf2176d375f82ef7f99530a40e48c2c"
dependencies = [
"log",
"ring",
"sct",
"webpki",
]
[[package]]
name = "rustls-native-certs"
2022-11-14 08:25:38 +03:00
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-14 08:25:38 +03:00
checksum = "0167bac7a9f490495f3c33013e7722b53cb087ecbe082fb0c6387c96f634ea50"
dependencies = [
"openssl-probe",
2022-11-14 08:25:38 +03:00
"rustls-pemfile",
"schannel",
"security-framework",
2022-04-01 06:38:11 +03:00
]
2022-11-14 08:25:38 +03:00
[[package]]
name = "rustls-pemfile"
version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0864aeff53f8c05aa08d86e5ef839d3dfcf07aeba2db32f12db0ef716e87bd55"
dependencies = [
"base64 0.13.1",
2022-11-14 08:25:38 +03:00
]
[[package]]
name = "ryu"
version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09"
[[package]]
name = "safemem"
2019-12-10 00:17:20 +03:00
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072"
[[package]]
name = "same-file"
version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
dependencies = [
"winapi-util",
]
2017-12-05 16:32:33 +03:00
[[package]]
name = "sccache"
2023-03-27 13:09:39 +03:00
version = "0.4.1"
dependencies = [
Change error handling from `error-chain` to `anyhow`. Because `anyhow` is what seems to be the most common error library for applications these days. - The global `Result` type is now `anyhow::Result`. - In errors.rs, there's no need for any boilerplate to wrap all the foreign errors seen: `hyper::Error`, `io:Error`, etc. - The internal errors that we care about are now separate types, rather than within an enum, because that works better when we need to check for them by downcasting an `anyhow::Error`. And it's nice to write `Err(ProcessError(output))` rather than `Err(ErrorKind::ProcessError(output))`. - The `Which` error was unused and is removed. - The most common change is that `.chain_err()` is changed to `.context`/`.with_context()`. - `anyhow!` is used where necessary, mostly to promote a string to an `anyhow::Error`. - Errors within futures: `FutureChainErr`/`.chain_err()` is changed to `FutureContext`/`fcontext`/`fwith_context`. The `f` prefix is because I found it helpful to distinguish these cases from the simple error cases. - `BuilderIncoming`, `SchedulerIncoming`, `ServerIncoming` no longer have an `Error` associated type, we just use `anyhow::Error` uniformly. - `e.display_chain()` changes to `format!("{:?}")`, because they both print the full cause chain, and the backtrace (if present). - A few places where the old code was doing something weird or more complicated than seemed necessary, I generally tried to replace it with something simpler and more typical. Two places used `with_boxed_chain()`, which doesn't have an equivalent in `anyhow`, so I did my best to do something reasonable. - In `src/server.rs` we now import `std::task::Context` as `TaskContext` to avoid overshadowing the `anyhow::Context` trait :(
2020-06-02 10:22:31 +03:00
"anyhow",
"ar",
"assert_cmd",
"async-trait",
"atty",
"base64 0.21.0",
"bincode",
"blake3",
"byteorder",
2022-11-14 08:25:38 +03:00
"bytes",
"cc",
"chrono",
"clap",
"crossbeam-utils",
"daemonize",
"directories",
"encoding",
"env_logger",
"filetime",
"flate2",
"fs-err",
"futures",
"gzp",
"http",
"hyper",
"itertools",
"jobserver",
"jsonwebtoken",
"lazy_static",
"libc",
"libmount",
"linked-hash-map",
"log",
"mime",
"nix 0.26.2",
"num_cpus",
"number_prefix",
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
"once_cell",
"opendal",
"openssl",
"parity-tokio-ipc",
"predicates 3.0.2",
"rand 0.8.5",
"regex",
"reqsign",
"reqwest",
"retry",
"rouille",
"semver",
"serde",
"serde_derive",
"serde_json",
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
"serial_test",
"sha2",
"strip-ansi-escapes",
"syslog",
"tar",
"tempfile",
"thirtyfour_sync",
"tokio",
"tokio-serde",
"tokio-util",
"toml",
"tower",
"url",
"uuid",
"version-compare",
"void",
2020-07-14 13:14:02 +03:00
"walkdir",
"which",
"winapi",
"zip",
"zstd",
]
2017-12-05 16:32:33 +03:00
[[package]]
name = "schannel"
version = "0.1.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2"
dependencies = [
"lazy_static",
"windows-sys 0.36.1",
]
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
[[package]]
name = "scopeguard"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
[[package]]
name = "sct"
2022-11-14 08:25:38 +03:00
version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-14 08:25:38 +03:00
checksum = "d53dcdb7c9f8158937a7981b48accfd39a43af418591a5d008c7b22b5e1b7ca4"
dependencies = [
"ring",
"untrusted",
]
[[package]]
name = "security-framework"
version = "2.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c"
dependencies = [
2020-04-28 07:55:50 +03:00
"bitflags",
"core-foundation",
"core-foundation-sys",
"libc",
"security-framework-sys",
]
[[package]]
name = "security-framework-sys"
version = "2.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556"
dependencies = [
"core-foundation-sys",
2020-04-28 07:55:50 +03:00
"libc",
]
[[package]]
name = "semver"
version = "1.0.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58bc9567378fc7690d6b2addae4e60ac2eeea07becb2c64b9f218b53865cba2a"
[[package]]
name = "serde"
version = "1.0.155"
Move from protobuf to bincode for a wire format This commit migrates away from the `protobuf` crate to instead just working with bincode on the wire as a serialization format. This is done by leveraging a few different crates: * The `bincode` and `serde_derive` crates are used to define serialization for Rust structures as well as provide a bincode implementation. * The `tokio_io::codec::length_delimited` module implements framing via length prefixes to transform an asynchronous stream of bytes into a literal `Stream` of `BytesMut`. * The `tokio_serde_bincode` crate is then used to tie it all together, parsing these `BytesMut` as the request/response types of sccache. Most of the changes here are related to moving away from the protobuf API throughout the codebase (e.g. `has_foo` and `take_foo`) towards a more rustic-ish API that just uses enums/structs. Overall it felt quite natural (as one would expect) to just use the raw enum/struct values. This may not be quite as performant as before but that doesn't really apply to sccache's use case where perf is hugely dominated by actually compiling and hashing, so I'm not too too worried about that. My personal motivation for this is twofold: 1. Using `protobuf` was a little clunky throughout the codebase and definitely had some sharp edges that felt good to smooth out. 2. There's currently what I believe some mysterious segfault and/or stray write happening in sccache and I'm not sure where. The `protobuf` crate had a lot of `unsafe` code and in lieu of actually auditing it I figured it'd be good to kill two birds with one stone. I have no idea if this fixes my segfault problem (I never could reproduce it) but I figured it's worth a shot.
2017-03-22 20:21:52 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "71f2b4817415c6d4210bfe1c7bfcf4801b2d904cb4d0e1a8fdb651013c9e86b8"
dependencies = [
"serde_derive",
]
Move from protobuf to bincode for a wire format This commit migrates away from the `protobuf` crate to instead just working with bincode on the wire as a serialization format. This is done by leveraging a few different crates: * The `bincode` and `serde_derive` crates are used to define serialization for Rust structures as well as provide a bincode implementation. * The `tokio_io::codec::length_delimited` module implements framing via length prefixes to transform an asynchronous stream of bytes into a literal `Stream` of `BytesMut`. * The `tokio_serde_bincode` crate is then used to tie it all together, parsing these `BytesMut` as the request/response types of sccache. Most of the changes here are related to moving away from the protobuf API throughout the codebase (e.g. `has_foo` and `take_foo`) towards a more rustic-ish API that just uses enums/structs. Overall it felt quite natural (as one would expect) to just use the raw enum/struct values. This may not be quite as performant as before but that doesn't really apply to sccache's use case where perf is hugely dominated by actually compiling and hashing, so I'm not too too worried about that. My personal motivation for this is twofold: 1. Using `protobuf` was a little clunky throughout the codebase and definitely had some sharp edges that felt good to smooth out. 2. There's currently what I believe some mysterious segfault and/or stray write happening in sccache and I'm not sure where. The `protobuf` crate had a lot of `unsafe` code and in lieu of actually auditing it I figured it'd be good to kill two birds with one stone. I have no idea if this fixes my segfault problem (I never could reproduce it) but I figured it's worth a shot.
2017-03-22 20:21:52 +03:00
[[package]]
name = "serde_derive"
version = "1.0.155"
Move from protobuf to bincode for a wire format This commit migrates away from the `protobuf` crate to instead just working with bincode on the wire as a serialization format. This is done by leveraging a few different crates: * The `bincode` and `serde_derive` crates are used to define serialization for Rust structures as well as provide a bincode implementation. * The `tokio_io::codec::length_delimited` module implements framing via length prefixes to transform an asynchronous stream of bytes into a literal `Stream` of `BytesMut`. * The `tokio_serde_bincode` crate is then used to tie it all together, parsing these `BytesMut` as the request/response types of sccache. Most of the changes here are related to moving away from the protobuf API throughout the codebase (e.g. `has_foo` and `take_foo`) towards a more rustic-ish API that just uses enums/structs. Overall it felt quite natural (as one would expect) to just use the raw enum/struct values. This may not be quite as performant as before but that doesn't really apply to sccache's use case where perf is hugely dominated by actually compiling and hashing, so I'm not too too worried about that. My personal motivation for this is twofold: 1. Using `protobuf` was a little clunky throughout the codebase and definitely had some sharp edges that felt good to smooth out. 2. There's currently what I believe some mysterious segfault and/or stray write happening in sccache and I'm not sure where. The `protobuf` crate had a lot of `unsafe` code and in lieu of actually auditing it I figured it'd be good to kill two birds with one stone. I have no idea if this fixes my segfault problem (I never could reproduce it) but I figured it's worth a shot.
2017-03-22 20:21:52 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d071a94a3fac4aff69d023a7f411e33f40f3483f8c5190b1953822b6b76d7630"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "serde_json"
version = "1.0.94"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c533a59c9d8a93a09c6ab31f0fd5e5f4dd1b8fc9434804029839884765d04ea"
dependencies = [
"indexmap",
"itoa",
"ryu",
"serde",
]
[[package]]
name = "serde_repr"
version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fe39d9fbb0ebf5eb2c7cb7e2a47e4f462fad1379f1166b8ae49ad9eae89a7ca"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "serde_spanned"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0efd8caf556a6cebd3b285caf480045fcc1ac04f6bd786b09a6f11af30c4fcf4"
dependencies = [
"serde",
]
[[package]]
name = "serde_urlencoded"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
dependencies = [
"form_urlencoded",
"itoa",
"ryu",
"serde",
]
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
[[package]]
name = "serial_test"
version = "1.0.0"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "538c30747ae860d6fb88330addbbd3e0ddbe46d662d032855596d8a8ca260611"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
dependencies = [
"dashmap",
"futures",
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
"lazy_static",
"log",
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
"parking_lot",
"serial_test_derive",
]
[[package]]
name = "serial_test_derive"
version = "1.0.0"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "079a83df15f85d89a68d64ae1238f142f172b1fa915d0d76b26a7cba1b659a69"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "sha1"
version = "0.10.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f04293dc80c3993519f2d7f6f511707ee7094fe0c6d3406feb330cdb3540eba3"
dependencies = [
"cfg-if 1.0.0",
"cpufeatures",
"digest",
]
[[package]]
name = "sha1_smol"
version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae1a47186c03a32177042e55dbc5fd5aee900b8e0069a8d70fba96a9375cd012"
[[package]]
name = "sha2"
version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "82e6b795fe2e3b1e845bafcb27aa35405c4d47cdfc92af5fc8d3002f76cebdc0"
dependencies = [
"cfg-if 1.0.0",
"cpufeatures",
"digest",
]
2019-12-10 00:17:20 +03:00
[[package]]
name = "signal-hook-registry"
version = "1.4.0"
2019-12-10 00:17:20 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e51e73328dc4ac0c7ccbda3a494dfa03df1de2f46018127f60c693f2648455b0"
dependencies = [
"libc",
]
[[package]]
name = "signature"
version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8fe458c98333f9c8152221191a77e2a44e8325d0193484af2e9421a53019e57d"
dependencies = [
"digest",
"rand_core 0.6.4",
]
[[package]]
name = "simple_asn1"
version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "adc4e5204eb1910f40f9cfa375f6f05b68c3abac4b6fd879c8ff5e7ae8a0a085"
dependencies = [
"num-bigint",
"num-traits",
"thiserror",
"time 0.3.17",
]
[[package]]
name = "slab"
version = "0.4.7"
2019-12-10 00:17:20 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef"
dependencies = [
"autocfg",
]
2019-12-10 00:17:20 +03:00
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
[[package]]
name = "smallvec"
version = "1.10.0"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0"
Parse env-deps from dep-info (#1107) * Refactor sccache cargo test - Improve cleanup by using Result instead of panicking, to ensure that the temporary folder gets cleaned up. Previously, when a test failed, no clean up would happen. Now the cleanup happens, unless there is an unexpected panic somewhere in the intergration test code. - this commit aims to make it easier to add new tests Split sccache cargo tests To make it clearer what is failing, split the cargo test into multiple tests. Since Sccache can't be invoked in parallel, we use the `serial_test` to serialize testing,otherwise cargo by default would start them in parallel. The logger is now also lazily initialized, so the first test to run will initialize it. It now writes a linebreak, because otherwise the output is hard to read with `RUST_LOG=debug cargo test --test sccache_cargo -- --nocapture`. We catch panics (which are not intended by the tests ) to ensure that the temporary directory for the test gets cleaned up. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> Remove panic=abort from CI coverage test I suspect the commandline was just taken like that from the example here: https://doc.rust-lang.org/stable/unstable-book/compiler-flags/profile.html However, there seems to be no reason to actually abort, since we don't have a custom test harness or anything. Since we want to catch panics, so we can correctly clean up, we need panic=unwind. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Parse env_deps from dep-info This will trigger rebuilds if environment variables changed that the rust code depended on with env!. On the Rust side this requires at least Rust 1.46, otherwise there will be no env-dep info in the dep-info file. In that case we cannot detect the dependency on the env-value, and behaviour is unchanged compared to the current sccache behaviour. With recent Rust versions however, we can trigger a rebuild if a variable that is referenced via env! or option_env! is changed. Other env variables like `CARGO_*` or `RUSTFLAGS` which may affect the compilation are not listed in the dep-info file, so they have to be blanket added (as is currently already the case). Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com> * Add test for cargo env_deps The previous commit added support for parsing "env_dep" information from dep_info files. This commit adds a test for changing an environment variable, that is referenced in rust code via env!, and asserts that sccache rebuilds and the rust code uses the new value of the changed environment variable. Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-03-02 00:21:36 +03:00
2018-01-07 18:33:04 +03:00
[[package]]
name = "socket2"
version = "0.4.7"
2018-01-07 18:33:04 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "02e2d2db9033d13a1567121ddd7a095ee144db4e1ca1b1bda3419bc0da294ebd"
dependencies = [
"libc",
"winapi",
]
2018-01-07 18:33:04 +03:00
[[package]]
name = "spin"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
[[package]]
name = "spin"
version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f6002a767bff9e83f8eeecf883ecb8011875a21ae8da43bffb817a57e78cc09"
dependencies = [
"lock_api",
]
[[package]]
name = "spki"
version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "67cf02bbac7a337dc36e4f5a693db6c21e7863f45070f7064577eb4367a3212b"
dependencies = [
"base64ct",
"der",
]
[[package]]
name = "static_assertions"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "stringmatch"
version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a8c0faab770316c3838f895fc2dfc3a8707ef4da48676f1014e1061ebd583b40"
dependencies = [
"regex",
]
[[package]]
name = "strip-ansi-escapes"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "011cbb39cf7c1f62871aea3cc46e5817b0937b49e9447370c93cacbe93a766d8"
dependencies = [
"vte",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "strsim"
2022-03-11 07:33:09 +03:00
version = "0.10.0"
2016-05-12 22:03:37 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-03-11 07:33:09 +03:00
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
2016-05-12 22:03:37 +03:00
2020-12-08 08:07:09 +03:00
[[package]]
name = "subtle"
version = "2.4.1"
2020-12-08 08:07:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601"
2020-12-08 08:07:09 +03:00
[[package]]
name = "syn"
version = "1.0.104"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ae548ec36cf198c0ef7710d3c230987c2d6d7bd98ad6edc0274462724c585ce"
dependencies = [
"proc-macro2",
"quote",
"unicode-ident",
]
Move from protobuf to bincode for a wire format This commit migrates away from the `protobuf` crate to instead just working with bincode on the wire as a serialization format. This is done by leveraging a few different crates: * The `bincode` and `serde_derive` crates are used to define serialization for Rust structures as well as provide a bincode implementation. * The `tokio_io::codec::length_delimited` module implements framing via length prefixes to transform an asynchronous stream of bytes into a literal `Stream` of `BytesMut`. * The `tokio_serde_bincode` crate is then used to tie it all together, parsing these `BytesMut` as the request/response types of sccache. Most of the changes here are related to moving away from the protobuf API throughout the codebase (e.g. `has_foo` and `take_foo`) towards a more rustic-ish API that just uses enums/structs. Overall it felt quite natural (as one would expect) to just use the raw enum/struct values. This may not be quite as performant as before but that doesn't really apply to sccache's use case where perf is hugely dominated by actually compiling and hashing, so I'm not too too worried about that. My personal motivation for this is twofold: 1. Using `protobuf` was a little clunky throughout the codebase and definitely had some sharp edges that felt good to smooth out. 2. There's currently what I believe some mysterious segfault and/or stray write happening in sccache and I'm not sure where. The `protobuf` crate had a lot of `unsafe` code and in lieu of actually auditing it I figured it'd be good to kill two birds with one stone. I have no idea if this fixes my segfault problem (I never could reproduce it) but I figured it's worth a shot.
2017-03-22 20:21:52 +03:00
[[package]]
name = "syslog"
version = "6.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "978044cc68150ad5e40083c9f6a725e6fd02d7ba1bcf691ec2ff0d66c0b41acc"
dependencies = [
"error-chain",
"hostname",
"libc",
"log",
"time 0.3.17",
]
2018-04-12 04:25:15 +03:00
[[package]]
name = "tar"
version = "0.4.38"
2018-04-12 04:25:15 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b55807c0344e1e6c04d7c965f5289c39a8d94ae23ed5c0b57aabac549f871c6"
dependencies = [
"filetime",
"libc",
"xattr",
]
2018-04-12 04:25:15 +03:00
[[package]]
name = "tempfile"
version = "3.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "af18f7ae1acd354b992402e9ec5864359d693cd8a79dcbef59f76891701c1e95"
dependencies = [
"cfg-if 1.0.0",
"fastrand",
"redox_syscall",
"rustix 0.36.4",
"windows-sys 0.42.0",
]
[[package]]
name = "termcolor"
version = "1.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
dependencies = [
2020-04-28 07:55:50 +03:00
"winapi-util",
]
2022-04-01 06:38:11 +03:00
[[package]]
name = "terminal_size"
2022-11-30 08:59:42 +03:00
version = "0.2.2"
2022-04-01 06:38:11 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "40ca90c434fd12083d1a6bdcbe9f92a14f96c8a1ba600ba451734ac334521f7a"
2022-04-01 06:38:11 +03:00
dependencies = [
"rustix 0.35.13",
"windows-sys 0.42.0",
2022-04-01 06:38:11 +03:00
]
[[package]]
name = "termtree"
version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "95059e91184749cb66be6dc994f67f182b6d897cb3df74a5bf66b5e709295fd8"
[[package]]
name = "thirtyfour"
version = "0.27.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ac2540aff94b9f8d89a94bb5d8cc5e71560f78ee8f6c953cd31469083c61f6d"
dependencies = [
"async-trait",
"base64 0.13.1",
"chrono",
"displaydoc",
"futures",
"log",
"reqwest",
"serde",
"serde_json",
"serde_repr",
"stringmatch",
"thiserror",
"tokio",
"urlparse",
]
[[package]]
name = "thirtyfour_sync"
version = "0.27.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ab1e47e6c2fed609d851c6f6171a559ecffb1d121f2d6e02dd390e90ea2c3d38"
dependencies = [
"base64 0.13.1",
"log",
"reqwest",
"serde",
"serde_json",
"stringmatch",
"thirtyfour",
]
[[package]]
name = "thiserror"
version = "1.0.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a9cd18aa97d5c45c6603caea1da6628790b37f7a34b6ca89522331c5180fed0"
dependencies = [
"thiserror-impl",
]
[[package]]
name = "thiserror-impl"
version = "1.0.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1fb327af4685e4d03fa8cbcf1716380da910eeb2bb8be417e7f9fd3fb164f36f"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "threadpool"
2020-06-11 04:40:05 +03:00
version = "1.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-06-11 04:40:05 +03:00
checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"
dependencies = [
"num_cpus",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "time"
2022-11-30 08:59:42 +03:00
version = "0.1.43"
2016-05-12 22:03:37 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438"
dependencies = [
"libc",
"winapi",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "time"
version = "0.3.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a561bf4617eebd33bca6434b988f39ed798e527f51a1e797d0ee4f61c0a38376"
dependencies = [
"itoa",
"libc",
"num_threads",
"serde",
"time-core",
"time-macros",
]
[[package]]
name = "time-core"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2e153e1f1acaef8acc537e68b44906d2db6436e2b35ac2c6b42640fff91f00fd"
[[package]]
name = "time-macros"
version = "0.2.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d967f99f534ca7e495c575c62638eebc2898a8c84c119b89e250477bc4ba16b2"
dependencies = [
"time-core",
]
[[package]]
name = "tiny_http"
2022-11-27 06:48:49 +03:00
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-27 06:48:49 +03:00
checksum = "389915df6413a2e74fb181895f933386023c71110878cd0825588928e64cdc82"
dependencies = [
"ascii",
"chunked_transfer",
2022-11-27 06:48:49 +03:00
"httpdate",
"log",
"openssl",
2022-11-27 06:48:49 +03:00
"zeroize",
]
2020-12-08 08:07:09 +03:00
[[package]]
name = "tinyvec"
version = "1.6.0"
2020-12-08 08:07:09 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
2020-12-08 08:07:09 +03:00
dependencies = [
"tinyvec_macros",
]
[[package]]
name = "tinyvec_macros"
version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]]
name = "tokio"
version = "1.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "03201d01c3c27a29c8a5cee5b55a93ddae1ccf6f08f65365c2c918f8c1b76f64"
dependencies = [
"autocfg",
2022-11-14 08:25:38 +03:00
"bytes",
2020-12-10 01:47:15 +03:00
"libc",
"memchr",
"mio",
"num_cpus",
"parking_lot",
"pin-project-lite",
"signal-hook-registry",
"socket2",
"tokio-macros",
"windows-sys 0.45.0",
2020-12-10 01:47:15 +03:00
]
[[package]]
name = "tokio-macros"
2022-11-30 08:59:42 +03:00
version = "1.7.0"
Rewrite the server module with Tokio This commit rewrites the `server` module of sccache to be backed with Tokio. The previous version was written with `mio`, which Tokio is built on, but is unfortunately less ergonomic. Tokio is the state-of-the-art for asynchronous programming in Rust and sccache serves as a great testing ground for ergonomics! It's intended that the support added here will eventually extend to many other operations that sccache does as well. For example thread spawning has all been replaced with `CpuPool` to have a shared pool for I/O operations and such (namely the filesystem). Eventually the HTTP requests made by the S3 backend can be integrated with the Tokio branch of Hyper as well to run that on the event loop instead of in a worker thread. I'd also like to eventually extend this with `tokio-process` as well to move process spawning off helper threads as well, but I'm leaving that to a future commit as well. Overall I found the transition was quite smooth, with the high level architecture look like: * The `tokio-proto` crate is used in streaming mode. The streaming part is used for the one RPC sccache gets which requires a second response to be sent later on. This second response is the "response body" in tokio-proto terms. * All of sccache's logic is manifested in an implementation of the `Service` trait. * The transport layer is provided with `tokio_core::io::{Framed, Codec}`, and simple deserialization/serialization is performed with protobuf. Some differences in design are: * The `SccacheService` for now is just a bunch of reference-counted pointers, making it cheap to clone. As the futures it returns progress they will each retain a reference to a cloned copy of the `SccacheService`. Before all this data was just stored and manipulated in a struct directly, but it's now directly managed through shared memory. * The storage backends share a thread pool with the main server instead of spawning threads. And finally, some things I've learned along the way: * Sharing data between futures isn't a trivial operation. It took an explicit decision to use `Rc` and I'm not sure I'm 100% happy with how the ergonomics played out. * Shutdown is pretty tricky here. I've tried to carry over all the previous logic but it definitely required not using `TcpServer` in tokio-proto at the very least, and otherwise required a few custom futures and such to track the various states. I have a hunch that tokio-proto could provide more options out of the box for something like this.
2017-01-31 04:04:03 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "b557f72f448c511a979e2564e55d74e6c4432fc96ff4f6241bc6bded342643b7"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
Rewrite the server module with Tokio This commit rewrites the `server` module of sccache to be backed with Tokio. The previous version was written with `mio`, which Tokio is built on, but is unfortunately less ergonomic. Tokio is the state-of-the-art for asynchronous programming in Rust and sccache serves as a great testing ground for ergonomics! It's intended that the support added here will eventually extend to many other operations that sccache does as well. For example thread spawning has all been replaced with `CpuPool` to have a shared pool for I/O operations and such (namely the filesystem). Eventually the HTTP requests made by the S3 backend can be integrated with the Tokio branch of Hyper as well to run that on the event loop instead of in a worker thread. I'd also like to eventually extend this with `tokio-process` as well to move process spawning off helper threads as well, but I'm leaving that to a future commit as well. Overall I found the transition was quite smooth, with the high level architecture look like: * The `tokio-proto` crate is used in streaming mode. The streaming part is used for the one RPC sccache gets which requires a second response to be sent later on. This second response is the "response body" in tokio-proto terms. * All of sccache's logic is manifested in an implementation of the `Service` trait. * The transport layer is provided with `tokio_core::io::{Framed, Codec}`, and simple deserialization/serialization is performed with protobuf. Some differences in design are: * The `SccacheService` for now is just a bunch of reference-counted pointers, making it cheap to clone. As the futures it returns progress they will each retain a reference to a cloned copy of the `SccacheService`. Before all this data was just stored and manipulated in a struct directly, but it's now directly managed through shared memory. * The storage backends share a thread pool with the main server instead of spawning threads. And finally, some things I've learned along the way: * Sharing data between futures isn't a trivial operation. It took an explicit decision to use `Rc` and I'm not sure I'm 100% happy with how the ergonomics played out. * Shutdown is pretty tricky here. I've tried to carry over all the previous logic but it definitely required not using `TcpServer` in tokio-proto at the very least, and otherwise required a few custom futures and such to track the various states. I have a hunch that tokio-proto could provide more options out of the box for something like this.
2017-01-31 04:04:03 +03:00
[[package]]
name = "tokio-native-tls"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b"
dependencies = [
"native-tls",
"tokio",
]
[[package]]
name = "tokio-rustls"
2022-11-14 08:25:38 +03:00
version = "0.23.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-14 08:25:38 +03:00
checksum = "c43ee83903113e03984cb9e5cebe6c04a5116269e900e3ddba8f068a62adda59"
dependencies = [
"rustls",
"tokio",
"webpki",
]
Move from protobuf to bincode for a wire format This commit migrates away from the `protobuf` crate to instead just working with bincode on the wire as a serialization format. This is done by leveraging a few different crates: * The `bincode` and `serde_derive` crates are used to define serialization for Rust structures as well as provide a bincode implementation. * The `tokio_io::codec::length_delimited` module implements framing via length prefixes to transform an asynchronous stream of bytes into a literal `Stream` of `BytesMut`. * The `tokio_serde_bincode` crate is then used to tie it all together, parsing these `BytesMut` as the request/response types of sccache. Most of the changes here are related to moving away from the protobuf API throughout the codebase (e.g. `has_foo` and `take_foo`) towards a more rustic-ish API that just uses enums/structs. Overall it felt quite natural (as one would expect) to just use the raw enum/struct values. This may not be quite as performant as before but that doesn't really apply to sccache's use case where perf is hugely dominated by actually compiling and hashing, so I'm not too too worried about that. My personal motivation for this is twofold: 1. Using `protobuf` was a little clunky throughout the codebase and definitely had some sharp edges that felt good to smooth out. 2. There's currently what I believe some mysterious segfault and/or stray write happening in sccache and I'm not sure where. The `protobuf` crate had a lot of `unsafe` code and in lieu of actually auditing it I figured it'd be good to kill two birds with one stone. I have no idea if this fixes my segfault problem (I never could reproduce it) but I figured it's worth a shot.
2017-03-22 20:21:52 +03:00
[[package]]
name = "tokio-serde"
version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "911a61637386b789af998ee23f50aa30d5fd7edcec8d6d3dedae5e5815205466"
dependencies = [
2022-11-14 08:25:38 +03:00
"bytes",
"futures-core",
"futures-sink",
"pin-project",
]
2022-11-14 14:54:39 +03:00
[[package]]
name = "tokio-util"
version = "0.7.7"
2022-11-14 14:54:39 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5427d89453009325de0d8f342c9490009f76e999cb7672d77e46267448f7e6b2"
dependencies = [
2022-11-14 08:25:38 +03:00
"bytes",
"futures-core",
"futures-sink",
"pin-project-lite",
"tokio",
"tracing",
]
[[package]]
name = "toml"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b403acf6f2bb0859c93c7f0d967cb4a75a7ac552100f9322faf64dc047669b21"
dependencies = [
"serde",
"serde_spanned",
"toml_datetime",
"toml_edit",
]
[[package]]
name = "toml_datetime"
version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3ab8ed2edee10b50132aed5f331333428b011c99402b5a534154ed15746f9622"
dependencies = [
"serde",
]
[[package]]
name = "toml_edit"
version = "0.19.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "239410c8609e8125456927e6707163a3b1fdb40561e4b803bc041f466ccfdc13"
dependencies = [
"indexmap",
"serde",
"serde_spanned",
"toml_datetime",
"winnow",
]
[[package]]
name = "tower"
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c"
dependencies = [
"tower-layer",
"tower-service",
"tracing",
]
[[package]]
name = "tower-layer"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0"
[[package]]
name = "tower-service"
version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
[[package]]
name = "tracing"
version = "0.1.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8"
dependencies = [
2020-12-08 08:07:09 +03:00
"cfg-if 1.0.0",
"log",
"pin-project-lite",
"tracing-core",
]
[[package]]
name = "tracing-core"
version = "0.1.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "24eb03ba0eab1fd845050058ce5e616558e8f8d8fca633e6b163fe25c797213a"
dependencies = [
"once_cell",
]
[[package]]
name = "try-lock"
2020-12-08 08:07:09 +03:00
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-12-08 08:07:09 +03:00
checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
[[package]]
name = "twoway"
version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59b11b2b5241ba34be09c3cc85a36e56e48f9888862e19cedf23336d35316ed1"
dependencies = [
"memchr",
]
[[package]]
name = "typenum"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
[[package]]
name = "unicase"
2019-12-10 00:17:20 +03:00
version = "2.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6"
dependencies = [
"version_check",
]
[[package]]
name = "unicode-bidi"
version = "0.3.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992"
[[package]]
name = "unicode-ident"
version = "1.0.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3"
[[package]]
name = "unicode-normalization"
version = "0.1.22"
2017-04-05 17:42:06 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
dependencies = [
2020-12-08 08:07:09 +03:00
"tinyvec",
]
2017-04-05 17:42:06 +03:00
[[package]]
name = "untrusted"
version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a"
[[package]]
name = "ureq"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b97acb4c28a254fd7a4aeec976c46a7fa404eac4d7c134b30c75144846d7cb8f"
dependencies = [
"base64 0.13.1",
"chunked_transfer",
"log",
"once_cell",
"rustls",
"rustls-native-certs",
"url",
"webpki",
"webpki-roots",
]
2016-05-12 22:03:37 +03:00
[[package]]
2019-12-10 00:17:20 +03:00
name = "url"
version = "2.3.1"
2016-05-12 22:03:37 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643"
dependencies = [
2020-12-08 08:07:09 +03:00
"form_urlencoded",
"idna",
"percent-encoding",
]
2016-05-12 22:03:37 +03:00
[[package]]
name = "urlparse"
version = "0.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "110352d4e9076c67839003c7788d8604e24dcded13e0b375af3efaa8cf468517"
[[package]]
name = "utf8parse"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "936e4b492acfd135421d8dca4b1aa80a7bfc26e702ef3af710e0752684df5372"
[[package]]
name = "uuid"
version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1674845326ee10d37ca60470760d4288a6f80f304007d92e5c53bab78c9cfd79"
dependencies = [
"getrandom 0.2.8",
"serde",
]
2018-01-07 18:33:04 +03:00
[[package]]
name = "vcpkg"
version = "0.2.15"
2018-01-07 18:33:04 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
2018-01-07 18:33:04 +03:00
2016-05-12 22:03:37 +03:00
[[package]]
name = "version-compare"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "579a42fc0b8e0c63b76519a339be31bed574929511fa53c1a3acae26eb258f29"
2018-01-07 18:33:04 +03:00
[[package]]
name = "version_check"
version = "0.9.4"
2019-12-10 00:17:20 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
2019-12-10 00:17:20 +03:00
[[package]]
name = "void"
version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a02e4885ed3bc0f2de90ea6dd45ebcbb66dacffe03547fadbb0eeae2770887d"
[[package]]
name = "vte"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6cbce692ab4ca2f1f3047fcf732430249c0e971bfdd2b234cf2c47ad93af5983"
dependencies = [
"arrayvec 0.5.2",
"utf8parse",
"vte_generate_state_changes",
]
[[package]]
name = "vte_generate_state_changes"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d257817081c7dffcdbab24b9e62d2def62e2ff7d00b1c20062551e6cccc145ff"
dependencies = [
"proc-macro2",
"quote",
]
[[package]]
name = "wait-timeout"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9f200f5b12eb75f8c1ed65abd4b2db8a6e1b138a20de009dacee265a2498f3f6"
dependencies = [
"libc",
]
[[package]]
name = "walkdir"
version = "2.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56"
dependencies = [
2020-07-14 13:14:02 +03:00
"same-file",
"winapi",
"winapi-util",
]
[[package]]
name = "want"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
dependencies = [
"log",
"try-lock",
]
[[package]]
name = "wasi"
2020-04-28 07:55:50 +03:00
version = "0.9.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-04-28 07:55:50 +03:00
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
[[package]]
name = "wasi"
version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "wasm-bindgen"
version = "0.2.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268"
dependencies = [
"cfg-if 1.0.0",
"wasm-bindgen-macro",
]
[[package]]
name = "wasm-bindgen-backend"
version = "0.2.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142"
dependencies = [
"bumpalo",
"log",
"once_cell",
"proc-macro2",
"quote",
"syn",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-futures"
2022-11-30 08:59:42 +03:00
version = "0.4.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "2eb6ec270a31b1d3c7e266b999739109abce8b6c87e4b31fcfcd788b65267395"
dependencies = [
"cfg-if 1.0.0",
"js-sys",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "wasm-bindgen-macro"
version = "0.2.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
]
[[package]]
name = "wasm-bindgen-macro-support"
version = "0.2.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c"
dependencies = [
"proc-macro2",
"quote",
"syn",
"wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
version = "0.2.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f"
[[package]]
name = "wasm-streams"
version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6bbae3363c08332cadccd13b67db371814cd214c2524020932f0804b8cf7c078"
dependencies = [
"futures-util",
"js-sys",
"wasm-bindgen",
"wasm-bindgen-futures",
"web-sys",
]
[[package]]
name = "web-sys"
2022-11-30 08:59:42 +03:00
version = "0.3.59"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-30 08:59:42 +03:00
checksum = "ed055ab27f941423197eb86b2035720b1a3ce40504df082cac2ecc6ed73335a1"
dependencies = [
"js-sys",
"wasm-bindgen",
]
[[package]]
name = "webpki"
2022-11-14 08:25:38 +03:00
version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
2022-11-14 08:25:38 +03:00
checksum = "f095d78192e208183081cc07bc5515ef55216397af48b873e5edcd72637fa1bd"
dependencies = [
"ring",
"untrusted",
]
[[package]]
name = "webpki-roots"
version = "0.22.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "368bfe657969fb01238bb756d351dcade285e0f6fcbd36dcb23359a5169975be"
dependencies = [
"webpki",
]
2016-07-14 13:38:26 +03:00
[[package]]
name = "which"
version = "4.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2441c784c52b289a054b7201fc93253e288f094e2f4be9058343127c4226a269"
dependencies = [
"either",
"libc",
"once_cell",
]
2016-07-14 13:38:26 +03:00
2018-01-07 18:33:04 +03:00
[[package]]
name = "winapi"
2020-12-08 08:07:09 +03:00
version = "0.3.9"
2018-01-07 18:33:04 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-12-08 08:07:09 +03:00
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
dependencies = [
"winapi-i686-pc-windows-gnu",
"winapi-x86_64-pc-windows-gnu",
]
2018-01-07 18:33:04 +03:00
[[package]]
name = "winapi-i686-pc-windows-gnu"
2018-02-01 18:29:23 +03:00
version = "0.4.0"
2018-01-07 18:33:04 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
2018-01-07 18:33:04 +03:00
[[package]]
name = "winapi-util"
2020-04-28 07:55:50 +03:00
version = "0.1.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
2020-04-28 07:55:50 +03:00
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
dependencies = [
"winapi",
]
2018-01-07 18:33:04 +03:00
[[package]]
name = "winapi-x86_64-pc-windows-gnu"
2018-02-01 18:29:23 +03:00
version = "0.4.0"
2018-01-07 18:33:04 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
2018-01-07 18:33:04 +03:00
[[package]]
name = "windows-sys"
version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"
dependencies = [
"windows_aarch64_msvc 0.36.1",
"windows_i686_gnu 0.36.1",
"windows_i686_msvc 0.36.1",
"windows_x86_64_gnu 0.36.1",
"windows_x86_64_msvc 0.36.1",
]
[[package]]
name = "windows-sys"
version = "0.42.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_msvc 0.42.1",
"windows_i686_gnu 0.42.1",
"windows_i686_msvc 0.42.1",
"windows_x86_64_gnu 0.42.1",
"windows_x86_64_gnullvm",
"windows_x86_64_msvc 0.42.1",
]
[[package]]
name = "windows-sys"
version = "0.45.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
dependencies = [
"windows-targets",
]
[[package]]
name = "windows-targets"
version = "0.42.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8e2522491fbfcd58cc84d47aeb2958948c4b8982e9a2d8a2a35bbaed431390e7"
dependencies = [
"windows_aarch64_gnullvm",
"windows_aarch64_msvc 0.42.1",
"windows_i686_gnu 0.42.1",
"windows_i686_msvc 0.42.1",
"windows_x86_64_gnu 0.42.1",
"windows_x86_64_gnullvm",
"windows_x86_64_msvc 0.42.1",
]
[[package]]
name = "windows_aarch64_gnullvm"
version = "0.42.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c9864e83243fdec7fc9c5444389dcbbfd258f745e7853198f365e3c4968a608"
[[package]]
name = "windows_aarch64_msvc"
version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
[[package]]
name = "windows_aarch64_msvc"
version = "0.42.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c8b1b673ffc16c47a9ff48570a9d85e25d265735c503681332589af6253c6c7"
[[package]]
name = "windows_i686_gnu"
version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
[[package]]
name = "windows_i686_gnu"
version = "0.42.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "de3887528ad530ba7bdbb1faa8275ec7a1155a45ffa57c37993960277145d640"
[[package]]
name = "windows_i686_msvc"
version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
[[package]]
name = "windows_i686_msvc"
version = "0.42.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf4d1122317eddd6ff351aa852118a2418ad4214e6613a50e0191f7004372605"
[[package]]
name = "windows_x86_64_gnu"
version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
[[package]]
name = "windows_x86_64_gnu"
version = "0.42.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c1040f221285e17ebccbc2591ffdc2d44ee1f9186324dd3e84e99ac68d699c45"
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.42.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "628bfdf232daa22b0d64fdb62b09fcc36bb01f05a3939e20ab73aaf9470d0463"
[[package]]
name = "windows_x86_64_msvc"
version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
[[package]]
name = "windows_x86_64_msvc"
version = "0.42.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "447660ad36a13288b1db4d4248e857b510e8c3a225c822ba4fb748c0aafecffd"
[[package]]
name = "winnow"
version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ae8970b36c66498d8ff1d66685dc86b91b29db0c7739899012f63a63814b4b28"
dependencies = [
"memchr",
]
[[package]]
name = "winreg"
version = "0.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"
dependencies = [
"winapi",
]
2018-04-12 04:25:15 +03:00
[[package]]
name = "xattr"
version = "0.2.3"
2018-04-12 04:25:15 +03:00
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6d1526bbe5aaeb5eb06885f4d987bcdfa5e23187055de9b83fe00156a821fabc"
dependencies = [
"libc",
]
2018-04-12 04:25:15 +03:00
[[package]]
name = "zeroize"
version = "1.5.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c394b5bd0c6f669e7275d9c20aa90ae064cb22e75a1cad54e1b34088034b149f"
[[package]]
name = "zip"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0445d0fbc924bb93539b4316c11afb121ea39296f99a3c4c9edad09e3658cdef"
dependencies = [
2020-12-08 08:07:09 +03:00
"byteorder",
"crc32fast",
"crossbeam-utils",
]
[[package]]
name = "zstd"
version = "0.12.3+zstd.1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "76eea132fb024e0e13fd9c2f5d5d595d8a967aa72382ac2f9d39fcc95afd0806"
dependencies = [
"zstd-safe",
]
[[package]]
name = "zstd-safe"
version = "6.0.4+zstd.1.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7afb4b54b8910cf5447638cb54bf4e8a65cbedd783af98b98c62ffe91f185543"
dependencies = [
"libc",
"zstd-sys",
]
[[package]]
name = "zstd-sys"
version = "2.0.7+zstd.1.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94509c3ba2fe55294d752b79842c530ccfab760192521df74a081a78d2b3c7f5"
dependencies = [
"cc",
"libc",
"pkg-config",
]