Commit Graph

522 Commits

Author SHA1 Message Date
Joonas Koivunen
3ba5ddf1a3 fix test using non-unique tempfile 2020-06-18 00:55:11 +03:00
Joonas Koivunen
f5bad262ec
Merge pull request #189 from eqlabs/feat_initial_get
feat: ipfs-unixfs get or "walk over anything"
2020-06-17 17:33:58 +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
Joonas Koivunen
b43ec1e9b2 refactor: solidify link conversion 2020-06-17 17:27:05 +03:00
Joonas Koivunen
629e3388b8 refactor: unify InnerKind, switch todos to unreachable 2020-06-17 17:27:05 +03:00
Joonas Koivunen
ee8cab71d9 fix: remove dead code on bucket -> bucket transitions 2020-06-17 17:27:05 +03:00
Joonas Koivunen
7b7ddbbe2b fix: add back self.depth assertions in set_path 2020-06-17 17:27:05 +03:00
Joonas Koivunen
3bfa506f69 refactor: suggestions from code review
Including mostly comment fixes and removal of an extra &mut.

Co-authored-by: ljedrz <ljedrz@users.noreply.github.com>
2020-06-17 17:27:05 +03:00
Joonas Koivunen
d56058a200 fix: use patched conformance tests
with patching we can run all of our outstanding work.
2020-06-17 17:27:05 +03:00
Joonas Koivunen
9aa9322a33 refactor: remove unused warnings on windows 2020-06-17 17:27:05 +03:00
Joonas Koivunen
24e4c4da42 chore: cargo fmt 2020-06-17 17:27:05 +03:00
Joonas Koivunen
0d2dd477e9 doc: refresh and check out cargo docs 2020-06-17 17:27:05 +03:00
Joonas Koivunen
c874e1165a fix: windows build 2020-06-17 17:27:05 +03:00
Joonas Koivunen
ed8a2c3d66 doc: update unixfs/README.md and docs
added hints about users preferring to use `ipfs_unixfs::walk::Walker`.
2020-06-17 17:27:05 +03:00
Joonas Koivunen
bfd8722ae4 refactor: rename dir submodule to directory
also the file was forgotten.
2020-06-17 17:27:05 +03:00
Joonas Koivunen
6be2556341 chore: cargo fmt 2020-06-17 17:27:05 +03:00
Joonas Koivunen
1d50a5195c fix: check dirs and hamtshards supported
this is probably being overly strict but at least there will not be any
misunderstandings.
2020-06-17 17:27:05 +03:00
Joonas Koivunen
d589e90160 refactor(unix): split test_support with FakeBlockstore 2020-06-17 17:27:05 +03:00
Joonas Koivunen
f5ada8728d add(http): multiblock file /get test
this does not hit the buffer cycling cases but hits all other file
cases.
2020-06-17 17:27:05 +03:00
Joonas Koivunen
7e0fcd05b3 refactor(http): more /get test support 2020-06-17 17:27:05 +03:00
Joonas Koivunen
bd6a974db5 refactor: simplify to simple buffer in TarHelper
two buffers would allow better reusing, but only with concurrency.
2020-06-17 17:27:05 +03:00
Joonas Koivunen
9b75c16143 fix(unixfs/ex): simplify get back to listing 2020-06-17 17:27:05 +03:00
Joonas Koivunen
6eb276eb28 add: test /get for long and file names 2020-06-17 17:27:05 +03:00
Joonas Koivunen
9151834ba3 chore: cleanup warnings, fmt 2020-06-17 17:27:05 +03:00
Joonas Koivunen
350bb9ccf7 fix: hopefully get windows compiling 2020-06-17 17:27:05 +03:00
Joonas Koivunen
92cc2ab353 fix panicing with long link names 2020-06-17 17:27:05 +03:00
Joonas Koivunen
f3f9f26c9b refactor: remove unused code 2020-06-17 17:27:05 +03:00
Joonas Koivunen
7983fcf3b0 chore: cargo fmt 2020-06-17 17:27:05 +03:00
Joonas Koivunen
062468c108 add: test case for checking filesegments 2020-06-17 17:27:05 +03:00
Joonas Koivunen
6a96593866 refactor: make Walker easier to use
turns out the internal structure almost supported this already, but
`self.current` needed to be done an Option.
2020-06-17 17:27:05 +03:00
Joonas Koivunen
e25a23380c refactor: split tar helper to own module 2020-06-17 17:27:05 +03:00
Joonas Koivunen
f71c212edd chore: fmt and clippy warnings 2020-06-17 17:27:05 +03:00
Joonas Koivunen
948eeff48f refactor: rename FileMetadata to ipfs_unixfs::Metadata 2020-06-17 17:27:05 +03:00
Joonas Koivunen
9b18427e16 refactor: move ipfs_unixfs::dir::walk to top level 2020-06-17 17:27:05 +03:00
Joonas Koivunen
d61b0424d8 fix: use errors instead of unwraps in /get as well 2020-06-17 17:27:05 +03:00
Joonas Koivunen
d16a2645f6 fix: errors during walking 2020-06-17 17:27:05 +03:00
Joonas Koivunen
fcdf59aac8 doc: document public members 2020-06-17 17:27:05 +03:00
Joonas Koivunen
91635181c4 refactor: remove home-grown Either 2020-06-17 17:27:05 +03:00
Joonas Koivunen
f37974a19d doc: document Walker and friends 2020-06-17 17:27:05 +03:00
Joonas Koivunen
7feededa81 fix: refs must use new ipfspath.follow_dagpb_data 2020-06-17 17:27:05 +03:00
Joonas Koivunen
3da2bc7028 fix: last cat conformance test failure 2020-06-17 17:27:05 +03:00
Joonas Koivunen
1e0dd4e93e add(unixfs): sharded to non-sharded resolving test 2020-06-17 17:27:05 +03:00
Joonas Koivunen
07ae552634 doc: add comments to tar export 2020-06-17 17:27:05 +03:00
Joonas Koivunen
cbd2d4a992 feat: add follow_dagpb_data option to ipfspath 2020-06-17 17:27:05 +03:00
Joonas Koivunen
8ada8370c4 fix: get walking interop tests to complete 2020-06-17 17:27:05 +03:00
Joonas Koivunen
81233dd82a add: top level symlink support 2020-06-17 17:27:05 +03:00
Joonas Koivunen
08fa4c77f5 add: top level file support 2020-06-17 17:27:05 +03:00
Joonas Koivunen
182da8d3d6 add root level test cases 2020-06-17 17:27:05 +03:00