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

23 Коммитов

Автор SHA1 Сообщение Дата
Taylor Cramer 3da16a7c33 Update README and remove unnecessary flags 2017-06-19 05:54:09 -04:00
Andre Parodi c596150045 added some undocumented environment variables for s3 2017-06-14 12:01:32 -04:00
Ted Mielczarek b777bcde38 tweak Cargo.toml metadata and README 2017-05-25 12:54:02 -04:00
Alex Crichton 84054a8d4e Switch from SHA-1 to SHA-512
Local benchmarking showed that the implementation of SHA-512 in the *ring* crate
is 3x faster than the implementation of SHA-1 in the `sha1` crate. I've also
noticed that 80%+ of sccache's runtime on a fully cached build is spent hashing.
With this change I noticed a decrease from 108s to 92s when building a fully
cached LLVM from the network. Not a huge win but if the network were faster
could perhaps add up!

Closes #108
2017-05-15 13:25:23 -07:00
Felix Obenhuber 2349791192 Use Cargo features for S3 and Redis caches
The S3 and Redis caches are optional during build time.
Enable feature "s3" and/or "redis" to build sccache with
support for those backends. Only the local disk cache
is available by default. The "all" feature enables both.
This patch is changing the current default behavior that
always has S3 support.
2017-03-27 12:37:25 -07:00
Felix Obenhuber dc31690674 Add a Redis cache variant
This cache module uses a Redis instance. To make sccache use this,
set SCCACHE_REDIS to redis://[:<passwd>@]<hostname>[:port][/<db>].
The maximum and current cache size is retrieved from the INFO and
CONFIG GET redis command.
2017-03-27 12:34:05 -07:00
Ted Mielczarek 8605d60c21 document rust caveats 2017-03-24 16:03:57 -04:00
Alex Crichton 8968eba6c9 Remove dependency on `named_pipe`
I was sporadically receiving a segfault locally when trying to debug issues on
Windows and in tracking this down I discovered blackbeam/named_pipe#3 which
leads to segfaults locally on startup.

This switches the one use case to the relevant functionality in
`mio-named-pipes` (already pulled in as part of `tokio-process`) and then
otherwise mirrors the same logic as the Unix version, just waiting for a byte
with a timeout.
2017-03-21 15:51:53 -04:00
Ted Mielczarek 96de60c018 Update Rust version requirement to 1.13 in README. Fixes #73 2017-02-23 15:34:02 -05:00
Ted Mielczarek 1db21485e0 Add an `SCCACHE_ERROR_LOG` variable to redirect the server's stderr, so
we can get backtraces for unhandled panics.
2017-01-10 09:36:26 -05:00
Felix Obenhuber 0f5d67d42f Fix default logging initialization
If none of the logging environment variables are supplied
sccache creates a sccache2.log file on every sccache
invocation. Means, in every directory where a compilation takes
place a logfile is left afterwards. In the happy case this file
is empty. This can be kind of messy for larger projects where
the compiler invocation is done from multiple directories.

This patch changes the logging initialization:

* SCCACHE2_LOG_LEVEL is renamed to SCCACHE_LOG_LEVEL
* sccache2.log is renamed to sccache.log
* If none of RUST_LOG or SCCACHE_LOG_LEVEL is set, no logging is initialized.
* If RUST_LOG is set, only env_logger is used - no logfile is created.
2016-12-29 18:30:32 -05:00
Alex Newman d8a28bffad Add a snippet about logging level 2016-12-19 16:02:56 -05:00
Ted Mielczarek decd0b1a99 Remove caveats about local disk cache from README 2016-12-07 12:54:26 -10:00
Ted Mielczarek 982ff329b2 Document Rust 1.12 as minimum required version, add Travis CI for it 2016-12-07 12:53:29 -10:00
Yixi Zhang c77a8e81da More friendly README for Rust beginner 2016-12-06 15:54:58 -10:00
Ted Mielczarek 10fb1ad1c8 update readme a bit 2016-11-30 10:23:34 -05:00
Mike Hommey 3da89195ce Merge the Rust reimplementation 2016-11-22 06:50:00 +09:00
Ted Mielczarek 5e0451f56c update readme 2016-11-21 09:48:06 -05:00
Ted Mielczarek 124ab7546c Add appveyor build status badge 2016-05-18 14:32:25 -04:00
Ted Mielczarek b17a437a5a add travis build status to README 2016-05-02 12:56:57 -04:00
Ted Mielczarek 16d74015a9 Somewhat-fleshed-out skeleton.
Has a protocol (defined in protocol.proto), client-server bits,
and some basic request handling. Doesn't actually execute commands yet.
2016-04-26 16:43:03 -04:00
Mike Hommey 1e898e86c6 Add a note about the lack of local storage cleanup 2014-05-08 15:21:37 +09:00
Mike Hommey 216b626380 Add a basic README.md 2014-05-08 15:05:28 +09:00