Commit Graph

53 Commits

Author SHA1 Message Date
C J Silverio 6d84ff0aed
fix(write): set tmpfile length in async writer (#35)
Fixes: https://github.com/zkat/cacache-rs/issues/34

The async `poll_write()` implementation was creating a tempfile as
a backing for its inner mmap, but it was failing to set the length
on the file to match the incoming data. Compare with the sync
implementation!

This bug was exposed when the `memmap2` crate was swapped in
for `memmap`. The older crate was likely more lax about this.

Wrote a pair of new tests for `cacache::write_hash_sync` and
`cacache::write_hash`. The async test fails without this change, as
does any benchmarks run. Everything passes with it.

BREAKING CHANGE: This commit also bumps the MSRV for cacache to 1.66.1.
2023-01-23 17:37:34 -08:00
Kat Marchán 1b29e7435c
(cargo-release) start next development iteration 10.0.2-alpha.0 2022-02-25 09:06:47 -08:00
Kat Marchán e083991a54
(cargo-release) version 10.0.1 2022-02-25 09:06:15 -08:00
Kat Marchán d9291763ce
(cargo-release) start next development iteration 10.0.1-alpha.0 2022-01-23 10:07:47 -08:00
Kat Marchán 54170f4149
(cargo-release) version 10.0.0 2022-01-23 10:07:08 -08:00
Christian Haynes 03d4596baa
fix(security): replaced memmap with memmap2 (#30) 2022-01-23 10:04:07 -08:00
Kat Marchán c5aa6dc24f
(cargo-release) start next development iteration 9.0.1-alpha.0 2021-09-15 20:26:22 -07:00
Kat Marchán 64c60e3f41
(cargo-release) version 9.0.0 2021-09-15 20:25:45 -07:00
Kat Marchán 9163a58481
fix(cleanup): general house cleaning, bumping deps, etc 2021-09-15 20:23:00 -07:00
Kat Marchán 97890872d5
feat(license): change license to Apache-2.0
BREAKING CHANGE: This is a significant licensing change. Please review.
2021-09-15 19:52:50 -07:00
Kat Marchán 35a09fe961
8.0.0 2020-07-18 10:46:31 -07:00
Kat Marchán 803d0c3ede
feat(write): Use mmap for small writes (#26)
BREAKING CHANGE: This bumps the minimum Rust version from 1.39 to 1.43. Thanks, remove_dir_all! >:(
2020-07-18 10:43:38 -07:00
Kat Marchán addf858ab7 7.0.0 2020-04-29 21:40:47 -07:00
Florian Albertz bb815f5f22 feat(errors): remove anyhow and use custom error types (#24)
Co-authored-by: Florian Albertz <git@albertz.io>

BREAKING CHANGE: This changes the exported error type(s) for cacache, making it way easier to do error handling when something goes kaput.
2020-04-29 19:34:43 -07:00
Kat Marchán f596068172
6.0.0 2019-11-11 20:01:09 -08:00
Kat Marchán c44b781a34
feat(deps): upgrade to latest async-std and regular futures crate
Fixes: #22

BREAKING CHANGE: returned futures are now regular futures crate futures
2019-11-11 19:31:28 -08:00
Kat Marchán d5bb0dffb6
feat(chown): stop changing owner/group on unix platforms
Fixes: #16

BREAKING CHANGE: If you were relying on the chown functionality for the index (which you probably weren't), then your index will no longer be updated that way.
2019-11-06 20:59:24 -08:00
Kat Marchán 89d6c23f25
5.0.0 2019-10-23 21:21:29 -07:00
Kat Marchán 12f7ba02d9
4.0.0 2019-10-20 23:49:09 -04:00
Kat Marchán 62298cdf35
feat(errors): improved errors messaging and context (#20)
Fixes: #19

BREAKING CHANGE: Error values have changed. If you were inspecting or
matching against actual return values, you'll need to change your code
to use the new enums.
2019-10-20 23:47:56 -04:00
Kat Marchán ee149a70ca
feat(errors): Replace failure with anyhow crate (#17)
Fixes: #14

BREAKING CHANGE: Result functions now return anyhow::Error
2019-10-20 00:25:28 -04:00
Kat Marchán f12c0ddb04
meta: remove travis-ci badge 2019-10-18 22:41:24 -04:00
Kat Marchán 0cb833d144
3.0.0 2019-10-18 22:25:56 -04:00
Kat Marchán fde3521cce
deps: bump async_std 2019-10-18 22:24:42 -04:00
Kat Marchán ef8d3ad0e7
docs: improve root examples a bit 2019-10-18 21:49:32 -04:00
Kat Marchán bfb1acefb4
2.0.1 2019-10-15 13:08:59 -04:00
Kat Marchán 7b19bbb26b
2.0.0 2019-10-15 12:33:56 -04:00
Kat Marchán 4d9404b9a6
feat(license): relicense to Parity+Apache 2019-10-15 12:15:34 -04:00
Kat Marchán 18190bfc35
feat(async): add extra async versions of APIs (#6) 2019-10-13 20:06:20 -04:00
Kat Marchán 4513a19261
deps: bump ssri to 4.0.0 2019-09-06 21:59:43 -07:00
Kat Marchán 473473e6b2
feat(license): relicense under MPL-2.0 (#8)
BREAKING CHANGE: The license terms have changed. Please refer to LICENSE in the root of this repository for details. Future use of this library may require release of source code for any changes applied to it.
2019-09-06 21:39:36 -07:00
Kat Marchán 97f44573d5
fix(windows): add windows support 2019-08-31 22:38:37 -07:00
Kat Marchán a4b445f854
1.0.1 2019-07-01 09:41:08 -07:00
Kat Marchán 1f2d03375b
doc(cargo.toml): add more metadata to Cargo.toml 2019-07-01 09:41:02 -07:00
Kat Marchán c2ba428ebf
1.0.0 2019-07-01 08:58:31 -07:00
Kat Marchán 54d159740a
deps: ssri@3 2019-06-27 22:40:20 -07:00
Kat Marchán 15f017fe21
feat(put): Add put::Put and put::PutOpts 2019-06-26 21:40:15 -07:00
Kat Marchán 248b631d77
deps: bump ssri to 2.0 2019-06-25 22:21:44 -07:00
Kat Marchán b537be1bf5
v0.2.0 2019-06-09 11:00:04 -07:00
Kat Marchán 5a57d46b3f
test: added basic benchmark test 2019-06-07 01:32:39 -07:00
Kat Marchán 249ef2f802
deps: bump atomicwrites 2019-06-06 10:30:14 +02:00
Kat Marchán 7b460706a1
meta: add some fields to Cargo.toml 2019-06-06 10:29:36 +02:00
Kat Marchán 4efc9ba457
deps: switch to registry-based mkdirp! 2019-06-06 10:29:11 +02:00
Kat Marchán b0f351ea26
feat(ls): implemented cacache::ls::all() 2019-06-05 23:58:32 +02:00
Kat Marchán 076104e367
deps: bump chownr 2019-06-03 23:59:43 +02:00
Kat Marchán 7ad0633c43
fix(index): make Entry use actual Integrity objects 2019-06-03 15:27:31 +02:00
Kat Marchán a3c73f0cd4
deps: added mkdirp from git 2019-06-02 19:08:43 +02:00
Kat Marchán 5f6f627361
deps: bump deps, add failure 2019-06-02 10:55:40 +02:00
Kat Marchán 35b4202091
deps: add more deps 2019-05-28 22:39:13 -07:00
Kat Marchán f9ab3ed9f8
deps: added sha-1 and sha2 2019-05-26 21:25:54 -07:00