Commit Graph

407 Commits

Author SHA1 Message Date
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
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
Joonas Koivunen
4d7d264c70 chore: cleanup ancient comments 2020-06-08 15:03:34 +03:00
Joonas Koivunen
f11611a361 add the blockstore walking back as an example 2020-06-08 15:03:34 +03:00
Joonas Koivunen
9fc620276a chore: cargo fmt 2020-06-08 15:03:34 +03:00
Joonas Koivunen
98df68a03a add back a trickle dag example 2020-06-08 15:03:34 +03:00
Joonas Koivunen
88f0e4ae90 refactor: remove size validation example 2020-06-08 15:03:34 +03:00
Joonas Koivunen
62563ba384 refactor: get rid go-ipfs using test cases 2020-06-08 15:03:34 +03:00
Joonas Koivunen
2ddb78ac3c wip add new subcrate 2020-06-08 15:03:34 +03:00
Joonas Koivunen
c23ad56836 fix: s/ipfs-rust/rs-ipfs 2020-06-08 14:22:03 +03:00
Joonas Koivunen
bde3f44e88 fix: FUNDING.yml org name 2020-06-08 14:15:30 +03:00
Joonas Koivunen
e7408bad82
fix: flaky adding two same ip ephemerals (#177)
* fix: flaky adding two same ip ephemerals
* refactor: handle clippy warning
* refactor: grammar and simplify counting to or
2020-06-08 12:42:03 +03:00
Mark Robert Henderson
b49f156745 Update README.md 2020-05-27 11:27:42 -04:00
Jess
7e3b1788cb Added financial contributors to the README 2020-05-27 11:27:42 -04:00