154 Commits

Author SHA1 Message Date
Joonas Koivunen
2553de32de refactor: go back to moving builder 2020-07-03 12:20:58 +03:00
Joonas Koivunen
2d31efafb2 chore: changelog 2020-07-03 12:20:58 +03:00
Joonas Koivunen
77657806d7 doc: enhance, document lore, suggestions
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-07-03 12:20:58 +03:00
Joonas Koivunen
13e5036126 refactor: use Default::default() struct init 2020-07-03 12:20:58 +03:00
Joonas Koivunen
28065973ad refactor: name the 4-tuple as Link 2020-07-03 12:20:58 +03:00
Joonas Koivunen
a409095509 doc: suggestions from code review
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-07-03 12:20:58 +03:00
Joonas Koivunen
c47bfc1933 fix: debug intermediate levels as well 2020-07-03 12:20:58 +03:00
Joonas Koivunen
8912649d1d chore: clippy warning 2020-07-03 12:20:58 +03:00
Joonas Koivunen
0ff594c156 refactor: complicate/simplify link debugging 2020-07-03 12:20:58 +03:00
Joonas Koivunen
e24eb1c97e refactor: remove unused result return type 2020-07-03 12:20:58 +03:00
Joonas Koivunen
d3bd086d43 add: FileAdderBuilder and enhanced docs 2020-07-03 12:20:58 +03:00
Joonas Koivunen
eb3a0bb844 refactor: allow one less copy with prechunked input 2020-07-03 12:20:58 +03:00
Joonas Koivunen
1c4f59a3e7 fix: do less work to speed up test 2020-07-03 12:20:58 +03:00
Joonas Koivunen
c13bd36dcc refactor: collector out of the adder 2020-07-03 12:20:58 +03:00
Joonas Koivunen
7bddf33313 refactor: simplify link flushing 2020-07-03 12:20:58 +03:00
Joonas Koivunen
bdeefb0d85 doc: adjust comments 2020-07-03 12:20:58 +03:00
Joonas Koivunen
791b0334d9 perf: reuse links and blocksizes
no noticeable changes in benchmarks
2020-07-03 12:20:58 +03:00
Joonas Koivunen
15073666b1 fix: the 174*256*1024 + 1 case 2020-07-03 12:20:58 +03:00
Joonas Koivunen
ae1976b3f3 add: failing test case 2020-07-03 12:20:58 +03:00
Joonas Koivunen
fec28f6422 chore: rustfmt 2020-07-03 12:20:58 +03:00
Joonas Koivunen
bf9ec07d04 fix: produce block for empty files 2020-07-03 12:20:58 +03:00
Joonas Koivunen
8310df38af chore: remove mistakenly added ignore 2020-07-03 12:20:58 +03:00
Joonas Koivunen
89387c475e refactor: update comments, reorder uses 2020-07-03 12:20:58 +03:00
Joonas Koivunen
f6e78c3ff7 refactor: move file adder under file 2020-07-03 12:20:58 +03:00
Joonas Koivunen
153d6e52ec doc: file adder 2020-07-03 12:20:58 +03:00
Joonas Koivunen
8d0422ba35 fix: example cidv1 output, buffer to size hint 2020-07-03 12:20:58 +03:00
Joonas Koivunen
4444a2301d fix: add FileAdder impl Debug 2020-07-03 12:20:58 +03:00
Joonas Koivunen
b5868ee3e8 refactor: remove indentation level 2020-07-03 12:20:58 +03:00
Joonas Koivunen
c54118f324 test: more tests to catch the chunking issue 2020-07-03 12:20:53 +03:00
Joonas Koivunen
9ece3b943f test: add test case for three layers 2020-07-03 12:20:31 +03:00
Joonas Koivunen
587fd14461 add: examples/add.rs, still bad output 2020-07-03 12:20:31 +03:00
Joonas Koivunen
6498436ae8 chore: make sha2 and multihash !dev deps
they are needed in the adder to create links.
2020-07-03 12:20:31 +03:00
Joonas Koivunen
36ad14b127 feat: initial file adder
Should be fixable to create trees for files.
2020-07-03 12:20:31 +03:00
ljedrz
e8aa5cb72d fix: remove ignored auto-generated attributes
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-29 10:18:21 +02:00
ljedrz
01f58dd541 fix: cargo fmt
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-26 16:13:37 +02:00
ljedrz
8a942adf3e refactor: use a type alias for file visit results
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-26 15:11:05 +02:00
Joonas Koivunen
87e02703de chore: update CHANGELOG 2020-06-24 10:38:19 +03:00
Joonas Koivunen
8ef1811f14 refactor: remove/cfg(test) unused of FileReader 2020-06-24 10:25:39 +03:00
Joonas Koivunen
79d6e8c680 fix: hide file::reader
Fixes #202. Apparently this can fail compilation on 1.44. The content
method on FileReader exposes a non-public item through impl
Iterator<Item = (..., non_pub_here)> but still the error is about
lifetime capture.
2020-06-24 10:22:17 +03:00
Joonas Koivunen
e19677ae01 add(unixfs): repository, description, readme 2020-06-18 20:41:32 +03:00
Joonas Koivunen
be1d3b3891 refactor(unixfs): drop unused tar dependency 2020-06-18 20:24:57 +03:00
Joonas Koivunen
9835da8f08 add(unixfs): initial CHANGELOG.md 2020-06-18 20:24:57 +03:00
Joonas Koivunen
740c5f1cd7 chore(unixfs): README, license notes, set version to 0.0.1 2020-06-18 20:24:57 +03:00
Joonas Koivunen
a867cc8e28 chore: cargo fmt 2020-06-17 23:09:05 +03:00
Joonas Koivunen
baa78d6098 fix: forgotten unused error variant (File) 2020-06-17 22:10:42 +03:00
Joonas Koivunen
cc2239abbb fix: warnings on ipfs_unixfs::walk 2020-06-17 22:09:52 +03:00
Joonas Koivunen
1479b5022a fix: remove lint suppressions 2020-06-17 22:09:02 +03:00
Joonas Koivunen
0c5ad592a7 doc: add missing "for"
Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-06-17 17:27:05 +03:00
Joonas Koivunen
a6167fc556 chore: cargo fmt 2020-06-17 17:27:05 +03:00
Joonas Koivunen
c70320dd6c refactor: suggestions from code review
docs, comments and minor API changes again.

Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-06-17 17:27:05 +03:00