Skip to content
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

Closed
wants to merge 4 commits into from

Conversation

mriise
Copy link

@mriise mriise commented Apr 27, 2023

Description

WIP Draft

Notes & open questions

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • A changelog entry has been made in the appropriate crates

@mriise mriise changed the title feat: websys-webtransport feat(transport): websys-webtransport Apr 27, 2023
Comment on lines +3 to +4
rustflags = ["--cfg=web_sys_unstable_apis"]
rustdocflags = ["--cfg=web_sys_unstable_apis"]
Copy link
Author

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.

Copy link
Contributor

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?

Copy link
Contributor

@thomaseizinger thomaseizinger left a 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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pub struct WebTransportTransport;
pub struct Transport;

See #2217 for the naming convention we are trying to follow.

Comment on lines +3 to +4
rustflags = ["--cfg=web_sys_unstable_apis"]
rustdocflags = ["--cfg=web_sys_unstable_apis"]
Copy link
Contributor

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?

@thomaseizinger
Copy link
Contributor

thomaseizinger commented Jun 14, 2023

Closing this in favor of the almost ready #4015.

Thanks for getting it started @mriise !

mergify bot pushed a commit that referenced this pull request Jun 23, 2023
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants