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

refactor: rename iroh-net transport to iroh-transport #123

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

rklaehn
Copy link
Collaborator

@rklaehn rklaehn commented Nov 29, 2024

renamed

  • the module iroh_net -> iroh
  • the connector IrohNetConnector to IrohConnector
  • the listener IrohNetListener to IrohListener
  • the feature flag "iroh-net-transport" to "iroh-transport"

The reason for this that while previously iroh was the networking part and a number of canonical protocols, now we changed the naming to make iroh the networking stack and the ability to have custom protocols.

See https://www.iroh.computer/blog/road-to-1-0

Also, I think it also just reads nicer.

renamed
- the module iroh_net -> iroh
- the connector IrohNetConnector to IrohConnector
- the listener IrohNetListener to IrohListener
- the feature flag "iroh-net-transport" to "iroh-transport"
@rklaehn rklaehn requested review from fogodev and flub November 29, 2024 08:14
Cargo.toml Outdated
@@ -58,7 +58,7 @@ tokio-util = { version = "0.7", features = ["rt"] }
hyper-transport = ["dep:flume", "dep:hyper", "dep:postcard", "dep:bytes", "dep:tokio-serde", "tokio-util/codec"]
quinn-transport = ["dep:flume", "dep:quinn", "dep:postcard", "dep:tokio-serde", "tokio-util/codec"]
flume-transport = ["dep:flume"]
iroh-net-transport = ["dep:iroh-net", "dep:flume", "dep:quinn", "dep:postcard", "dep:tokio-serde", "tokio-util/codec"]
iroh-transport = ["dep:iroh-net", "dep:flume", "dep:quinn", "dep:postcard", "dep:tokio-serde", "tokio-util/codec"]
Copy link
Contributor

Choose a reason for hiding this comment

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

dep:iroh-net reads odd, but I guess that needs to wait for the next release?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I do the rename now, and then we will have to fix this when the new crates get published.

@rklaehn rklaehn merged commit 69e7c4a into main Nov 29, 2024
14 of 15 checks passed
@rklaehn rklaehn deleted the rename-iroh-net-transport branch November 29, 2024 14:40
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.

3 participants