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

18 Коммитов

Автор SHA1 Сообщение Дата
Aidan Hobson Sayers 5116315a76 Tweak insert_with, simplify lru values 2018-08-14 12:40:45 -04:00
Aidan Hobson Sayers 17c56c8d0d Rework sccache to use http rather than tcp 2018-08-14 12:40:45 -04:00
Aidan Hobson Sayers 8f588198fa Distribute and cache toolchains 2018-08-14 12:40:45 -04:00
Kornel aad212037c Replace uses of try!() with ? 2018-04-17 09:29:11 -04:00
Ted Mielczarek 46b4ffaba7 Bump lru-disk-cache to 0.2.0 so we can publish it to crates.io because we made an API change 2018-01-30 11:54:20 -05:00
johnklai1 1080d1379e Change size and capacity types to u64 to support 32-bit Windows (#212)
* Change usize to u64 in various places to support 32-bit compilation.

* Fix compilation when redis is enabled and fix tests related to 32-bit support.
2018-01-08 16:34:43 -05:00
Ted Mielczarek d14852991d Preemptively avoid an upcoming coherence warning.
Patch as suggested by @arielb1:
https://github.com/rust-lang/rust/pull/46192#issuecomment-349056049
2017-12-05 08:40:41 -05:00
Ted Mielczarek 79137588f3 tweak lru-disk-cache metadata 2017-07-25 15:43:23 -04:00
Ted Mielczarek aea73d619d Fix lru-disk-cache tests on Windows 2017-07-25 15:22:32 -04:00
Ted Mielczarek 14b7f2aa4a Fix lru_disk_cache's test_existing_file_too_large to be more reliable,
and also skip the doctests in the vendored lru-cache source, since they
don't work when it's not a standalone crate.
2017-07-25 08:40:54 -04:00
Ted Mielczarek 15587879a6 Vendor my fork of lru-cache. Fixes #152 2017-07-25 08:29:14 -04:00
Alex Crichton 2ee40dbda0 Update dependencies
* Mostly upgrade to serde 1.0
* Pull in lots of other updates for other small deps
2017-05-18 13:53:00 -07:00
Alex Crichton 5f14d0be22 Reimplement get_cached_or_compile with futures
This commit just takes the synchronous version and reimplements it with
futures, using necessary combinators and such to prepare for running
commands with futures as well.

All process spawning/waiting still happens in a thread pool, this
commit just refactors methods to push futures all the way to down to the
lowest levels so we can integrate `tokio-process`.
2017-02-17 13:39:01 -05:00
Ted Mielczarek 6d7efe9bdc Fix races in the get_cached_or_compile tests.
As part of 030ed02ab4 I made `DiskCache::finish_put` write the cache entry to disk asynchronously, where previously it had been synchronous. This caused the `get_cached_or_compile` tests to be racy, specifically `test_compiler_get_cached_or_compile_cached`, which would store a cache entry and then immediately try to retrieve it. I've fixed this by making all the tests wait on the cache write future.
2016-12-13 08:16:03 -05:00
Ted Mielczarek 52d9e699c4 Use my lru-cache branch until the changes land upstream 2016-12-07 12:15:01 -10:00
Ted Mielczarek 4308fa2932 use filetime 2016-12-07 12:15:01 -10:00
Ted Mielczarek 030ed02ab4 Make DiskCache limit the size of the on-disk cache by using LruDiskCache. Fixes #29 2016-12-07 12:15:01 -10:00
Ted Mielczarek be921be644 implement LruDiskCache 2016-12-07 12:15:01 -10:00