-
Notifications
You must be signed in to change notification settings - Fork 63
feat!: split crates into multiple to isolate breaking changes #272
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
Merged
Merged
Changes from 25 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
7f3c30d
Initial split of crates
thomaseizinger 3932079
Deprecate export of `Multihash`
thomaseizinger 8ca3071
inline synstructure macro
thomaseizinger 91f96c6
Deprecate old macro name in favor of new one
thomaseizinger d0e8215
Remove `derive` feature flag
thomaseizinger bcf8135
Remove unnecessary `pub` qualifier
thomaseizinger 9cee44e
Remove unnecessary feature-gated import
thomaseizinger c1e5355
Deprecate `serde-codec`
thomaseizinger 2dbeded
Remove git blame file
thomaseizinger f3a4c8b
Run rustfmt
thomaseizinger d9aa346
Reduce number of `cfg`s
thomaseizinger 2bc4101
Remove `Result` type
thomaseizinger 2a96940
Make `Error` opaque
thomaseizinger aab78df
Introduce `multihash-derive-impl` crate
thomaseizinger e2e2229
Fix clippy lint
thomaseizinger c32ce92
Only build multihash for no_std
thomaseizinger cb0d728
Update docs
thomaseizinger abbb7eb
Update docs for multihash-codetable
thomaseizinger c502465
Remove outdated docs
thomaseizinger e67be12
Replace macro tests with trybuild
thomaseizinger 4d3048c
Remove unused feature `std` from `multihash`
thomaseizinger 5a97fdc
Export deprecated macro name
thomaseizinger 0b85ce9
Reduce diff
thomaseizinger 960ec0e
Minimize diff and fix cargo metadata
thomaseizinger 72601b1
Minimize diff
thomaseizinger b25bfcb
Remove `extern crate core`
thomaseizinger c0925a8
Use `dep:` consistently
thomaseizinger 0cb5c77
Use uniform way of referring to error type
thomaseizinger 55759e5
Make everything work on `no_std` again
thomaseizinger 9a679cc
Add back serde support for `Code`
thomaseizinger c44bfb2
Reintroduce feature-flags in `multihash-codetable`
thomaseizinger 40ea00c
Only use `serde` feature flag
thomaseizinger eb955f2
Restore old feature flags
thomaseizinger 4f4e34d
Merge imports
thomaseizinger 65b2ebc
Remove unnecessary qualification
thomaseizinger efc5caa
Restore identity hasher
thomaseizinger d48ac2c
Correctly feature-gate export
thomaseizinger b73894c
Replace imports with full-qualified references to avoid `cfg`s
thomaseizinger f5e46ca
Fix test
thomaseizinger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
[package] | ||
name = "multihash-codetable" | ||
description = "Default multihash code-table with cryptographically secure hash implementations" | ||
version = "0.1.0" | ||
repository = "https://github.com/multiformats/rust-multihash" | ||
license = "MIT" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
blake2b_simd = { version = "1.0.0", default-features = false } | ||
blake2s_simd = { version = "1.0.0", default-features = false } | ||
blake3 = { version = "1.2.0", default-features = false } | ||
digest = { version = "0.10.1", default-features = false } | ||
sha-1 = { version = "0.10.0", default-features = false } | ||
sha-2 = { version = "0.10.0", default-features = false, package = "sha2" } | ||
sha-3 = { version = "0.10.0", default-features = false, package = "sha3" } | ||
thomaseizinger marked this conversation as resolved.
Show resolved
Hide resolved
|
||
strobe-rs = { version = "0.7.0", default-features = false } | ||
ripemd-rs = { package = "ripemd", version = "0.1.1"} | ||
multihash-derive = { version = "0.8.0", path = "../derive", default-features = false } | ||
|
||
[dev-dependencies] | ||
hex = "0.4.2" | ||
unsigned-varint = { version = "0.7.1", default-features = false } | ||
criterion = "0.3.3" | ||
rand = "0.8.5" | ||
|
||
[[bench]] | ||
name = "multihash" | ||
harness = false |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.