Commit Graph

75 Commits

Author SHA1 Message Date
Kat Marchán fde3521cce
deps: bump async_std 2019-10-18 22:24:42 -04:00
Kat Marchán 086cbfe379
docs: add a couple of examples to Put 2019-10-18 21:49:47 -04:00
Kat Marchán ef8d3ad0e7
docs: improve root examples a bit 2019-10-18 21:49:32 -04:00
Kat Marchán 57bc0f04ff
test(rm): add tests and examples for cacache::rm 2019-10-18 16:28:52 -04:00
Kat Marchán dafc79f481
feat(get): get::info -> get::entry
BREAKING CHANGE: This renames get::info to get::entry for better symmetry with rm
2019-10-18 16:28:15 -04:00
Kat Marchán 7123ffa44b
test(copy): add tests and doc examples for copy APIs 2019-10-18 12:44:48 -04:00
Kat Marchán c430016744
feat(ls): cacache::ls::all -> ls::all_sync
BREAKING CHANGE: In order to match up with the other APIs, the ls::all() has been renamed to ls::all_sync().
2019-10-17 23:16:51 -04:00
Kat Marchán a040a743a8
test(get): add examples and tests for get::data* family 2019-10-17 23:05:43 -04:00
Kat Marchán d08629cf55
fix(check): {Async}Get::check wasn't working correctly 2019-10-17 22:50:39 -04:00
Kat Marchán 03ff19709a
fix(open): use actual file paths instead of just cache for open APIs
Also taking the chance to write docs and tests for them.
2019-10-17 19:04:21 -04:00
Kat Marchán 662aea9b5a feat(async): reorganize async APIs to be the primary APIs
BREAKING CHANGE: the async_* namespaces are gone, and all the previously-sync APIs (get::data, put::data, etc), are all suffixed with _sync now. You'll need to adjust your usage accordingly.
2019-10-17 18:25:20 -04:00
Kat Marchán b02f41e07f feat(api): get::read -> get::data
This should improve the ergonomics a bit by being more symmetrical with put

BREAKING CHANGE: The `get` API now uses "data" instead of "read" as the "verb". You will need to change anything that used get::read/hash/etc to use "data" now.
2019-10-17 18:25:20 -04:00
Kat Marchán 7aabb55de5
misc: remove unneeded clippy exception 2019-10-17 18:10:18 -04:00
ricky 42f4e1da63 tests: add some rm (#10)
Ref: #3
2019-10-17 18:09:41 -04:00
Kat Marchán 4259a39fdf
docs: add basic examples 2019-10-15 13:08:02 -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 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
Félix Saparelli ad74518a9d refactor(index): idiomatise various iterators (#1)
* chore(index): idiomatise variously

* chore(index): exploit hashset to dedupe entries

* chore(index): format
2019-07-01 08:46:08 -07:00
Kat Marchán 7f1602e28f
feat(put): privatize Put and PutOpts fields 2019-06-30 23:21:37 -07:00
Kat Marchán 87adc8cf9f
feat(exports): re-export ssri::Algorithm and serde_json::Value 2019-06-30 23:20:57 -07:00
Kat Marchán 329aee2205
meta(doc): increase doc-linting level 2019-06-30 23:20:34 -07:00
Kat Marchán d2d7170a9c
doc(error): document all errors 2019-06-30 23:20:01 -07:00
Kat Marchán da112036c1
doc(put): basic docs for put 2019-06-30 23:11:39 -07:00
Kat Marchán d7af45d4f1
doc(get): document get module 2019-06-30 20:53:50 -07:00
Kat Marchán 1133de04d2
doc(ls): document ls::all() 2019-06-30 20:20:49 -07:00
Kat Marchán fa8759b92c
doc(rm): document rm API functions 2019-06-30 20:18:47 -07:00
Kat Marchán 982f8ee51a
doc(index): document Entry 2019-06-30 20:13:40 -07:00
Kat Marchán 27ce700bd6
feat(put): make PutOpts Clone 2019-06-30 20:12:46 -07:00
Kat Marchán aee271186a
refactor(get): reuse open_hash 2019-06-30 20:12:31 -07:00
Kat Marchán 0349d115f4
fix(fmt): cargo fmt 2019-06-27 22:48:58 -07:00
Kat Marchán 4a6950ff5d
fix(put): fix warnings 2019-06-27 22:45:11 -07:00
Kat Marchán a5e9966624
refactor(get): move trait bounds into where clauses 2019-06-27 22:41:56 -07:00
Kat Marchán 6e9a2f9f87
feat(get): add get::open() and get::open_hash() 2019-06-27 22:41:32 -07:00
Kat Marchán 09ed932870
misc: add useful (?) comment 2019-06-27 11:18:42 -07:00
Kat Marchán abc0246da6
refactor: remove unneeded Ok() 2019-06-26 22:03:29 -07:00
Kat Marchán bc56a1b3fe
fix(fmt): cargo fmt 2019-06-26 21:41:44 -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 5af622eb30
feat(api): AsRef all the things! 2019-06-09 10:59:36 -07:00
Kat Marchán b0f351ea26
feat(ls): implemented cacache::ls::all() 2019-06-05 23:58:32 +02:00
Kat Marchán cf0fbe233f
fix(api): use &str keys 2019-06-05 14:46:49 +02:00
Kat Marchán b54a3a4f82
misc: sort mod declarations in lib.rs 2019-06-05 14:09:58 +02:00
Kat Marchán 261f190e4e
doc: added some basic top-level documentation. 2019-06-05 14:00:25 +02:00
Kat Marchán 22c4b3010f
fix(index): get rid of last compiler warning 2019-06-05 13:50:26 +02:00
Kat Marchán 346cf5fb23
feat(rm): added external rm api 2019-06-05 13:41:32 +02:00
Kat Marchán f3b6abf45c
fix(content): make rm use our own Error 2019-06-05 13:41:32 +02:00
Kat Marchán 815d7a3c9e
feat(put): initial implementation of cacache::put 2019-06-05 11:44:29 +02:00
Kat Marchán 0bbe080a6e
feat(error): Add SizeError 2019-06-05 11:34:07 +02:00