Skip to content

Commit 99d8eb3

Browse files
committed
Merge branch 'conditional'
2 parents 021f54e + ac2b150 commit 99d8eb3

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/rust/bitbox02-rust-c/Cargo.toml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,16 @@ platform-bitbox02 = []
7373
platform-bitbox02plus = ["util/sha2", "bitbox02-noise", "bitbox02-rust"]
7474

7575
bootloader = []
76-
firmware = ["bitbox02-rust", "bitbox02-rust/firmware", "bitbox02", "bitbox02-noise", "util/sha2", "util/p256", "util/firmware", "der", "bitbox-aes"]
76+
firmware = [
77+
"bitbox02-rust",
78+
"bitbox02-rust/firmware",
79+
"bitbox02",
80+
"bitbox02-noise",
81+
"util/sha2",
82+
"util/firmware",
83+
"der",
84+
"bitbox-aes",
85+
]
7786

7887
# Only to be enabled in Rust unit tests.
7988
testing = ["bitbox02-rust/testing", "bitbox02/testing"]
@@ -100,6 +109,7 @@ app-litecoin = [
100109
app-u2f = [
101110
# enable this feature in the deps
102111
"bitbox02-rust/app-u2f",
112+
"util/p256",
103113
]
104114

105115
app-cardano = [

src/rust/bitbox02-rust/src/keystore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ pub fn secp256k1_schnorr_sign(
187187
/// # Safety
188188
///
189189
/// keypath pointer has point to a buffer of length `keypath_len` uint32 elements.
190-
#[cfg(feature = "firmware")]
190+
#[cfg(feature = "c-unit-testing")]
191191
#[unsafe(no_mangle)]
192192
pub unsafe extern "C" fn rust_secp256k1_get_private_key(
193193
keypath: *const u32,

0 commit comments

Comments
 (0)