Commit Graph

592 Commits

Author SHA1 Message Date
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
bors[bot]
777a2f2cdf
Merge #216
216: A handful of perf/brevity bits and bobs r=koivunej a=ljedrz

Individual commits describe specific changes.

Co-authored-by: ljedrz <ljedrz@gmail.com>
2020-06-30 09:56:47 +00:00
ljedrz
3eade047b4 refactor: use unwrap_or_default instead of a handwritten empty slice
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-29 14:42:33 +02:00
ljedrz
67641dc5e0 perf: remove an unneeded clone
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-29 14:26:43 +02:00
ljedrz
a57d49216a perf: faster Bytes conversions in http::{block, dag}
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-29 13:38:32 +02:00
ljedrz
1c299109d2 refactor: shorten a match expression
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-29 12:41:29 +02:00
ljedrz
8c92c34d44 perf: remove an unneeded map presence check
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-29 12:10:23 +02:00
bors[bot]
008693fcd1
Merge #210
210: A round of cleanups r=koivunej a=ljedrz

Assorted drive-by cleanups and small refactorings; individual commits describe the specific changes.

Co-authored-by: ljedrz <ljedrz@gmail.com>
2020-06-29 08:43:47 +00:00
ljedrz
8d6a2be2e8 revert: include topic name in pubsub_subscribe errors
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-29 10:22:14 +02:00
ljedrz
e8aa5cb72d fix: remove ignored auto-generated attributes
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-29 10:18:21 +02:00
bors[bot]
4eafbcac99
Merge #209
209: Updating Install instructions r=koivunej a=aphelionz

This PR adds dependencies to the README.md

Co-authored-by: Mark Robert Henderson <henderson.mark@gmail.com>
2020-06-26 16:28:59 +00:00
bors[bot]
47aabde2de
Merge #212
212: fix: return "n/a" in verbose swarm peers response r=koivunej a=koivunej

this follows the lead of js-ipfs with the "n/a" fallback response by default.

Related: #178 and the transient failures we are getting.

Co-authored-by: Joonas Koivunen <joonas@equilibrium.co>
2020-06-26 15:49:22 +00:00
bors[bot]
0c8a1a51ec
Merge #207
207: Adjust ipfs_bitswap_test example r=aphelionz a=koivunej

First attempt at first example related to #196 

Co-authored-by: Joonas Koivunen <joonas@equilibrium.co>
2020-06-26 15:25:10 +00:00
Joonas Koivunen
50ae390e66 fix: return "n/a" in verbose swarm peers response
this follows the lead of js-ipfs with the "n/a".
2020-06-26 18:17:42 +03:00
ljedrz
01f58dd541 fix: cargo fmt
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-26 16:13:37 +02:00
ljedrz
3b36d89ccc refactor: simplify a few bits and bobs
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-26 16:03:22 +02:00
Mark Robert Henderson
66b1c780f6
Updating Install instructiosn
This PR adds dependencies to the README.md
2020-06-26 09:36:40 -04:00
ljedrz
a8103cb14c refactor: simplify a From impl for PubsubHttpApiMessage
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-26 15:27:07 +02:00
Joonas Koivunen
394d003efa chore: cargo fmt 2020-06-26 16:17:03 +03:00
ljedrz
2603532027 refactor: make pubsub methods move their params
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-26 15:11:05 +02:00
ljedrz
8c89714da9 refactor: simplify one match expression
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-26 15:11:05 +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
ljedrz
304cef3d48 refactor: use a type alias for pinned+boxed futures
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-26 15:11:05 +02:00
bors[bot]
365a659ef2
Merge #208
208: cleanups: simplify ledger::Message r=koivunej a=ljedrz

It seems to me that we don't need `ledger::Message` to be generic; I get the point behind the tag, but IMO its handling is simple enough to not require it at all.

Originally I also removed what vscode suggested to be an unused import, but my trust in it seems to have been misplaced 😆.

Co-authored-by: ljedrz <ljedrz@gmail.com>
2020-06-26 12:40:16 +00:00
bors[bot]
58dc1bde74
Merge #206
206: Minor doc adjustments r=koivunej a=koivunej

Fixes the endpoint names, handles [a nit](https://github.com/rs-ipfs/rust-ipfs/pull/205#discussion_r446032162) from #205.

Co-authored-by: Joonas Koivunen <joonas@equilibrium.co>
2020-06-26 12:25:59 +00:00
ljedrz
1756d584e5 refactor: simplify ledger::Message
Signed-off-by: ljedrz <ljedrz@gmail.com>
2020-06-26 13:34:28 +02:00
Joonas Koivunen
27016b9901 refactor: remove unused use 2020-06-26 12:45:51 +03:00
Joonas Koivunen
1ea73c0c72 chore: add guidance to example, remove file creation 2020-06-26 12:41:24 +03:00
Joonas Koivunen
32c03baa91 doc: add missing "is" to bors config 2020-06-26 12:29:07 +03:00
Joonas Koivunen
5fca864be9 doc: fix README API endpoint list 2020-06-26 12:28:53 +03:00
bors[bot]
79a336d0b2
Merge #205
205: ci: welcome bors r=ljedrz a=koivunej

the marker will be used by bors following https://github.com/rs-ipfs/welcome/issues/6

Once we see how this goes, I'll push a further complication to run the conformance tests from the same workflow for windows, linux and mac. I can't see how to create such dependencies across workflows.

Co-authored-by: Joonas Koivunen <joonas@equilibrium.co>
2020-06-26 08:27:34 +00:00
Joonas Koivunen
02f5d3db8a ci: require one review approval with bors 2020-06-26 10:49:56 +03:00
Joonas Koivunen
72a26b6d18 ci: use bash on windows as well 2020-06-26 10:49:32 +03:00
Mark Robert Henderson
33b7537bd8
Update README.md 2020-06-25 22:48:40 -04:00
Joonas Koivunen
651dc32ef9 ci: welcome bors 2020-06-25 18:25:09 +03:00
Joonas Koivunen
03eb0d74a5 ci: merge conformance workflow into ci 2020-06-25 18:25:09 +03:00
Joonas Koivunen
7e86781353 ci: add combined marker "ci" status
the marker will be used by bors.
2020-06-25 18:25:09 +03:00
Joonas Koivunen
6afea1fd37
Merge pull request #204 from ljedrz/simpler_examples
make examples cargo run-nable again
2020-06-25 18:05:30 +03:00
ljedrz
a3b9b44e77 fix: make examples simple again 2020-06-25 10:11:27 +02:00
Joonas Koivunen
ab699a416c
Merge pull request #203 from eqlabs/hide_filereader
ipfs-unixfs: Hide FileReader
2020-06-24 14:45:05 +03: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
d6ae2c1c29
Merge pull request #201 from eqlabs/bump_libp2p_dep
chore: update rust-libp2p following 0.20.1 release
2020-06-23 17:44:24 +03:00
Joonas Koivunen
02987aa77e chore: update rust-libp2p 2020-06-23 16:57:27 +03:00
Joonas Koivunen
bca596737a
Merge pull request #199 from eqlabs/macos_coredump_collection
ci: macos core dump collection
2020-06-23 16:27:49 +03:00
Joonas Koivunen
2c4feb9f33 ci: use sudo to run tests on macos
according to some folklore, sudo is required to get core dumps. sadly we
haven't been able to test if its required.
2020-06-23 16:06:38 +03:00
Joonas Koivunen
7616cbf333 ci: split test step, publish core dumps on macos 2020-06-19 16:52:28 +03:00
Joonas Koivunen
0bd822a3de ci: use all-targets instead of tests and examples 2020-06-19 16:52:28 +03:00