-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move docs engine into iroh-docs (#2343)
## Description Moves `iroh::docs_engine` to `iroh_docs::engine`. Most changes are changed imports, dependencies, and visibility changes (plus docs where they are now required). Everything is moved over, only the RPC implementation stays in iroh for now. The `iroh_docs::engine::Engine` is wrapped in a newtype `DocsEngine` in iroh that derefs to the `Engine` so that we can implement the RPC methods directly. ## Breaking Changes * `iroh::client::docs::{Origin, SyncReason, SyncEvent}` are now reexports of `iroh_docs::engine::{Origin, SyncReason, SyncEvent}`. There is no need to change anything in your code that uses these structs via `iroh::client::docs`. <!-- Optional, if there are any breaking changes document them, including how to migrate older code. --> ## Notes & open questions <!-- Any notes, remarks or open questions you have to make about the PR. --> ## Change checklist - [x] Self-review. - [x] Documentation updates if relevant. - ~~[ ] Tests if relevant.~~ - [x] All breaking changes documented.
- Loading branch information
Showing
14 changed files
with
146 additions
and
111 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
iroh/src/docs_engine/state.rs → iroh-docs/src/engine/state.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.