Граф коммитов

1178 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 2acfef8095
Bump serde_json from 1.0.79 to 1.0.81 (#1203)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.79 to 1.0.81.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.79...v1.0.81)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 07:27:39 +02:00
dependabot[bot] ef6728183b
Bump serial_test from 0.6.0 to 0.7.0 (#1202)
Bumps [serial_test](https://github.com/palfrey/serial_test) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/palfrey/serial_test/releases)
- [Commits](https://github.com/palfrey/serial_test/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: serial_test
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 07:26:49 +02:00
dependabot[bot] 02e859d51f
Bump openssl from 0.10.38 to 0.10.40 (#1204)
Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.38 to 0.10.40.
- [Release notes](https://github.com/sfackler/rust-openssl/releases)
- [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.38...openssl-v0.10.40)

---
updated-dependencies:
- dependency-name: openssl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 07:25:47 +02:00
dependabot[bot] 83ee06a150
Bump jsonwebtoken from 8.0.1 to 8.1.1 (#1200)
Bumps [jsonwebtoken](https://github.com/Keats/jsonwebtoken) from 8.0.1 to 8.1.1.
- [Release notes](https://github.com/Keats/jsonwebtoken/releases)
- [Changelog](https://github.com/Keats/jsonwebtoken/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Keats/jsonwebtoken/compare/v8.0.1...v8.1.1)

---
updated-dependencies:
- dependency-name: jsonwebtoken
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 07:25:07 +02:00
dependabot[bot] 8a77b25eb2
Bump anyhow from 1.0.55 to 1.0.58 (#1199)
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.55 to 1.0.58.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.55...1.0.58)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-22 07:24:18 +02:00
dependabot[bot] 313e0d71ec
Bump libc from 0.2.119 to 0.2.126 (#1192)
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.119 to 0.2.126.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.119...0.2.126)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 15:10:28 +02:00
dependabot[bot] 84f5cb4759
Bump reqwest from 0.11.9 to 0.11.11 (#1189)
Bumps [reqwest](https://github.com/seanmonstar/reqwest) from 0.11.9 to 0.11.11.
- [Release notes](https://github.com/seanmonstar/reqwest/releases)
- [Changelog](https://github.com/seanmonstar/reqwest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/reqwest/compare/v0.11.9...v0.11.11)

---
updated-dependencies:
- dependency-name: reqwest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 14:47:55 +02:00
dependabot[bot] 27efd5ff5f
Bump filetime from 0.2.15 to 0.2.16 (#1194)
Bumps [filetime](https://github.com/alexcrichton/filetime) from 0.2.15 to 0.2.16.
- [Release notes](https://github.com/alexcrichton/filetime/releases)
- [Commits](https://github.com/alexcrichton/filetime/commits)

---
updated-dependencies:
- dependency-name: filetime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 14:47:06 +02:00
dependabot[bot] 56e75e4a19
Bump log from 0.4.14 to 0.4.17 (#1196)
Bumps [log](https://github.com/rust-lang/log) from 0.4.14 to 0.4.17.
- [Release notes](https://github.com/rust-lang/log/releases)
- [Changelog](https://github.com/rust-lang/log/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/log/compare/0.4.14...0.4.17)

---
updated-dependencies:
- dependency-name: log
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 14:45:06 +02:00
dependabot[bot] 1fd386d089
Bump async-trait from 0.1.52 to 0.1.56 (#1193)
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.52 to 0.1.56.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.52...0.1.56)

---
updated-dependencies:
- dependency-name: async-trait
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 14:44:46 +02:00
dependabot[bot] 93bcf9ed37
Bump toml from 0.5.8 to 0.5.9 (#1191)
Bumps [toml](https://github.com/alexcrichton/toml-rs) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/alexcrichton/toml-rs/releases)
- [Commits](https://github.com/alexcrichton/toml-rs/compare/0.5.8...0.5.9)

---
updated-dependencies:
- dependency-name: toml
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 14:43:54 +02:00
dependabot[bot] 58c820cbb9
Bump regex from 1.5.5 to 1.5.6 (#1195)
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.5 to 1.5.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.5.5...1.5.6)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-21 14:42:33 +02:00
Sylvestre Ledru 9bd1b623b9
Add the dependabot configuration for crates & github-actions 2022-06-21 09:22:07 +02:00
Brian Silverman e818668677 Change build to server 2022-06-16 18:07:45 +02:00
Brian Silverman 4f77c0e630 State local storage is not concurrent
After reading all the docs, I came away with the impression that the local storage may be safely used concurrently. I tried that, and it almost worked, until it filled it. Clarifying this should fix #407 and help future users avoid this problem.
2022-06-16 18:07:45 +02:00
Hongli Lai c6bc42219a Remove var lookup tests 2022-06-16 08:20:21 +02:00
Hongli Lai 3fb48897db Improve Azure test coverage
This also simplifies `azure::credentials::EnvironmentProvider` (which only has 1 method) into simply exporting a `credentials_from_environment()` function.
2022-06-16 08:20:21 +02:00
aeiouaeiouaeiouaeiouaeiouaeiou 14a36037b4 Update actions to v3
Update the version of the actions used in the GitHub workflow file.
2022-06-16 08:17:49 +02:00
Byoungchan Lee fce7af881f Apply cargo fmt 2022-06-09 13:58:02 +02:00
Byoungchan Lee d7df5d5862 Support `-Xclang -no-opaque-pointers` in clang
Some projects, such as chromium, have recently been using
`-Xclang -no-opaque-pointers` [1] to deal with the issue of changing
opaque pointers in llvm[2], but the current sccache cannot handle that
flag.

This patch is to teach sccache to parse those flags so that it can solve
issues like [3].

[1] https://chromium-review.googlesource.com/c/chromium/src/+/3584317
[2] https://llvm.org/docs/OpaquePointers.html
[3] https://github.com/denoland/rusty_v8/issues/971
2022-06-09 13:58:02 +02:00
dependabot[bot] 78998f7480 Bump regex from 1.5.4 to 1.5.5
Bumps [regex](https://github.com/rust-lang/regex) from 1.5.4 to 1.5.5.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.5.4...1.5.5)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-09 09:51:12 +02:00
Igor Matuszewski 963f137c8a
Compress toolchains in parallel fashion via `gzp` crate (#1081)
* Compress toolchains in parallel fashion via `gzp` crate

* Use previous compression level of 6
2022-05-20 17:00:35 +02:00
Hongli Lai d5c8f4d144
Fix spawning excessive conhost processes on Windows (#1143)
Fixes https://github.com/mozilla/sccache/issues/514#issuecomment-1061945431 (comment 2022-03-08 by @mitchhentges)

Any console-based subprocess spawned with CREATE_NO_WINDOW actually has a hidden console, and thus an associated conhost process. Since the sccache server is already started with CREATE_NO_WINDOW, it's unnecessary to spawn further subprocesses with CREATE_NO_WINDOW. Removing this flag allows subprocesses to share the sccache server's hidden console, thus avoiding each subprocess from getting its own conhost.

For an extended explanation see this comment and its follow-ups:
https://github.com/mozilla/sccache/issues/514#issuecomment-1068961965
2022-05-20 10:21:01 +02:00
Jonathan Schwender 5032a8303c
Increase the MSRV and bump dependencies (#1137)
* Bump the MSRV to 1.58

Bumps the official MSRV to 1.58.
This is likely more than required the upcoming version bumps.

* Upgrade cargo zstd to 0.10

* Bump serial_test to v0.6

Changelog does not mention any breaking changes.

* Bump blake to v1

* Bump rouille to 3.5

Required to bump syslog to v6, since otherwise no common version
can be selected for `time`

* Bump syslog to v6

No changelog available. Depends on rouille bump to 3.5, to get a
common version of ´time´.

* Upgrade JWT to v8

The explicit insecure decode method was removed and replaced by
an option for the Validation struct.
The `exp` field had to be added to JobJwt, since otherwise the validation would fail at runtime.
Apparently the `exp` field is required now, even if the valdiation of `exp` is turned off.
2022-05-05 10:47:19 -04:00
Mitchell Hentges f6e36e68c6 (cargo-release) version 0.3.0 2022-05-04 14:52:32 -04:00
Mitchell Hentges 99e0fde5f1
Rewrite dist client interface to uniformly use async (#1166)
Fixes #1161

Co-authored-by: Igor Matuszewski <xanewok@gmail.com>
2022-05-02 11:14:41 -04:00
Michael Kruse da2934fcc2
Use clang -fminimize-whitespace to increase cache hits. (#1162)
* Add -fminimize-whitespace preprocessor flag when Clang >= 14 to increase cache hits

This proof of concept tries to take advantage of the new `-fminimize-whitespace`
preprocessor option in Clang. `-fminimize-whitespace` was added to Clang with the
intention to help increase the chance of a cache hit in tools like `sccache`
when only whitespace changes.

I also added a `version()` method to CCompilerImpl trait to expose the compiler
version to the preprocessor. This could be useful if version-dependent
features are added to `sccache` in the future.

Feedback on this is definitely welcome!

* Add tests for clang whitespace normalization

* Use clang -fminimize-whitespace to incread cache hits.

* Use ubuntu-22.04 for testing Clang 14

* Move compiler version from CCompiler to each CCompilerImpl.

* Use semver

Co-authored-by: Max Fan <root@max.fan>
Co-authored-by: Michael Kruse <sccache@meinersbur.de>
2022-04-29 08:21:18 +02:00
Mitchell Hentges 58f9ee2794
Replace usages of blocking `reqwest` to be async instead (#1164)
* Replace `dist-client` usages of blocking `reqwest` to be async instead

The blocking implementation of `reqwest` now uses an internal `tokio`
runtime as of `0.10`. `tokio` doesn't like having nested runtimes, so it
raises an error when `request>=0.10` is used from a tokio-`async`
function.

The primary rationale for continuing to use "blocking" `reqwest` was
because its async implementation was "extremely limited" and didn't
support streamed data from a file.

However, now, we're able to leverage
`tokio::fs::File -> AsyncRead -> ReaderStream -> Body::wrap_stream()`,
which obsoletes this one use case for blocking `reqwest`.

Convert all blocking usages of `reqwest` to `async` accordingly.

Fixes #1161.

* Avoid nested `tokio` runtime in `create_state()`

`tokio` doesn't allow for nested runtimes, yet `create_state` is a
non-async function that needs to run nested async code.

I'm not sure _exactly_ how this ran successfully before, but I'm
guessing that the updated `tokio` was stricter about nested runtimes.

Either way, work around this by manually reusing the current thread's
runtime with `Handle::try_current().enter()`. If no existing handle
exists (such as when `create_state()` is called from
entirely-non-async-code), then manually use `config.pool` again.
2022-04-26 11:14:57 -04:00
lissyx ec1457e8cb
Verify if a compile input is pure rlib or mixed rlib+staticlib before trimming (#1159)
Fixes #1158.

Co-authored-by: Alexandre Lissy <lissyx@lissyx.dyndns.org>
2022-04-14 10:54:00 -04:00
lissyx f8fc8d019f
Handle new 'rustc -Z ls' output lines (#1157)
Fixes #1156.

Co-authored-by: Alexandre Lissy <lissyx@lissyx.dyndns.org>
2022-04-14 10:49:54 -04:00
Mitchell Hentges 5edd91a739
Mark -std and -pedantic as pass-through flags for MSVC (#1151)
`-std` and `-pedantic` were handled specially to resolve gcc-specific
behaviour. However, for MSVC, these flags can continue to be handled the
way they were before: as pass-through options.

Fixes #1150.
2022-04-01 15:38:52 -04:00
Igor Matuszewski 68a6aa8a97
Ignore lockfiles of test crates used in the integration tests (#1149) 2022-03-22 12:36:59 -04:00
Vlad Ivanov bb7e458143
nvcc: support -ccbin / --compiler-bindir (#1147) 2022-03-21 17:07:51 -04:00
Mitchell Hentges 2940944371
Revert "Automatically remove "awaiting response" label on-comment (#1129)" (#1142)
This reverts commit 443b124eed.
2022-03-15 16:37:56 -04:00
Mitchell Hentges 443b124eed
Automatically remove "awaiting response" label on-comment (#1129)
Also will close tickets that have been "awaiting response" for over 15 days.
2022-03-15 12:08:08 -04:00
Martyn Gigg da7bf68500
MSVC: Pass through further /external flags (#1141)
Adding /experimental:external or /experimental:W... causes caching to fail:

[2022-03-14T09:34:13Z DEBUG sccache::server] check_compiler: Supported compiler
[2022-03-14T09:34:13Z DEBUG sccache::server] parse_arguments: CannotCache(multiple input files): ["/nologo", "/TP", "-Dlibrary_EXPORTS", ... "/experimental:external", "/external:I", "C:\\src", "/external:W0", "/O2", "/Ob2", "/DNDEBUG", "-MD", "/showIncludes", "/Fosrc\\library\\CMakeFiles\\library.dir\\speak.cpp.obj", "/Fdsrc\\library\\CMakeFiles\\library.dir\\", "/FS", "-c", "C:\\src\\library\\speak.cpp"]

This change adds the additional flags to the msvc_args macro and simply
passes them on to the compiler.
Tests have been added that use forward slashes instead of dashes
2022-03-14 11:38:06 -04:00
Igor Matuszewski 18ead2f6f6
Fix aarch64-unknown-linux-musl build by puliing GCC 10 specifically (#1139)
Previously, there would occur a mismatch on the GCC 9 version,
preventing us from installing it properly. Instead of that, try just
pulling GCC 10 rather than both 9 and 10.
2022-03-11 13:33:18 -05:00
Hongli Lai adc1e3d807
More complete unit tests for Azure Blob Storage backend (#1138)
* More complete unit tests for Azure Blob Storage backend

Pull request #1109 introduced key prefix support for the Azure backend, with
unit tests for `normalize_key()`, but those tests didn't test whether the
Storage impl *actually* used `normalize_key()` when constructing an API
request to Azure.

This change makes the unit tests more complete, by testing the Storage impl
directly through the use of a mock HTTP server as Azure API endpoint.

* Split up Azure storage tests
2022-03-09 11:49:49 -05:00
Michael Stahl d435d12b11
GCC: suppress rewrite_includes_only with pedantic flags (#1123)
* GCC: suppress rewrite_includes_only with pedantic flags

CoinMP/CoinUtils configure checks the <cmath> header:

configure:9903: sccache g++ -c -O3 -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wno-unknown-pragmas -Wno-long-long   -DCOINUTILS_BUILD  conftest.cc >&5
<built-in>: error: ISO C++ does not support '__int128' for '__x' [-Wpedantic]
<built-in>: error: ISO C++ does not support '__int128' for 'abs' [-Wpedantic]
In file included from /usr/include/c++/10/cmath:42,
                 from conftest.cc:64:
<built-in>: error: ISO C++ does not support '__int128' for 'type name' [-Wpedantic]

The problem is that in GCC 10, the bits/std_abs.h declares abs() for
GCC extension __int128, which -pedantic then complains about.

Implement the same solution that icecream has for this problem: for GCC,
if any -pedantic etc. flag is given and GNU extensions are enabled, don't
use -fdirectives-only.

* GCC: add test for suppress rewrite_includes_only with pedantic flags

Requires refactoring the preprocess() a bit so that the generated
arguments can be inspected by a test.
2022-03-09 11:23:56 -05:00
Jonathan Schwender 21185d9a15
Remove outdated badges from Cargo.toml (#1136)
- travis-ci and appveyor don't seem to be used anymore
- The cargo reference now recommends putting badges into
  the Readme file, where we already a github CI badge.
2022-03-03 15:27:51 -05:00
Hongli Lai 6d96315544
Use different hashing functions for different file types (#1135)
* Use different hashing functions for different file types

This adds a new special hasher for static libraries, which contain timestamps
and other info that prevent them from being cachable in some cases.

* Update src/util.rs

Co-authored-by: Mitchell Hentges <mitch9654@gmail.com>

Co-authored-by: Jack Moffitt <jack@metajack.im>
Co-authored-by: Mitchell Hentges <mitch9654@gmail.com>
2022-03-03 10:06:37 -05:00
Emily Mabrey d22f5f24dc
Update actions/checkout from v1 to v2 (#1134)
Update the version of the checkout action in Github CI runner.

Signed-off-by: Emily Mabrey <emilymabrey93@gmail.com>
2022-03-01 16:24:46 -05:00
Jonathan Schwender edf0ac5176
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-01 16:21:36 -05:00
Michael Stahl 586c3088a0
C/C++: add extra input files via environment SCCACHE_EXTRAFILES (#1125)
This is similar to CCACHE_EXTRAFILES and ICECC_EXTRAFILES: the extra
files are hashed for caching and packaged for sccache-dist.

Possibly the same variable CCACHE_EXTRAFILES could be used instead of
a distinct one?

This can be implemented in one place for the C/C++ compilers, but not
also for Rust, which currently doesn't have extra_hash_files, so that
remains TODO.
2022-02-28 11:42:19 -05:00
Michael Woerister e8c9ca08ee
Support caching Clang invocations with -fprofile-use and -fprofile-instr-use. (#952) 2022-02-18 10:43:29 -05:00
Ben Boeckel 573c9ba587
disk: initialize the LruDiskCache in a background thread (#868)
Co-Authored-by: @glandium
2022-02-17 14:41:56 -05:00
Adrien Guinet b8c26a1530
MSVC: add /Brepro to the list of known args (#980)
Co-authored-by: Adrien Guinet <aguinet@quarkslab.com>
2022-02-17 11:51:49 -05:00
Hongli Lai e39d7c6c7a Upgrade futures-locks to 0.7.0
0.7.0 only has 1 significant change that impacts us: RwLock is now only Sync if its inner type is also.

Part of #1110.
2022-02-16 10:26:48 +01:00
Jonathan Schwender cc6e1fbfc3
Bump hmac, sha-1 and sha2 (#1117)
The crypto crates are interdependent so bump them in one go.

It looks like `new_varkey()` was renamed to `new_from_slice()`, at least
that is what I gather from the changed example in the documentation of
the hmac crate between version 0.11 and 0.10.
See https://docs.rs/hmac/0.11.0/hmac/index.html

The changelog doesn't mention anything of the sort.

Also I'm not sure if the S3 version even works anymore, since I think
AWS requires the v4 authentication scheme now and not the older v2 version
used in simples3. It would probably make sense to use the new aws-sdk or
one of its subcrates.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-02-14 14:44:46 -05:00
Jonathan Schwender 0363867076
Fix clippy lints for dist-server (#1119)
With the dist-server feature enabled, additional clippy
warnings are emitted. Those are fixed by this commit.
Lints were:
- unneccessary borrow
- string != "" should be !string.is_empty()
- unwrap_or followed by a function call -> unwrap_or_else

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
2022-02-14 14:40:03 -05:00