Commit Graph

44 Commits

Author SHA1 Message Date
David Craven
794d932cf1 Remove unnecessary dependencies. 2020-03-13 13:53:55 +01:00
David Craven
1428034150 Move bitswap into it's own crate. 2020-03-13 13:53:55 +01:00
Joonas Koivunen
18975b3427 chore: refresh lockfile 2020-03-12 16:30:36 +02:00
Joonas Koivunen
c316a1c824 add: build metadata with vergen
this could be moved over to rust-ipfs but I think that people will
prefer to track their own binarys version (which is tracked hopefully in
a vcs) instead of their `rust-ipfs` deps version, which will be in their
`Cargo.lock` file.
2020-03-11 14:02:29 -04:00
Joonas Koivunen
55ad527371 fix rebased patched dep 2020-03-10 15:21:11 +02:00
David Craven
ae7ed3c852 Use rust-ipld. 2020-03-10 09:15:45 +01:00
David Craven
d20d061c9e Update Cargo.lock 2020-03-06 17:38:37 +01:00
Joonas Koivunen
e032d3d4aa
Http v0 for testing (#71)
* add first draft of the http api

* chore note on the difficulties with with_graceful_shutdown

* add the second required output line by js-ipfsd-ctl

* run cargo fmt for different formatting from rls?

* chore note on (stalled) progress

* add remaining cli args boilerplate

what is missing now is using ephemeral addresses with the warp, as
js-ipfsd-ctl doesn't always to shutdown the older one, or then it just
doesn't shut down correctly.

* fix bind to ephemeral localhost port

* add env_logger initialization

* fix faked multiaddr typo

never remember its "ip4" instead of "ipv4"

* fix do GET on every method in /id

for some reason js-ipfsd-ctl will do a POST against /api/v0/id.

* chore run cargo fmt

* Adding placeholder NOT_IMPLEMENTED endpiints

* rustfmt

* Feedback from PR

* Update http/Cargo.toml

Co-Authored-By: Joonas Koivunen <joonas@equilibrium.co>

Co-authored-by: Mark Robert Henderson <henderson.mark@gmail.com>
2020-03-05 21:38:44 +02:00
David Craven
d4d4120de1 Fix build on windows. 2020-03-03 13:00:21 +01:00
David Craven
c2ab64f83d Fix dns. 2020-03-03 13:00:21 +01:00
David Craven
edd22040d0 Perform some cleanup and update deps. 2020-03-03 13:00:21 +01:00
Rüdiger Klaehn
62cf69496d Sync with latest master and remove TSubstream type parameter 2020-02-10 16:35:38 +01:00
Rüdiger Klaehn
fce200de6f Remove protobuf 2020-02-06 19:58:10 +01:00
Rüdiger Klaehn
1c1e9fba62 Add prost! 2020-02-06 18:42:34 +01:00
Rüdiger Klaehn
4c256e46f7 Use rust-libp2p master from 2020-02-05
This solves a few issues:
-peer id inlining
-private swarms
2020-02-05 17:36:55 +01:00
Rüdiger Klaehn
313f25af31 Use libp2p 0.14.0-alpha.1 from crates.io
also update async-std dependency
2020-01-10 16:28:31 +01:00
Rüdiger Klaehn
e337b85285 Fix compile errors 2020-01-10 16:28:31 +01:00
Rüdiger Klaehn
4756d2db81 Update rust-libp2p dep to libp2p v0.14.0-alpha.1 (some hash) 2020-01-10 16:28:31 +01:00
Joonas Koivunen
a21c305634 fix aes-128-ctr to match openssl impl
this is temporary fix ... the branch seems to work and passes some
randomized tests against openssl but the PR is still pending.
2019-12-15 17:25:51 +01:00
Joonas Koivunen
efa6fc8d3d chore fix deps with rocksdb, cleanup toml 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
0cb8fae3d6 fix move away from closed libp2p PR 968 2019-11-22 16:31:10 +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
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
d1c9626321 Patch tokio to build on travis. 2019-03-01 18:46:01 +01:00
David Craven
8be9318a9c
Enable legacy mdns. 2019-02-27 15:57:50 +01:00
David Craven
ac36e50fe8
Hook up IpldDag, currently only uses local blocks. 2019-02-25 16:49:25 +01:00
David Craven
5be8b9509d
Remove local rust-cbor dep. 2019-02-25 15:40:39 +01:00
David Craven
9d4c53ad4b
ipld: Implement basic ipld handling. 2019-02-23 22:56:48 +01:00
David Craven
e2e24cc4f3
Use async + await. 2019-02-21 22:28:59 +01:00
David Craven
3883316552
Remove local dependencies. 2019-02-14 01:26:17 +01:00
David Craven
ea56247def
Add logging to examples. 2019-02-14 00:05:40 +01:00
David Craven
96bc5d1bdc
Use log crate for logging. 2019-02-13 23:46:13 +01:00
David Craven
4d2eb971a5
Update Cargo.lock 2019-02-13 22:32:53 +01:00
David Craven
13e1017d1c
Update Cargo.lock 2019-02-13 22:28:48 +01:00
David Craven
adce8eb288
Add configuration system. 2019-02-05 18:13:52 +01:00
David Craven
b766e73e24
Refactor to use Cid type alias. 2019-02-02 23:14:25 +01:00
David Craven
31ae0162fa
Update to libp2p 0.3.0. 2019-02-02 16:25:44 +01:00
David Craven
619d7520ed
Add bitswap protobufs. 2019-02-02 00:01:17 +01:00
David Craven
cbd7cb422d
Start bitswap implementation. 2019-02-01 22:27:32 +01:00
David Craven
2244ca2a45
Implement basic p2p networking. 2019-02-01 17:59:08 +01:00
David Craven
7e91bbbb71
Implement block store. 2019-01-31 21:51:08 +01:00