-
Notifications
You must be signed in to change notification settings - Fork 957
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
Extend feature-flags to allow choosing runtime for libp2p-tcp #1471
Conversation
e5026f1
to
04ab75f
Compare
This comment has been minimized.
This comment has been minimized.
82ff15d
to
9f8cce0
Compare
9f8cce0
to
09ff28f
Compare
dd537f6
to
47afe64
Compare
@tomaka This is ready for review / input from my side :) |
We'd very much like this as well. Adding async-std is a big dependency because we're already using tokio. |
Yeah, this PR being reviewed and merged is long overdue. |
To be clear, it's already possible to not depend on I would gladly accept the changes that this PR makes to the root However the changes in |
After commenting, I realized the solution is to explicitly depend on
libp2p-tcp without default features and with tokio.
Indeed, the required change should just be an extra feature in the main
crate.
…On Mon, May 11, 2020 at 11:05 Pierre Krieger ***@***.***> wrote:
Adding async-std is a big dependency because we're already using tokio.
To be clear, it's already possible to not depend on async-std but
depending on libp2p-tcp explicitly and adding default-features = false.
I would gladly accept the changes that this PR makes to the root
Cargo.toml. The fact that it's impossible to disable async-std directly
from the libp2p facade crate is clearly an overlook.
However the changes in libp2p-tcp and in particular the module path
change are pure bikeshedding to me.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1471 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAKSPJFYCWPAUQVTKQ5VMTRRAH2VANCNFSM4K33QWJA>
.
|
Thanks for the feedback! |
47afe64
to
1b02772
Compare
1b02772
to
8148c1c
Compare
8148c1c
to
5032c6f
Compare
@tomaka Changes to the root Cargo.toml have been split out :) To clarify this:
Are you generally opposed to both of these changes? Would you be willing to merge the "generics" approach while keeping the public API of |
My honest opinion is that I don't see a solution based on a trait as better or more readable than a solution based on a macro. I'm not strictly opposed to this change, but I don't really have the motivation to review it, and I'm kept busy with other things which prevent me from properly answering that PR. As for the PR as it is now, could you add an entry in the CHANGELOG mentioning the fact that the |
That is fair, thank you for the reply and sorry for not separating the aspects of this PR more cleanly in the first place!
Will do! |
Uff, I completely forgot to add the changelog entry, sorry about that :( |
This patch changes the feature flags in the root Cargo.toml to allow choosing which runtime to use for the
libp2p-tcp
implementation.