-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(libp2p): add SwarmBuilder
#4120
Merged
Merged
Changes from 1 commit
Commits
Show all changes
186 commits
Select commit
Hold shift + click to select a range
557d052
feat(libp2p): add `TransportBuilder`
mxinden 90e53c0
Introduce BuildableTransport abstraction
mxinden fe1f3d3
Feature flag
mxinden a42f09a
Add OtherTransportBuilder
mxinden 321f588
Fix order
mxinden 4c11afc
Introduce SwarmBuilder
mxinden f8e0fe7
Add with_custom_tcp
mxinden 343ba2d
Have with_other_transport take keypair closure
mxinden be22008
Fully qualify libp2p_swarm::NetworkBehaviour
mxinden 44b9ac4
Use SwwarmBuilder in DCUtR example
mxinden eba4607
Remove resolved TODO
mxinden 5c0593f
Remove custom TCP option
mxinden 777542d
Add without_tcp option
mxinden bcf36ae
feat(core): add upgrade::Map
mxinden b301850
feat(swarm/builder): make authentication configurable
mxinden 7acc531
Feature flag for relay
mxinden 493bc8d
refactor(examples/ping): use `SwarmBuilder`
mxinden b5ed4ed
Rename to without_any_other_transports
mxinden 17258af
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden 43c9b36
feat: websocket support
mxinden e694bc9
Use macros for de-duplication
mxinden ffcffae
Fix tests
mxinden 225771f
Allow configuring tcp
mxinden bcdaf41
Add shortcuts
mxinden fec404a
Update autonat examples
mxinden 987dc11
Update chat examples
mxinden fc7c8f6
Fix dcutr example
mxinden 499121b
Add shortcuts
mxinden e1acfa1
Update key value store example
mxinden eb54dda
Update file sharing example
mxinden 0883641
Update metrics example
mxinden e05ccaf
Update libp2p identify example
mxinden e4abd6a
Update ipfs-kad example
mxinden 7aff8ee
Update ipfs-private example
mxinden 7a7e3c4
Update relay server
mxinden f4a4ca3
Update rendezvous examples
mxinden cb67678
Export as libp2p::SwarmBuilder
mxinden a6cf98f
Add shortcuts to skip without_any_other_transports
mxinden 04a39c0
Error handling
mxinden 1a5418d
Make with_behaviour fallible
mxinden e244c53
Add with_quic
mxinden 9b78ca9
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden 14606dd
Use with_quic
mxinden d3ffdd4
Introduce phases
mxinden faecb8b
Make without_ methods private whereever possible
mxinden bc7291b
Change phase order
mxinden 711bfcb
Rename runtime to provider
mxinden 12a22ed
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden 1b1f49d
Avoid need for `Ok` wrapping behaviour when closure is infallible
thomaseizinger 83a55e9
Apply global timeout of 10s
mxinden 2b68727
feat(swarm): add SwarmConfig
mxinden 4ad2a0e
Make `without_noise` on `TcpNoisePhase` private
mxinden c289ccc
Move pub use down
mxinden fb8f4b7
Deprecate development_transport
mxinden 46a8bd9
Wrap errors
mxinden 3dfb915
Make RelayNoisePhase without_noise private
mxinden 9f2aa7f
Add example showcasing all features
mxinden 37cb71a
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden e3ec84b
Add with_quic_config
mxinden 4c20f83
refactor(misc/server): use new SwarmBuilder
mxinden 19c401d
Use FnOnce instead of FnMut
mxinden 642bae2
Feature gate most from wasm32
mxinden 55dfaac
Fix clippy
mxinden 5a49887
More feature flags
mxinden c6feb01
More feature flags
mxinden adc3180
More feature flags
mxinden 6e760d7
Fix feature flag
mxinden 8793498
Clippy
mxinden 7393b8a
Clippy
mxinden f4cfa36
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden dec90c7
Make with_other_transport fallible
mxinden 62d2c8a
Use SwarmBuilder in interop-tests
mxinden 00dca91
Add WASM support
mxinden 926a684
Simplify with_wasm_bindgen
mxinden 9e53d1b
Remove wasm TODO
mxinden 9edf25e
interop: remove mplex support
mxinden c0c6e9c
Update ping tutorial
mxinden f22a4ff
Add with_bandwidth_logging
mxinden 01ea8eb
Shortcut for with_bandwidth_logging
mxinden 8f2d043
Fix minor CI failures
mxinden bc9cf5f
Feature flag any(tls, noise)
mxinden 32162a6
Use SwarmConfig
mxinden 054c9d3
Typo
mxinden 4f909c9
Don't build swarm
mxinden 9f640f3
fmt
mxinden 732072e
Bump versions and add changelog entries
mxinden 0b74e3f
Fix relay tests
mxinden a39a177
Move upgrade::Map into builder/map.rs
mxinden 97bf535
Bail on mplex
mxinden ce43526
Remove obsolete TODO
mxinden c6d580c
Feature flag map module
mxinden e497cb2
More feature flags
mxinden a80d726
Remove use for map
mxinden 848f360
Make Upgrade::new pub(crate)
mxinden 14954f0
Clippy
mxinden fa30561
Update libp2p/CHANGELOG.md
mxinden c6c8ca4
Update libp2p/src/lib.rs
mxinden aa19b1f
[WIP] with_tcp including sec and mux
mxinden 14c199f
[WIP] add support for tls+noise and yamux+mplex
mxinden 7f6da36
Be generic over provider
mxinden 10b3bc1
Simplify tls and noise construction
mxinden 1f310bb
Remove 1-tuple from security upgrade
thomaseizinger 729416e
Resolve single tuple problem for muxer upgrade
thomaseizinger 8dd8f37
Undo accidental change
thomaseizinger e9695cb
Merge branch 'master' into transport-builder
thomaseizinger 0c1e4ef
Resolve some more warnings
thomaseizinger 5ef58bb
Undo unnecessary changes
thomaseizinger 41bc9b6
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden 9d0538f
Remove unnecessary trait bounds on IntoSecurityUpgrade::Error
mxinden ca29c39
Adjust with_relay
mxinden 82eb655
Adjust with_websocket
mxinden a60993d
Split builder.rs into separate files
mxinden 4b052e5
Update upnp and browser webrtc
mxinden 5faae59
Rename SwarmConfig to Config
mxinden 4d7d3c6
Fix wasm compilation
mxinden 46c00a2
More wasm compilation flags
mxinden ec42577
Fix ipfs-kad example
mxinden 9f6950e
Remove reference to keep alive behaviour
mxinden 3bcbca3
Fix example warning
mxinden 288d964
cargo fmt
mxinden d8869e5
Fix doc tests
mxinden 09e7bae
fix swarm test
mxinden f1ef2ec
Fix kad tests
mxinden 1a2c540
Fix swarm config method names
mxinden c640929
Rename to with_relay_client
mxinden 3845c23
Implement with_websocket for RelayPhase
mxinden 4a8d38b
Rename to IdentityPhase
mxinden b135900
Introduce BehaviourError
mxinden b4e160b
Introduce TransportError
mxinden cb59522
Refactor nested quic macro
mxinden cc84f7c
Reword note on dummy transport usage
mxinden 705b086
Rephase note on unnecessary tokio await
mxinden 52ac76c
Seal TryInto traits
mxinden b1891b2
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden 83e3674
Rename to providerPascalCase
mxinden 9ee251f
interop: re-introduce mplex
mxinden 3e34a65
Refactor websocket error handling
mxinden 4853caf
Remove without_executor
mxinden fe79451
Rename new_with_config to new
mxinden 80b8657
Reword libp2p changelog
mxinden 63633dc
Reword swarm changelog
mxinden 5828b9e
refactor(examples/dcutr): use tokio
mxinden 2b680d6
Minor fixes
mxinden 1fd5a5f
Have with_swarm_config take closure
mxinden 4743616
Have with_quic_config take closure
mxinden 7a8ee9b
Remove unwrap
mxinden e962f02
Remove duplicate local peer id print
mxinden 358e7ff
Handle behaviour error
mxinden 711d7b6
Handle behaviour error
mxinden 99d7b6d
Ping idle connection timeout
mxinden 9bd04c7
Interop remove separate yamux import
mxinden 5a8c853
Use tls instead of libp2p-tls
mxinden 371b380
Require errors to be 'static
mxinden a5dc83c
Extend license header
mxinden 8c12ec5
Use libp2p_tcp::Config::default()
mxinden 5f060b4
Fix bad merge
mxinden 0058b02
Reduce diff
mxinden d57ceb0
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden e0a4a8e
Use new SwarmBuilder in examples/browser-webrtc wasm
mxinden 20bdf2c
Update libp2p/src/tutorials/ping.rs
mxinden fa90d63
fmt
mxinden 6be89c9
Use webrtc_websys module
mxinden 04929db
Use with_tokio_executor
mxinden 3717d1f
Re-introduce env_logger and fix idle timeout
mxinden bb91e8b
Remove duplicate peer id printing
mxinden 5014087
Don't require StreamMuxerBox in with_other_transport
mxinden aec063d
fmt
mxinden 7246971
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden 19d4f21
Minor follow-ups
mxinden 766c877
Fix wasm arch
mxinden 6d737f6
Merge branch 'master' into transport-builder
thomaseizinger 9afde03
Use #[allow(unused_imports)]
mxinden 334589e
Remove obsolete peer id print
mxinden c150965
Don't unwrap
mxinden 87808e2
Remove obsolete comment
mxinden e0029e4
Document with_tcp with_relay_client with_websocket taking function po…
mxinden 1df30f3
Merge branch 'master' of https://github.com/libp2p/rust-libp2p into t…
mxinden a015706
Fix intra-doc link
mxinden 1adf920
Merge branch 'master' into transport-builder
thomaseizinger a8351da
Merge branch 'master' into transport-builder
thomaseizinger 59409d3
Reduce diff
thomaseizinger 4eee7af
Reduce diff
thomaseizinger 01fbf43
Fix bug sec protocol selection
thomaseizinger 88d4361
Configure idle-connection timeout
thomaseizinger e3cc656
Merge branch 'master' into transport-builder
thomaseizinger 06ba925
Fix interop config bug
thomaseizinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once more, great catch @thomaseizinger.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interop tests made this one easy :)