Pierre Krieger
31dfbf39b9
Decode multiaddresses from visit_seq ( #944 )
...
* Decode multiaddresses from visit_seq
* Serialize as slices
2019-02-18 11:39:49 +01:00
Roman Borschel
eeed66707b
Address edition-2018 idioms. ( #929 )
2019-02-11 14:58:15 +01:00
Dan Robertson
fe4fc8c363
Move final crates to 2018 edition ( #886 )
2019-01-29 11:02:29 +01:00
Pierre Krieger
d94a768bd9
Rename multiaddr and mulithash to parity-* ( #737 )
...
* Rename multiaddr and mulithash to parity-*
* Fix doctests
2018-12-07 15:40:02 +01:00
Toralf Wittner
2c98d06942
Change some nat_traversal
s to consider a prefix. ( #550 )
...
Change some `nat_traversal`s to consider a prefix.
Transports should consider only the relevant address prefix.
2018-10-15 16:29:32 +02:00
Toralf Wittner
9bdaabc884
Optimise Multiaddr::append
. ( #549 )
...
Append to the existing vector instead of allocating a temporary one and
copying bytes over.
2018-10-10 11:07:30 +02:00
Toralf Wittner
e05422c05f
multiaddr: add support for onion protocol. ( #542 )
...
* multiaddr: add support for onion protocol.
* Comment `read_onion`.
* Split onion into address and port parts.
2018-10-08 11:13:00 +02:00
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
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
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