-
Notifications
You must be signed in to change notification settings - Fork 184
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: common base library #1780
Conversation
please make sure to reexport the types from |
Added a |
I think individually makes probably more sense, to avoid moving types in there/out there a breaking change down the line |
I am generally fine with the name, I don't love it, but I don't have any alternatives 😅 |
Well, |
I realized that the The types from Leaves the |
|
not sure, @rklaehn thoughts? |
Anyone has an idea!? |
@@ -31,7 +31,7 @@ rand_core = "0.6.4" | |||
serde = { version = "1.0.164", features = ["derive"] } | |||
strum = { version = "0.25", features = ["derive"] } | |||
url = "2.4" | |||
bytes = { version = "1.4", feature = ["serde"] } | |||
bytes = { version = "1.4", features = ["serde"] } |
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.
😆
## Description This adds a new crate `iroh_base`. The following types were moved into the new crate: * `Hash`, `HashAndFormat` and `BlobFormat` from `iroh_bytes::util` * `base32` encoding/decoding util functions. They lived at various places before. * `RpcError` and `RpcResult` from `iroh_bytes::util` ## Notes & open questions * Naming: Shall it be `iroh_common` or `iroh_base`? I do not mind. If anyhow has a preference, please raise. I can change easily. * Anything else that should be moved over? Anything that I moved that should *not* be moved? ## Change checklist - [ ] Self-review. - [ ] Documentation updates if relevant. - [ ] Tests if relevant. --------- Co-authored-by: Asmir Avdicevic <asmir.avdicevic64@gmail.com>
Description
This adds a new crate
iroh_base
. The following types were moved into the new crate:Hash
,HashAndFormat
andBlobFormat
fromiroh_bytes::util
base32
encoding/decoding util functions. They lived at various places before.RpcError
andRpcResult
fromiroh_bytes::util
Notes & open questions
iroh_common
oriroh_base
? I do not mind. If anyhow has a preference, please raise. I can change easily.Change checklist