-
Notifications
You must be signed in to change notification settings - Fork 1.1k
swarm/: Support generic connection management through NetworkBehaviour #2828
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
Changes from all commits
3927ca2
7bfdba6
835394c
553f280
cb42dd3
b4f1472
3f58ccd
0e682ec
ebe1131
7335a94
486daba
a7eb4cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[package] | ||
name = "libp2p-connection-limit" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this have to be its own crate? I think this could also live in It can still be feature-flagged there if we want but looking at the dependencies of this crate, we don't really gain much at the moment from separating this out. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Separate crate forces us to deliver on the promise of being able to implement ones own. That said, agreed that we don't gain much more and instead add complexity. |
||
edition = "2021" | ||
rust-version = "1.56.1" | ||
description = "Basic connection limiting functionality" | ||
version = "0.1.0" | ||
authors = ["Max Inden <[email protected]>"] | ||
license = "MIT" | ||
repository = "https://github.com/libp2p/rust-libp2p" | ||
keywords = ["peer-to-peer", "libp2p", "networking"] | ||
categories = ["network-programming", "asynchronous"] | ||
|
||
[dependencies] | ||
libp2p-core = { version = "0.35.0", path = "../../core", default-features = false } | ||
libp2p-swarm = { version = "0.38.0", path = "../../swarm" } | ||
# TODO: Still needed? | ||
fnv = "1.0" | ||
futures = "0.3.0" | ||
|
||
[dev-dependencies] | ||
quickcheck = "0.9.0" | ||
libp2p-plaintext = { path = "../../transports/plaintext" } | ||
libp2p-yamux = { path = "../../muxers/yamux" } | ||
libp2p = { version = "0.47.0", path = "../..", default-features = false } |
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.
Long term, I would say no because of #2173. For consistency with the current way of doing things, probably yes.