Skip to content

Commit 5ee003b

Browse files
authored
core/src/identity: Fix build with secp256k1 disabled (#2057)
1 parent 29d969b commit 5ee003b

File tree

5 files changed

+14
-5
lines changed

5 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141

4242
# `libp2p` facade crate
4343

44+
## Version 0.37.2 [unreleased]
45+
46+
- Update individual crates.
47+
- `libp2p-core`
48+
4449
## Version 0.37.1 [2021-04-14]
4550

4651
- Update individual crates.
@@ -61,7 +66,7 @@
6166
- `libp2p-swarm`
6267
- `libp2p-wasm-ext`
6368
- `libp2p-yamux`
64-
69+
6570
- Drop support for `wasm32-unknown-unknown` in favor of
6671
`wasm32-unknown-emscripten` and `wasm32-wasi` [PR
6772
2038](https://github.com/libp2p/rust-libp2p/pull/2038).

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "libp2p"
33
edition = "2018"
44
description = "Peer-to-peer networking library"
5-
version = "0.37.1"
5+
version = "0.37.2"
66
authors = ["Parity Technologies <[email protected]>"]
77
license = "MIT"
88
repository = "https://github.com/libp2p/rust-libp2p"
@@ -64,7 +64,7 @@ atomic = "0.5.0"
6464
bytes = "1"
6565
futures = "0.3.1"
6666
lazy_static = "1.2"
67-
libp2p-core = { version = "0.28.2", path = "core", default-features = false }
67+
libp2p-core = { version = "0.28.3", path = "core", default-features = false }
6868
libp2p-floodsub = { version = "0.29.0", path = "protocols/floodsub", optional = true }
6969
libp2p-gossipsub = { version = "0.30.0", path = "./protocols/gossipsub", optional = true }
7070
libp2p-identify = { version = "0.29.0", path = "protocols/identify", optional = true }

core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.28.3 [2021-04-26]
2+
3+
- Fix build with secp256k1 disabled [PR 2057](https://github.com/libp2p/rust-libp2p/pull/2057].
4+
15
# 0.28.2 [2021-04-13]
26

37
- Update dependencies.

core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "libp2p-core"
33
edition = "2018"
44
description = "Core traits and structs of libp2p"
5-
version = "0.28.2"
5+
version = "0.28.3"
66
authors = ["Parity Technologies <[email protected]>"]
77
license = "MIT"
88
repository = "https://github.com/libp2p/rust-libp2p"

core/src/identity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ impl PublicKey {
208208
#[cfg(not(feature = "secp256k1"))]
209209
keys_proto::KeyType::Secp256k1 => {
210210
log::debug!("support for secp256k1 was disabled at compile-time");
211-
Err("Unsupported".to_string().into())
211+
Err(DecodingError::new("Unsupported"))
212212
}
213213
}
214214
}

0 commit comments

Comments
 (0)