-
Notifications
You must be signed in to change notification settings - Fork 171
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(iroh)!: cleanup public API #2263
Conversation
bc872ce
to
99f1e25
Compare
b1cba3e
to
5ce23dc
Compare
Really like the Also, to confirm, removing access to the rpc is based on the assumption that only we use it, right? If that's the case (and even if not) here is a quick search of non fork repos using |
2f2c0e6
to
bde91d4
Compare
I agree, the reason I changed it, was that I found it confusing to have eg |
Maybe also rename |
keeping with the rust convention of avoiding double names, I changed them to |
.github/workflows/ci.yml
Outdated
SCCACHE_GHA_ENABLED: "on" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable |
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.
If you use with: toolchain
then this should be @master
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.
but then this is not against a fixed tag and would change everytime there is a change on the action, no?
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.
true, it's the way the action is designed though. i think it makes sense to use as designed, until we find out it hurts us. @stable is also a moving tag which moves every 6 weeks.
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.
done
- iroh: move `DocTicket` into `iroh-sync` - iroh: remove `ticket` module
and cleanup some dead code
2ce0277
to
b21f9cc
Compare
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.
lgtm
## Description Cleanup and improve public api, see individual commits for details. ## Breaking Changes Many, but hopefully less in the future. - `iroh`: - renamed: - `ProviderService` -> `RpcService` - `iroh::client` - `mem::Iroh` -> `MemIroh` - `mem::Doc` -> `MemDoc` - `quic::Iroh` -> `QuicIroh` - `quic::Doc` -> `QuicDoc` - `blobs::BlobReader` -> `blobs::Reader` - `blobs::BlobAddProgress` -> `blobs::AddProgress` - `blobs::BlobAddOutcome` -> `blobs::AddOutcome` - `blobs::BlobDownloadProgress` -> `blobs::DownloadProgress` - `blobs::BlobDownloadOutcome` -> `blobs::DownloadOutcome` - `blobs::BlobExportProgress` -> `blobs::ExportProgress` - `docs::DocImportFileProgress` -> `docs::ImportFileProgress` - `docs::DocExportFileProgress` -> `docs::ExportFileProgress` - `docs::DocImportFileOutcome` -> `docs::ImportFileOutcome` - `docs::DocExportFileOutcome` -> `docs::ExportFileOutcome` - `rpc_protocol::NodeStatusResponse` -> `client::node::NodeStatus` - `rpc_protocol::ListTagsResponse` -> `client::tags::TagInfo` - `rpc_protocol::BlobListResponse` -> `client::blobs::BlobInfo` - `rpc_protocol::BlobListIncompleteResponse` -> `client::blobs::IncompleteBlobInfo` - `rpc_protocol::BlobListCollectionResponse` -> `client::blobs::CollectionInfo` - `rpc_protocol::DownloadMode` -> `client::blobs::DownloadMode` - moved: - `DocTicket` into `iroh-sync` - removed: - `ticket` module - `dial` module - made private: - `sync_engine` - `client::rpc_protocol` - `client::quic::RPC_ALPN` - `client::quic::connect_raw` - added - `client::node::Client::id` - `client::blobs::Client::download_with_opts` - `client::blobs::Client::download_hash_seq`
Description
Cleanup and improve public api, see individual commits for details.
Breaking Changes
Many, but hopefully less in the future.
iroh
:ProviderService
->RpcService
iroh::client
mem::Iroh
->MemIroh
mem::Doc
->MemDoc
quic::Iroh
->QuicIroh
quic::Doc
->QuicDoc
blobs::BlobReader
->blobs::Reader
blobs::BlobAddProgress
->blobs::AddProgress
blobs::BlobAddOutcome
->blobs::AddOutcome
blobs::BlobDownloadProgress
->blobs::DownloadProgress
blobs::BlobDownloadOutcome
->blobs::DownloadOutcome
blobs::BlobExportProgress
->blobs::ExportProgress
docs::DocImportFileProgress
->docs::ImportFileProgress
docs::DocExportFileProgress
->docs::ExportFileProgress
docs::DocImportFileOutcome
->docs::ImportFileOutcome
docs::DocExportFileOutcome
->docs::ExportFileOutcome
rpc_protocol::NodeStatusResponse
->client::node::NodeStatus
rpc_protocol::ListTagsResponse
->client::tags::TagInfo
rpc_protocol::BlobListResponse
->client::blobs::BlobInfo
rpc_protocol::BlobListIncompleteResponse
->client::blobs::IncompleteBlobInfo
rpc_protocol::BlobListCollectionResponse
->client::blobs::CollectionInfo
rpc_protocol::DownloadMode
->client::blobs::DownloadMode
DocTicket
intoiroh-sync
ticket
moduledial
modulesync_engine
client::rpc_protocol
client::quic::RPC_ALPN
client::quic::connect_raw
client::node::Client::id
client::blobs::Client::download_with_opts
client::blobs::Client::download_hash_seq