Commit Graph

407 Commits

Author SHA1 Message Date
Joonas Koivunen
efa6fc8d3d chore fix deps with rocksdb, cleanup toml 2019-12-05 20:14:24 +01:00
Joonas Koivunen
adcef49d42 refactor restore rocksdb under feature 2019-12-05 20:14:24 +01:00
Joonas Koivunen
67e0449680 fix test using old website path 2019-12-05 20:14:24 +01:00
Joonas Koivunen
77c9646640 refactor restore tests
finally converged to a `crate::tests::async_test` wrapper for invoking
`tokio::run` **and** getting failures out of the test. later tokios
should include test wrappers.
2019-12-05 20:14:24 +01:00
Joonas Koivunen
7e25ac0a2d chore bring travis up to speed with rust-toolchain
could be that travis could read the rust-toolchain as well..
2019-12-05 20:14:24 +01:00
Joonas Koivunen
12ee9d5512 refactor cargo update and some of the fixes
- add async_trait dep for repo
 - use async fn everywhere possible
 - update toolchain to semi-latest
 - update futures 0.3
 - update libp2p 0.13
 - get rid of rocksdb for now
 - allow warnings and disable bare_trait_objects for protoc generated
 - wasteful vec workaround (shouldve used MultihashRef?)
 - stop using drain_filter (possibly correctly?)

Note: this changes the generated code
Note: feature(try_trait) remains
2019-12-05 20:14:24 +01:00
Joonas Koivunen
37dca2fd2d feat allow custom config file in testing mode via env IPFS_TEST_CONFIG 2019-12-05 20:14:24 +01:00
Joonas Koivunen
06965e7b4c chore minor formatting issue 2019-12-05 20:14:24 +01:00
Joonas Koivunen
db292d2de4 fix pin down the rust-toolchain for now
this was/is just a guess based on the deps, and it compiles!
2019-11-22 16:31:10 +01:00
Joonas Koivunen
0cb8fae3d6 fix move away from closed libp2p PR 968 2019-11-22 16:31:10 +01:00
Benjamin Kampmann
6ed1200ddd Increase Buffersize for bitswap messages
We had troubles reading incomming messages, they were just being dropped it seemed. Turns out our buffer reading length was
quite long enough, though the specification doesn't actually state, what size a bitswap message can have. This PR sets the
limit to the limit I found in the js-ipfs-bitswap implementation: 524288 bytes.
2019-03-22 21:02:38 +01:00
David Craven
b079920a93
Remove local dependency. 2019-03-08 16:07:54 +01:00
David Craven
f436bb4cf8
Fix parse deprecation warning by using parse_filters. 2019-03-08 15:53:43 +01:00
David Craven
78e8a8fbce
ipns: Implement dnslink. 2019-03-08 15:53:43 +01:00
David Craven
20b1b6c78c
ipns: Implement. 2019-03-08 15:53:43 +01:00
David Craven
3cde9980ae
p2p: Enable floodsub. 2019-03-08 15:53:43 +01:00
David Craven
678f843f5e
Use failure for error handling. 2019-03-08 15:52:11 +01:00
David Craven
ce9d5c7e42
Use PeerId's for ipns keys. 2019-03-04 20:24:51 +01:00
David Craven
9457722eae
Make IpldPath more generic and rename to IpfsPath. 2019-03-04 16:38:15 +01:00
Benjamin Kampmann
1f7b433b24 Replace VecDeq with a channel-driven approach (#13)
* Replace VecDeq with a channel-driven approach
2019-03-04 12:44:42 +01:00
David Craven
3d89305fa3
Get unixfs demo working. 2019-03-03 20:22:10 +01:00
David Craven
d185b83b6c
Workaround regression in nightly. 2019-03-03 18:52:42 +01:00
David Craven
f88e08ec6a
Reduce verbosity of ipfs configuration. 2019-03-03 18:51:57 +01:00
David Craven
35ea7f85d7
unixfs: Make a start. 2019-03-02 21:31:09 +01:00
David Craven
01d8dcbafb
ipld: Make ipld format agnostic. 2019-03-02 21:30:07 +01:00
David Craven
4c5751e3a0
ipld: Implement dag_pb format. 2019-03-02 20:41:49 +01:00
David Craven
017c79e092
Refactor protobuf gen and add dag_pb.proto. 2019-03-02 18:36:53 +01:00
David Craven
089fc95255
Use rocksdb backend by default. 2019-03-02 01:40:05 +01:00
David Craven
1da6599b26
Revert prefer mplex over yamux. 2019-03-02 01:39:40 +01:00
David Craven
c1a9dc0b1e
Replace all tokio deps. 2019-03-02 00:14:21 +01:00
David Craven
4ad7516071
repo: Add datastore. 2019-03-01 23:53:54 +01:00
David Craven
f2a829cec5
Better error handling. 2019-03-01 23:51:25 +01:00
David Craven
a2aad04687
Cleanup debug logging. 2019-03-01 19:00:54 +01:00
David Craven
d1c9626321 Patch tokio to build on travis. 2019-03-01 18:46:01 +01:00
David Craven
3325cd2bf2 ci: Only build 2018 edition. 2019-03-01 18:46:01 +01:00
David Craven
757afd6689
Add travis badge to README. 2019-03-01 17:12:24 +01:00
David Craven
4f8b08e0ff
ci: Add .travis.yaml. 2019-03-01 17:09:01 +01:00
Benjamin Kampmann
4461fe8908 We prefer mplex over yamux. Fixes talking to go-ipfs 2019-02-28 15:54:04 +01:00
David Craven
78dceb8ba6
Add ipfs compat test. 2019-02-27 20:10:46 +01:00
David Craven
d12aab80a5
Update README. 2019-02-27 19:18:58 +01:00
David Craven
3b58e24301
Update examples. 2019-02-27 19:11:12 +01:00
David Craven
ad3c04f5c8
IpldDag resolves non local blocks. 2019-02-27 18:08:54 +01:00
David Craven
d643b9074f
Don't box futures when unnecessary. 2019-02-27 16:57:38 +01:00
David Craven
ba3cb3d7f2
Take references to cids in APIs. 2019-02-27 16:41:36 +01:00
David Craven
b86df11135
Always connect to discovered nodes. 2019-02-27 16:05:43 +01:00
David Craven
8be9318a9c
Enable legacy mdns. 2019-02-27 15:57:50 +01:00
David Craven
15b786cebd
Add ping and identify behaviour. 2019-02-27 15:56:06 +01:00
David Craven
d9833f7881
Use Future v1 wakeup mechanism. 2019-02-26 12:20:29 +01:00
David Craven
1e512a4078
Add some tests and refactor examples. 2019-02-25 17:15:12 +01:00
David Craven
ac36e50fe8
Hook up IpldDag, currently only uses local blocks. 2019-02-25 16:49:25 +01:00