Skip to content

Commit

Permalink
core/src/identity: Fix build with secp256k1 disabled (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
vorot93 authored Apr 26, 2021
1 parent 29d969b commit 5ee003b
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@

# `libp2p` facade crate

## Version 0.37.2 [unreleased]

- Update individual crates.
- `libp2p-core`

## Version 0.37.1 [2021-04-14]

- Update individual crates.
Expand All @@ -61,7 +66,7 @@
- `libp2p-swarm`
- `libp2p-wasm-ext`
- `libp2p-yamux`

- Drop support for `wasm32-unknown-unknown` in favor of
`wasm32-unknown-emscripten` and `wasm32-wasi` [PR
2038](https://github.com/libp2p/rust-libp2p/pull/2038).
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "libp2p"
edition = "2018"
description = "Peer-to-peer networking library"
version = "0.37.1"
version = "0.37.2"
authors = ["Parity Technologies <[email protected]>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand Down Expand Up @@ -64,7 +64,7 @@ atomic = "0.5.0"
bytes = "1"
futures = "0.3.1"
lazy_static = "1.2"
libp2p-core = { version = "0.28.2", path = "core", default-features = false }
libp2p-core = { version = "0.28.3", path = "core", default-features = false }
libp2p-floodsub = { version = "0.29.0", path = "protocols/floodsub", optional = true }
libp2p-gossipsub = { version = "0.30.0", path = "./protocols/gossipsub", optional = true }
libp2p-identify = { version = "0.29.0", path = "protocols/identify", optional = true }
Expand Down
4 changes: 4 additions & 0 deletions core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.28.3 [2021-04-26]

- Fix build with secp256k1 disabled [PR 2057](https://github.com/libp2p/rust-libp2p/pull/2057].

# 0.28.2 [2021-04-13]

- Update dependencies.
Expand Down
2 changes: 1 addition & 1 deletion core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "libp2p-core"
edition = "2018"
description = "Core traits and structs of libp2p"
version = "0.28.2"
version = "0.28.3"
authors = ["Parity Technologies <[email protected]>"]
license = "MIT"
repository = "https://github.com/libp2p/rust-libp2p"
Expand Down
2 changes: 1 addition & 1 deletion core/src/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ impl PublicKey {
#[cfg(not(feature = "secp256k1"))]
keys_proto::KeyType::Secp256k1 => {
log::debug!("support for secp256k1 was disabled at compile-time");
Err("Unsupported".to_string().into())
Err(DecodingError::new("Unsupported"))
}
}
}
Expand Down

0 comments on commit 5ee003b

Please sign in to comment.