Joonas Koivunen
b1f635aa6e
chore: cargo fmt again
2020-06-11 13:49:17 +03:00
Joonas Koivunen
5fed9c5220
chore: cargo fmt
2020-06-11 13:45:57 +03:00
Joonas Koivunen
b65f6b7590
fix: handle corner case gracefully in walk_path
...
also: the walk_path should become ipfs::resolve(IpfsPath).
2020-06-11 13:44:57 +03:00
Joonas Koivunen
ba98835a7e
add: dagpb getters to ipfs-unixfs
2020-06-11 13:43:44 +03:00
Joonas Koivunen
da7f2b4882
fix: get dag tests passing again
...
the remaining issue is how to handle the path resolving for the ugly
error mangling case...
2020-06-11 13:03:40 +03:00
Joonas Koivunen
d78a50c177
chore: update unixfs readme
2020-06-10 20:33:51 +03:00
Joonas Koivunen
392840c0ad
chore: cargo fmt
2020-06-10 20:32:58 +03:00
Joonas Koivunen
7043fe2543
fix returning outer pbnode when empty inner
2020-06-10 20:32:58 +03:00
Joonas Koivunen
0aca44906e
refactor: move test case over to ipfs-unixfs
2020-06-10 20:32:58 +03:00
Joonas Koivunen
819d8ebc53
fix: resolve ipfspaths with ipfs-unixfs on dag-pb
...
dag-pb can have HAMT sharded directories which don't at least directly
translate over to IPLD.
2020-06-10 20:32:58 +03:00
Joonas Koivunen
ffa747db68
refactor: resolve first block before streaming bodies
...
this needs to be done to return error when using cat on directories
2020-06-10 20:32:58 +03:00
Joonas Koivunen
b26332a907
add: UnexpectedNodeType for specific error messages
2020-06-10 20:32:56 +03:00
Joonas Koivunen
da23a23784
add: StdError impl for ResolveError, helpers
2020-06-10 20:32:53 +03:00
Joonas Koivunen
4a800c4695
add: re-export of ipfs-unixfs under ipfs::unixfs::ll
...
ll for low-level
2020-06-10 20:32:49 +03:00
Joonas Koivunen
92b782ea94
chore: doc and fmt
2020-06-10 20:32:49 +03:00
Joonas Koivunen
74ac58072b
refactor: simplify conversions to cid and unify error type
2020-06-10 20:32:49 +03:00
Joonas Koivunen
301011db80
chore: cargo fmt
2020-06-10 20:32:49 +03:00
Joonas Koivunen
588ff5a720
refactor: inline refactored methods
2020-06-10 20:32:49 +03:00
Joonas Koivunen
2f07dd6538
refactor: align errors, cleanup
2020-06-10 20:32:49 +03:00
Joonas Koivunen
3872aae61d
refactor: simplify most the partitoning and err cases
...
big ticket item still missing is the two wonky error cases...
2020-06-10 20:32:49 +03:00
Joonas Koivunen
3097c16976
add: caching via Option parameter
...
Cache allows us to recover the inner VecDeque which should come handy
when resolving over multiple segments.
2020-06-10 20:32:20 +03:00
Joonas Koivunen
86957edb59
add: dagpb/unixfs path segment resolving
2020-06-10 20:32:17 +03:00
Joonas Koivunen
fb91f514c9
add: try_parse to recover pbnode either way
...
this is probably needed for the directory resolving.
2020-06-10 20:32:11 +03:00
Joonas Koivunen
719163c662
add: missing Error::source impl
2020-06-10 20:32:06 +03:00
Joonas Koivunen
4359e6666b
refactor: remove ipfs-unixfs::pb::UnixFsReadFailed from api
2020-06-09 14:44:34 +03:00
Joonas Koivunen
a0a1af98d9
Merge pull request #183 from eqlabs/unify_streamresponses
...
refactor: unify StreamResponses
2020-06-09 13:02:18 +03:00
Joonas Koivunen
4bdce1d273
add initial version of /cat endpoint
...
this passes 9/13 tests in the interface-ipfs-core.
2020-06-09 12:27:57 +03:00
Joonas Koivunen
d9a273fc9b
refactor: unify StreamResponses
...
these were simply forgotten behind, which lead to responses returning
different headers.
2020-06-09 12:10:55 +03:00
Mark Robert Henderson
ddb58cfbf3
Update README.md ( #182 )
2020-06-08 13:02:56 -04:00
Joonas Koivunen
163ff08b2d
Merge pull request #180 from eqlabs/fix-windows-vcpkg-caching
...
fix: cache openssl build on windows
2020-06-08 18:12:29 +03:00
Joonas Koivunen
eafd1725f3
fix: remove llvm caching which doesnt work
2020-06-08 17:43:59 +03:00
Joonas Koivunen
f5c71401c7
fix: cache openssl build on windows
...
also attempt to cache llvm as well, but apparently that does not work
and chocolatey ends up downloading the same 160MB either way.
2020-06-08 16:59:41 +03:00
Joonas Koivunen
3f7e25491f
Merge pull request #179 from eqlabs/fix-links
...
Fix links
2020-06-08 15:49:12 +03:00
Joonas Koivunen
55f7414246
Merge pull request #176 from eqlabs/unixfs_read_preparations
...
Unixfs cat support
2020-06-08 15:12:14 +03:00
Joonas Koivunen
d979389a10
doc: Ipfs::cat_unixfs
2020-06-08 15:03:34 +03:00
Joonas Koivunen
8f83756a9c
refactor: unixfs/cat.rs from the module
2020-06-08 15:03:34 +03:00
Joonas Koivunen
36f3de7eb9
chore: cargo fmt
2020-06-08 15:03:34 +03:00
Joonas Koivunen
d43cf70eef
refactor: manual test case into an example
2020-06-08 15:03:34 +03:00
Joonas Koivunen
cad93bc4ed
refactor: add perhaps extra recursive_limit
...
could be that this started erroring only as I started working on the
fetch_and_cat example.
2020-06-08 15:03:34 +03:00
Joonas Koivunen
fc37f6903f
doc: add why recursion_limit is specified
2020-06-08 15:03:34 +03:00
Joonas Koivunen
89cc5ab1d0
fix: remove --owned from pb-rs gen
2020-06-08 15:03:34 +03:00
Joonas Koivunen
aba46ae299
refactor: cleanup, remove dead code, rename
...
* cleanup tests
* cleanup example
* remove extra lifetime
* use map instead of match
* remove extra formatting
* rename test, check set properties
* rename Just/Spread to Bytes/Links
2020-06-08 15:03:34 +03:00
Joonas Koivunen
5e2b8bf7a9
fix spelling
2020-06-08 15:03:34 +03:00
Joonas Koivunen
a93923fbe2
fix conversions to appease new clippy
2020-06-08 15:03:34 +03:00
Joonas Koivunen
d05ce949b7
refactor: move iterator unwrap into the FileVisit
2020-06-08 15:03:34 +03:00
Joonas Koivunen
e92cf6c85a
doc: fill partial sentence, reformat with 1.44
2020-06-08 15:03:34 +03:00
Joonas Koivunen
2d1d62451f
refactor: per review comments
...
* replace loop with while let Some
* replace empty eprintlns
* use tryfrom directly
* remove clippy warnings
2020-06-08 15:03:34 +03:00
Joonas Koivunen
7839101c8b
chore: add missing Error::source fn
2020-06-08 15:03:34 +03:00
Joonas Koivunen
3dcb450214
fix: use exact versions in deps
2020-06-08 15:03:34 +03:00
Joonas Koivunen
3323a6c93c
docs: document public items
2020-06-08 15:03:34 +03:00