Thomas Eizinger
2a14df25eb
feat: introduce libp2p-identity
crate
...
This patch combines the `libp2p_core::identity` and `libp2p_core::peer_id` modules into a new crate: `libp2p-identity`.
Resolves https://github.com/libp2p/rust-libp2p/issues/3349 .
Pull-Request: #3350 .
2023-03-12 15:46:58 +01:00
Thomas Eizinger
c06731bc38
refactor: use target_arch
instead of target_os
for wasm cfg's
...
As far as I can tell, this is equivalent and less verbose.
Pull-Request: #3572 .
2023-03-10 06:44:39 +00:00
Thomas Eizinger
d53cfed236
chore: move libp2p
crate to a dedicated directory
...
Currently, our top-level `Cargo.toml` manifest represents a crate AND a workspace. This causes surprising behaviour (e.g. #2949 ) where we need to explicitly pass `--workpace` to every command to run it on the entire workspace and not just the meta crate.
My moving the meta crate into its own directory, the root manifest file is a virtual manifest only and thus, every `cargo` command will automatically default to running on the entire workspace.
On top of this, I personally find it easier to understand if workspace and crate manifests are not mixed.
Pull-Request: #3536 .
2023-03-08 13:20:39 +00: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
Pierre Krieger
c77b1f5a0a
Better documentation ( #391 )
...
* Better documentation
* Minor
2018-08-22 10:46:23 +02:00
Pierre Krieger
6200055161
Add multiaddr! macro ( #413 )
2018-08-15 17:19:19 +02:00
Pierre Krieger
c3655226bb
Add a UNIX transport ( #308 )
...
* Use the new version of tokio
* Add a UNIX transport
2018-08-08 12:38:29 +02:00
Pierre Krieger
80f0f9986a
Add yamux in the reexports ( #305 )
2018-07-16 12:45:28 +02:00
Pierre Krieger
16e3453b7f
Use the new version of tokio ( #303 )
2018-07-16 12:15:27 +02:00
Pierre Krieger
8c4945ffb5
Add a TransportTimeout wrapper ( #234 )
...
* Add a TransportTimeout wrapper
* Add outgoing/ingoing only timeouts
2018-06-25 15:12:39 +02:00
Toralf Wittner
16967abda7
Use tokio-codec. ( #271 )
2018-06-22 16:12:23 +02:00
Pierre Krieger
7b375798a5
The Multiaddr of the remote is now a Future ( #249 )
...
* The Multiaddr of the remote is now a Future
* The multiaddress future in swarm is now a Box
2018-06-19 14:38:55 +02:00
Pierre Krieger
f193a2eb0c
Fix CommonTransport not accepting TCP/IP ( #229 )
2018-05-31 17:16:23 +02:00
Pierre Krieger
7d6ad230ea
Update the PeerId import paths ( #217 )
2018-05-24 18:00:47 +02:00
Pierre Krieger
c7f654a815
Put secio behind a feature flag in the facade ( #219 )
...
* Put secio behind a feature flag in the facade
* Define the features required by examples
* Test both with and without Cargo features
2018-05-24 16:24:20 +02:00
Pierre Krieger
b5db91a075
Restore ratelimit in libp2p facade ( #213 )
2018-05-23 17:03:42 +02:00
Toralf Wittner
445ae17904
Move SimpleProtocol
from core
to libp2p
. ( #212 )
...
cf. issue #200
2018-05-23 16:27:55 +02:00
Pierre Krieger
b7065de672
Make the libp2p facade compilable for emscripten ( #205 )
2018-05-23 11:22:49 +02:00
Pierre Krieger
d51321f5dd
Move the examples to the facade crate ( #197 )
2018-05-21 18:49:02 +02:00
Pierre Krieger
3dacc9009e
Add the two missing libraries from the facade ( #196 )
2018-05-20 10:11:42 +02:00
Pierre Krieger
a282434d5d
Add a libp2p facade crate ( #191 )
...
* Add a libp2p facade crate
* Remove secio for now
* Reexport peerstore and PeerId
* Also reexport swarm()
2018-05-18 14:56:11 +02:00