Toralf Wittner
25433d6dd2
Update ring to version 0.14 ( #885 )
...
This release enables RSA signing by default, hence the `rsa_signing` feature has been removed.
2019-01-23 16:09:52 +01:00
Pierre Krieger
14a90fd701
Reexport IdentifyInfo ( #877 )
2019-01-22 17:42:15 +01:00
Pierre Krieger
a2ab7ff4a9
Simplify the floodsub handler ( #868 )
2019-01-22 14:45:03 +01:00
badb
d59ec09a83
Add a maximum limit to the number of listeners ( #809 )
...
* add max_listeners to swarm
* add swarm builder
* swarm_builder's build takes ownership of self
* replace max listeners with incoming limit
* don't disconnect from node after incoming limit has been reached
* update code according to recent changes
* don't poll listeners at all if incoming connection limit is reached
2019-01-22 11:59:59 +01:00
Dan Robertson
615dd3332f
derive(NetworkBehaviour) handles trailing commas ( #874 )
...
Properly handle trailing commas in derive(NetworkBehaviour)
2019-01-21 11:56:01 +01:00
Dan Robertson
6d24596f9f
Update protocols and transport to 2018 edition ( #875 )
...
Update the protocols and transport subdirectories to the 2018 edition.
NB: The websocket transport cannot be moved to 2018 edition due to
websocket-rs's use of the keyword async as the name of a module.
2019-01-21 11:33:51 +01:00
Julian Laubstein
a806c4ac08
Updated installation method in README ( #871 )
2019-01-19 17:54:49 +01:00
Pierre Krieger
ad27a468f8
Deny connection with local PeerId ( #859 )
2019-01-17 12:20:02 +01:00
Pierre Krieger
c3e29a2654
Update secio dependencies ( #860 )
...
* Update ciphers
* Update asn1_der
2019-01-17 11:31:46 +01:00
Pierre Krieger
1c1ce9a8aa
Bump libp2p-secio and libp2p-core-derive ( #857 )
2019-01-15 17:35:35 +01:00
Pierre Krieger
4bc5dea27d
Fixes to Kademlia queries ( #855 )
...
* Fixes to Kademlia queries
* Bump libp2p-kad to 0.2.1
* Fix bucket_num
* Nicer IDs generation in tests
2019-01-15 17:25:09 +01:00
Pierre Krieger
67a8e705a7
Cache the secp256k1 object in secio ( #856 )
...
* Cache the secp256k1 object in secio
* Fix feature flag disabled
2019-01-15 17:14:58 +01:00
Dan Robertson
69abfbb18e
Fix custom derive when using a where clause ( #853 )
...
When injecting the users where clause we need to ensure a comma is
inserted between the users where clause and ours.
2019-01-15 17:00:56 +01:00
Pierre Krieger
2b4d9786ac
Bump to 0.2.2 ( #852 )
v0.2.2
2019-01-14 19:53:25 +01:00
Pierre Krieger
21d219ef45
Bump to v0.2.1 ( #851 )
v0.2.1
2019-01-14 14:58:07 +01:00
Pierre Krieger
bf52e9bd19
Add IntoNodeHandler and IntoProtocolsHandler traits ( #848 )
...
* Add IntoNodeHandler
* Add IntoProtocolsHandler
2019-01-14 14:22:25 +01:00
Pierre Krieger
60db872c31
Improve doc aesthetics ( #850 )
2019-01-14 14:10:51 +01:00
Pierre Krieger
56c9e57fbd
Fix compilation of ring ( #846 )
2019-01-13 15:52:12 +01:00
Pierre Krieger
a980074b3f
Add some benchmarks for secio ( #847 )
...
* Add some benchmarks for secio
* Switch to criterion
* Fix wrong data size
2019-01-11 12:11:43 +01:00
Pierre Krieger
e39d6d8bd2
Version 0.2 ( #841 )
v0.2.0
2019-01-10 13:27:45 +01:00
Pierre Krieger
b8a312f7d5
Forbid dialing self ( #839 )
2019-01-10 11:49:36 +01:00
Pierre Krieger
dbff125df2
Add an Error associated type to transports ( #835 )
...
* Add an Error associated type to transports
* Improve raw swarm a bit
* Rename map_other to map
* Use source() instead of cause()
* RawSwarmIncErr -> IncomingError
2019-01-10 11:27:06 +01:00
Toralf Wittner
f55a8bc2f3
Update ring to 0.13 ( #674 )
2019-01-10 11:17:44 +01:00
Pierre Krieger
1e7fcc6d61
Move tests to separate files ( #827 )
2019-01-09 15:48:56 +01:00
Toralf Wittner
f1959252b7
multistream-select: Less allocations. ( #800 )
2019-01-09 15:09:35 +01:00
Pierre Krieger
aedf9c0c31
Add more methods on Topology ( #826 )
...
* Add more methods on Topology
* Add a DisconnectReason
2019-01-09 13:13:21 +01:00
Pierre Krieger
2aa3c94c4e
Documentation improve to ping and minor improvements ( #831 )
2019-01-09 11:39:54 +01:00
Pierre Krieger
b1f2ddd4b5
Floodsub now produces FloodsubEvent ( #823 )
2019-01-07 13:42:47 +01:00
Pierre Krieger
64b388ddd1
Add RawSwarm::incoming_negotiated ( #821 )
...
* Add RawSwarm::incoming_negotiated
* More tweaks
* Docfix
2019-01-07 11:54:42 +01:00
Pierre Krieger
5742a0000e
Add documentation to the core ( #820 )
2019-01-07 11:39:08 +01:00
Pierre Krieger
2eb7fe7c64
Switch libp2p-core to edition 2018 ( #819 )
2019-01-07 11:21:09 +01:00
Pierre Krieger
7a1af7893a
Add back an integration test ( #817 )
2019-01-04 16:54:07 +01:00
Pierre Krieger
438b6753a8
Remove assertions in kad protocol ( #818 )
2019-01-04 16:09:04 +01:00
David
90bafa7b0c
Add a setter for split_send_size
( #801 )
...
* Add a setter for `split_send_size`
* Cap `split_send_size` to the Mplex max of 1Mbyte
2019-01-04 13:25:51 +01:00
Pierre Krieger
7da1a860be
Automatically close useless connections ( #816 )
...
* Automatically close useless connections
* Add a timeout before dropping the connection
* Rework the timeout
* Use OR to combine the outcome
2019-01-04 12:02:39 +01:00
Pierre Krieger
ea0f61366c
Add a Ping behaviour instead of PeriodicPing and PingListen ( #815 )
...
* Add a Ping behaviour instead of PeriodicPing and PingListen
* Fix tests
2019-01-03 20:16:44 +01:00
Pierre Krieger
ba1b3dc5c7
Produce an error if a node is unresponsive ( #814 )
2019-01-03 17:45:37 +01:00
Pierre Krieger
9ca215b1a3
Test on wasm32-unknown-unknown ( #806 )
...
* Test on wasm32-unknown-unknown
* Fix compilation
2019-01-02 15:50:08 +01:00
Pierre Krieger
ad7a3b94ba
Fix compilation with syn 0.15.23 ( #813 )
v0.1.0
2019-01-02 15:16:27 +01:00
Pierre Krieger
bdc071a270
Remove readme = entries in Cargo.toml ( #812 )
2019-01-02 14:52:29 +01:00
Pierre Krieger
2c2fc8bfd3
Don't allow handlers::poll() to return None ( #811 )
2019-01-02 14:22:23 +01:00
Pierre Krieger
f903e2b744
Add version numbers of multi* deps ( #810 )
2019-01-02 13:45:23 +01:00
Pierre Krieger
36c8e9e3f1
Some improvements to k-buckets ( #791 )
...
* Rework the KBucketsPeerId trait
* Remove interior mutability from k-buckets
* Reexport the kbuckets module
* Fix tests
* Apply suggestions from code review
Co-Authored-By: tomaka <pierre.krieger1708@gmail.com>
2019-01-02 13:33:44 +01:00
Pierre Krieger
02e704195b
Also add the node's reported address in mDNS ( #804 )
...
* Also add the node's reported address in mDNS
* Update misc/mdns/src/behaviour.rs
2019-01-02 13:23:58 +01:00
Pierre Krieger
7798e23e78
Add an error associated type to ProtocolsHandler ( #795 )
2018-12-28 15:11:35 +01:00
Pierre Krieger
d10cafa804
Make deriving the NetworkBehaviour more ergonomic ( #782 )
2018-12-20 15:21:13 +01:00
Toralf Wittner
6be3aca768
Cleanup. ( #803 )
...
- Use `Error::source` instead of `Error::cause`.
- Remove unused import.
2018-12-20 13:41:11 +01:00
James Ray
f541df391a
Chore/semi colons ( #799 )
...
* Add helpers for easier Transports creation (#777 )
* Add helpers for easier Transports creation
* Fix doctests
* Fix ' ;' occurrences
2018-12-19 23:22:39 +01:00
Pierre Krieger
83320e0347
More precise error passed to inject_dial_upgrade_error ( #771 )
...
* More precise error passed to inject_dial_upgrade_error
* Fix concerns
* Fix panic proof
2018-12-18 11:23:13 +01:00
Pierre Krieger
af698a1ce7
Update muxers to edition 2018 ( #788 )
...
* Upgrade mplex to edition 2018
* Upgrade yamux to edition 2018
2018-12-18 11:06:37 +01:00