-
Notifications
You must be signed in to change notification settings - Fork 995
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(transport): websys-webtransport #3846
Conversation
rustflags = ["--cfg=web_sys_unstable_apis"] | ||
rustdocflags = ["--cfg=web_sys_unstable_apis"] |
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.
Note that these only applies when running cargo build/doc
at this crate level.
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.
Would it make sense to add this to the docs.rs table in the Cargo.toml
?
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.
Looking forward to this!
use web_sys::WebTransport; | ||
use libp2p_core::Transport; | ||
|
||
pub struct WebTransportTransport; |
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.
pub struct WebTransportTransport; | |
pub struct Transport; |
See #2217 for the naming convention we are trying to follow.
rustflags = ["--cfg=web_sys_unstable_apis"] | ||
rustdocflags = ["--cfg=web_sys_unstable_apis"] |
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.
Would it make sense to add this to the docs.rs table in the Cargo.toml
?
This PR implements `Transport` for WebTransport for browsers by using web-sys. Related: #3846. Resolves: #3825. Pull-Request: #4015. Co-Authored-By: Yiannis Marangos <[email protected]> Co-Authored-By: Maciej Zwoliński <[email protected]> Co-Authored-By: Yiannis Marangos <[email protected]>
Description
WIP Draft
Notes & open questions
Change checklist