-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Take
impl BlockStore
instead of &impl BlockStore
in gen…
…eral (#40) Also: - Remove `async_trait` - Expose blanket `impl<C: Cache> Cache for &C` and `Box<C>` - Move the `trait` module to `cache` - Remove `has_block` from `trait Cache` - Add a blockstore wrapper utility `CacheMissing` under the `quick_cache` feature --- * refactor: Remove `async_trait` dependency * refactor: Use `impl Trait` instead of `&impl Trait` everywhere * chore: Allow wnfs-wg git dependencies * refactor: Blanket impl `Cache` for `&C` and `Box<C>` Instead of blanket-implementing for all `Deref` types. This makes error messages better & is generally seems to be the soft consensus. * refactor: Use newer `BlockStore` trait methods * feat: Implement `CacheMissing` blockstore wrapper * feat: Use new error types for `BlockStoreError` * chore: Fix lint * chore: Update to released wnfs version 0.2.0
- Loading branch information
Showing
18 changed files
with
746 additions
and
636 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,14 +6,13 @@ edition = "2021" | |
authors = ["Philipp Krüger <[email protected]>"] | ||
|
||
[dependencies] | ||
anyhow = "1.0" | ||
anyhow = { workspace = true } | ||
async-std = { version = "1.11", features = ["attributes"] } | ||
async-trait = "0.1" | ||
bytes = "1.4.0" | ||
bytes = { workspace = true } | ||
car-mirror = { path = "../car-mirror", version = "0.1", features = ["test_utils", "quick_cache"] } | ||
libipld = "0.16.0" | ||
serde_ipld_dagcbor = "0.4.0" | ||
wnfs-common = "0.1.23" | ||
libipld = { workspace = true } | ||
serde_ipld_dagcbor = { workspace = true } | ||
wnfs-common = { workspace = true } | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.4", default-features = false } | ||
|
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
Oops, something went wrong.