Joonas Koivunen
ce6f23c9a6
refactor assorted owned/borrowed conversions, extra clones
2020-01-08 15:21:41 +01:00
Joonas Koivunen
dcdcf6c5df
refactor remove additional to_string fns
...
all impls of Display get free to_string
2020-01-08 15:21:41 +01:00
Joonas Koivunen
a400bd11c8
refactor use Display instead/for ::to_string(&self)
...
another one from clippy lints. perhaps more rustic.
2020-01-08 15:21:41 +01:00
Joonas Koivunen
db57c6486e
refactor remove/adjust conversions
2020-01-08 15:21:41 +01:00
Joonas Koivunen
3d396b5396
refactor remove Ipfs::new which returned the UninitializedIpfs
2020-01-08 15:21:41 +01:00
Austin Baugh
f0db3cfe2e
Migrating to stable: Replaced NoneError with TryError ( #39 )
...
Replaced instances of NoneError with the unit struct, TryError.
2019-12-18 10:20:25 +02:00
Joonas Koivunen
cdfac41374
chore ignore ipns::dns::tests::test_resolve2
...
See issue #38 .
2019-12-15 17:25:51 +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
34520c874d
fix(repo) delay to get_block to stop logspam
...
this is of course a stopgap measure until there is a future for the
completion of such block arriving; it is extra to loop on trying to get
the block.
2019-12-15 17:25:51 +01:00
Joonas Koivunen
185b56793f
feat ability to load pkcs8 key from file
...
this is likely needed for `go-ipfs` compatibility due to how the two
versions of libp2p handle peerids differently:
- https://github.com/libp2p/specs/issues/138
- dc718fa4da/peer/peer.go (L23-L34)
- eb7b7bd919/core/src/peer_id.rs (L62-L74)
2019-12-15 17:25:51 +01:00
Joonas Koivunen
6410676d86
chore sync readme with examples/readme.rs
...
looked into using skeptic but it apparently compiles the README.md code
with by calling `rustc` directly so we end up with nightly ipfs being
linked against readme testcase compiled with stable, which unsurpringly
does not work.
2019-12-15 16:26:44 +01:00
Joonas Koivunen
b78ad78041
refactor enable rocksdb automatically when feature enabled
2019-12-05 20:14:24 +01:00
Joonas Koivunen
87a4fdaa78
chore cleanup FIXMEs, commented out code
2019-12-05 20:14:24 +01:00
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