Toralf Wittner
84b089cacc
Refactor multiaddr crate. ( #498 )
...
Refactor multiaddr crate.
- Remove `AddrComponent`. Instead `Protocol` directly contains its
associated data.
- Various smaller changes around conversions to Multiaddr from other
types, e.g. socket addresses.
- Expand tests to include property tests which test encoding/decoding
identity.
2018-09-20 19:51:00 +02:00
Pierre Krieger
0c43c76965
Implement close() from Sink ( #492 )
2018-09-17 15:01:37 +02:00
Toralf Wittner
b2756c8fa9
Make Multiaddr::iter
borrow data ( #478 )
...
* Use `unsigned-varint` crate.
* Implement `Display` for `Protocol`.
Gives `ToString` for free.
* Use `Cow` in `AddrComponent`.
* Add `AddrComponent::acquire`.
* Document `AddrComponent::acquire`.
2018-09-14 10:21:14 +02:00
Pierre Krieger
ea1f172397
Implement Send everywhere ( #458 )
2018-09-06 09:54:35 +02:00
Toralf Wittner
cd1d81b5d0
Update unsigned-varint crate to v0.2.0 ( #447 )
2018-09-03 17:19:03 +02:00
Toralf Wittner
b5acf226f9
multistream-select: Include \n
in length. ( #439 )
...
* multistream-select: Include `\n` in length.
* Add comment to explain the +1.
* Re-enable test.
2018-09-03 11:13:42 +02:00
Pierre Krieger
ccc5aacafc
Fix #440 ( #441 )
...
* Fix #440
* Ignore failing test
2018-09-03 10:25:16 +02:00
Toralf Wittner
c02dea8128
Introduce several concrete future types. ( #433 )
...
* multisteam-select: introduce `DialerFuture`.
* multistream-select: add more concrete futures.
* multistream-select: add ListenerFuture.
* multistream-select: add ListenerSelectFuture
* Formatting.
* Add DialerSelectFuture type alias.
* Add UpgradeApplyFuture and NegotiationFuture.
* In iterator wrappers also pass-through size_hint.
* Minor refactoring.
* Address review comments.
* Add some comments.
* Hide state enums in wrapping structs.
2018-08-30 23:25:16 +02:00
Toralf Wittner
f457ca5490
Correctly encode and decode multistream-select ls. ( #438 )
2018-08-30 23:13:06 +02:00
Benjamin Kampmann
2ea49718f3
Clean up directory structure ( #426 )
...
* Remove unused circular-buffer crate
* Move transports into subdirectory
* Move misc into subdirectory
* Move stores into subdirectory
* Move multiplexers
* Move protocols
* Move libp2p top layer
* Fix Test: skip doctest if secio isn't enabled
2018-08-29 11:24:44 +02:00