-
Notifications
You must be signed in to change notification settings - Fork 1k
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
feat: introduce libp2p-identity
crate
#3350
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
e170582
Introduce `libp2p-identity`
thomaseizinger 1c38271
Deprecate `PeerId::try_from_multiaddr`
thomaseizinger b04dae9
Add missing backtick
thomaseizinger b0ffd1b
Fix build errors
thomaseizinger 05efe05
Add package keys
thomaseizinger 4c65409
Move PeerId tests to `libp2p-identity`
thomaseizinger 84caeb3
Move PeerId benches to `libp2p-identity`
thomaseizinger d8ae4ed
Migrate workspace to depend on libp2p-identity
thomaseizinger 36848f6
Add dummy keypair implementation
thomaseizinger 198b7e3
Add missing re-exports of other key types
thomaseizinger d85582c
Remove unnecessary docs
thomaseizinger b0ce75d
Merge branch 'master' into feat/libp2p-identity
thomaseizinger 94b1a30
Make `decoding_unsupported` unconditionally available
thomaseizinger 457a694
Merge branch 'master' into feat/libp2p-identity
thomaseizinger bdbee42
Introduce ed25519 feature flag
thomaseizinger bea9855
Sort stuff alphabetically
thomaseizinger 591f002
Deprecate direct access to inner keypair and public key
thomaseizinger e4b758e
Use correct rsa feature flag
thomaseizinger 5f91ec5
Fix deprecated imports in tests
thomaseizinger f00f1c1
Remove unused import
thomaseizinger e791ef1
Add deprecations for the feature-flags in libp2p-core
thomaseizinger 6d04533
Remove unnecessary feature gates
thomaseizinger dee1008
More fixes
thomaseizinger 7793c0f
Fix bad feature-gate
thomaseizinger cb60c3f
More bad feature gates
thomaseizinger ac044e9
Merge branch 'master' into feat/libp2p-identity
thomaseizinger 2a85688
Merge branch 'master' into feat/libp2p-identity
thomaseizinger 81a7b25
Merge branch 'master' into feat/libp2p-identity
thomaseizinger 6a85bfe
Merge branch 'master' into feat/libp2p-identity
thomaseizinger e99b69a
Merge branch 'master' into feat/libp2p-identity
thomaseizinger cd132c9
Merge branch 'master' into feat/libp2p-identity
thomaseizinger 37ea12c
Don't feature flag ed25519 in libp2p-core
thomaseizinger 6c67eef
Fix deprecated usages
thomaseizinger 57e2327
Merge branch 'master' into feat/libp2p-identity
thomaseizinger 7406c5f
Merge branch 'master' into feat/libp2p-identity
thomaseizinger b59b327
Properly generate proto bindings
thomaseizinger 07ad795
Adapt libp2p-identity to new proto structure
thomaseizinger 2035d1a
Remove deprecation warning
thomaseizinger 016a96d
Generate proto files with correct compiler version
thomaseizinger 975536f
Move changelog entry to correct version
thomaseizinger f6f0c24
Amend changelog entry
thomaseizinger 5dc04dd
Merge branch 'master' into feat/libp2p-identity
thomaseizinger dd4b334
Merge branch 'master' into feat/libp2p-identity
thomaseizinger 984ebe9
Fix bad merge
thomaseizinger 36492df
Merge branch 'master' into feat/libp2p-identity
thomaseizinger c1de283
Fix deprecation warnings and compile errors
thomaseizinger 8e7ba6f
Generate proto bindings correctly
thomaseizinger d03eb75
Merge branch 'master' into feat/libp2p-identity
thomaseizinger 2dd936b
Merge branch 'master' into feat/libp2p-identity
mxinden 17d8973
Merge branch 'master' into feat/libp2p-identity
mxinden 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
Large diffs are not rendered by default.
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
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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// Automatically generated mod.rs | ||
pub mod envelope_proto; | ||
pub mod keys_proto; | ||
pub mod peer_record_proto; |
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
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
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.
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.
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.
@obi1kenobi I think we might have hit another bug here!
cargo semver-checks
is reporting these two as missing. I've tried with type aliases as well and it doesn't make a difference which makes me think that I am doing something wrong here? It did work in my testing though, i.e. I got heaps of deprecation warnings but stuff was still working when I developed this feature.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.
This is a move to another crate + re-export, right? Semver-checking right now only generates the tested crate's rustdoc JSON, so it doesn't see cross-crate re-exports: obi1kenobi/cargo-semver-checks#355
It's fixable issue with a clear path forward. Just a matter of engineering cycles, which are always in short supply.
Thankfully, once you publish the next version of the affected crate, the false-positive will go away since the baseline will shift to that new version.