Skip to content

Commit cdce7cd

Browse files
committed
Merge branch 'updatedeps'
2 parents 04c7034 + 471cade commit cdce7cd

File tree

603 files changed

+140001
-11438
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

603 files changed

+140001
-11438
lines changed

.ci/run-container-ci

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
set -e
2626
set -x
2727

28-
CONTAINER=shiftcrypto/firmware_v2:29
28+
CONTAINER=shiftcrypto/firmware_v2:30
2929

3030
if [ "$1" == "pull" ] ; then
3131
docker pull "$CONTAINER"

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ RUN rustup target add thumbv7em-none-eabi
130130
RUN rustup component add rustfmt
131131
RUN rustup component add clippy
132132
RUN CARGO_HOME=/opt/cargo cargo install cbindgen --version 0.24.3
133-
RUN CARGO_HOME=/opt/cargo cargo install bindgen-cli --version 0.61.0
133+
RUN CARGO_HOME=/opt/cargo cargo install bindgen-cli --version 0.63.0
134134

135135
COPY tools/prost-build prost-build
136136
RUN CARGO_HOME=/opt/cargo cargo install --path prost-build --locked

src/CMakeLists.txt

Lines changed: 113 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -271,127 +271,127 @@ add_custom_target(rust-bindgen
271271
--use-core
272272
--with-derive-default
273273
--ctypes-prefix util::c_types
274-
--whitelist-function strftime
275-
--whitelist-function localtime
276-
--whitelist-function wally_free_string
277-
--whitelist-function mock_memory_factoryreset
278-
--whitelist-function memory_setup
279-
--whitelist-function memory_is_initialized
280-
--whitelist-function memory_set_initialized
281-
--whitelist-function memory_is_seeded
282-
--whitelist-function memory_is_mnemonic_passphrase_enabled
283-
--whitelist-function memory_get_attestation_pubkey_and_certificate
284-
--whitelist-function memory_bootloader_hash
285-
--whitelist-function memory_get_noise_static_private_key
286-
--whitelist-function memory_check_noise_remote_static_pubkey
287-
--whitelist-function memory_add_noise_remote_static_pubkey
288-
--whitelist-function memory_get_device_name
289-
--whitelist-function memory_set_device_name
290-
--whitelist-function memory_set_mnemonic_passphrase_enabled
291-
--whitelist-var MEMORY_MULTISIG_NAME_MAX_LEN
292-
--whitelist-function memory_set_seed_birthdate
293-
--whitelist-function memory_get_seed_birthdate
294-
--whitelist-function memory_multisig_get_by_hash
295-
--whitelist-function memory_multisig_set_by_hash
296-
--whitelist-function smarteeprom_bb02_config
297-
--whitelist-function bitbox02_smarteeprom_init
274+
--allowlist-function strftime
275+
--allowlist-function localtime
276+
--allowlist-function wally_free_string
277+
--allowlist-function mock_memory_factoryreset
278+
--allowlist-function memory_setup
279+
--allowlist-function memory_is_initialized
280+
--allowlist-function memory_set_initialized
281+
--allowlist-function memory_is_seeded
282+
--allowlist-function memory_is_mnemonic_passphrase_enabled
283+
--allowlist-function memory_get_attestation_pubkey_and_certificate
284+
--allowlist-function memory_bootloader_hash
285+
--allowlist-function memory_get_noise_static_private_key
286+
--allowlist-function memory_check_noise_remote_static_pubkey
287+
--allowlist-function memory_add_noise_remote_static_pubkey
288+
--allowlist-function memory_get_device_name
289+
--allowlist-function memory_set_device_name
290+
--allowlist-function memory_set_mnemonic_passphrase_enabled
291+
--allowlist-var MEMORY_MULTISIG_NAME_MAX_LEN
292+
--allowlist-function memory_set_seed_birthdate
293+
--allowlist-function memory_get_seed_birthdate
294+
--allowlist-function memory_multisig_get_by_hash
295+
--allowlist-function memory_multisig_set_by_hash
296+
--allowlist-function smarteeprom_bb02_config
297+
--allowlist-function bitbox02_smarteeprom_init
298298
--rustified-enum memory_result_t
299-
--whitelist-var MEMORY_DEVICE_NAME_MAX_LEN
300-
--whitelist-function securechip_attestation_sign
301-
--whitelist-function securechip_monotonic_increments_remaining
302-
--whitelist-function securechip_u2f_counter_set
303-
--whitelist-function securechip_model
299+
--allowlist-var MEMORY_DEVICE_NAME_MAX_LEN
300+
--allowlist-function securechip_attestation_sign
301+
--allowlist-function securechip_monotonic_increments_remaining
302+
--allowlist-function securechip_u2f_counter_set
303+
--allowlist-function securechip_model
304304
--rustified-enum securechip_model_t
305-
--whitelist-var KEYSTORE_MAX_SEED_LENGTH
306-
--whitelist-function keystore_is_locked
307-
--whitelist-function keystore_unlock
308-
--whitelist-function keystore_unlock_bip39
309-
--whitelist-function keystore_lock
310-
--whitelist-function keystore_create_and_store_seed
311-
--whitelist-function keystore_copy_seed
312-
--whitelist-function keystore_get_bip39_mnemonic
313-
--whitelist-function keystore_get_bip39_word
314-
--whitelist-function keystore_get_ed25519_seed
315-
--whitelist-function keystore_secp256k1_pubkey_uncompressed
316-
--whitelist-function keystore_secp256k1_nonce_commit
317-
--whitelist-function keystore_secp256k1_sign
318-
--whitelist-function keystore_secp256k1_schnorr_bip86_sign
319-
--whitelist-function keystore_bip39_mnemonic_to_seed
320-
--whitelist-function keystore_get_root_fingerprint
321-
--whitelist-function keystore_mock_unlocked
322-
--whitelist-function keystore_secp256k1_pubkey_hash160
323-
--whitelist-var EC_PUBLIC_KEY_UNCOMPRESSED_LEN
324-
--whitelist-var EC_PUBLIC_KEY_LEN
325-
--whitelist-function keystore_encode_xpub_at_keypath
326-
--whitelist-function keystore_encrypt_and_store_seed
305+
--allowlist-var KEYSTORE_MAX_SEED_LENGTH
306+
--allowlist-function keystore_is_locked
307+
--allowlist-function keystore_unlock
308+
--allowlist-function keystore_unlock_bip39
309+
--allowlist-function keystore_lock
310+
--allowlist-function keystore_create_and_store_seed
311+
--allowlist-function keystore_copy_seed
312+
--allowlist-function keystore_get_bip39_mnemonic
313+
--allowlist-function keystore_get_bip39_word
314+
--allowlist-function keystore_get_ed25519_seed
315+
--allowlist-function keystore_secp256k1_pubkey_uncompressed
316+
--allowlist-function keystore_secp256k1_nonce_commit
317+
--allowlist-function keystore_secp256k1_sign
318+
--allowlist-function keystore_secp256k1_schnorr_bip86_sign
319+
--allowlist-function keystore_bip39_mnemonic_to_seed
320+
--allowlist-function keystore_get_root_fingerprint
321+
--allowlist-function keystore_mock_unlocked
322+
--allowlist-function keystore_secp256k1_pubkey_hash160
323+
--allowlist-var EC_PUBLIC_KEY_UNCOMPRESSED_LEN
324+
--allowlist-var EC_PUBLIC_KEY_LEN
325+
--allowlist-function keystore_encode_xpub_at_keypath
326+
--allowlist-function keystore_encrypt_and_store_seed
327327
--rustified-enum xpub_type_t
328-
--whitelist-var XPUB_ENCODED_LEN
329-
--whitelist-function lock_animation_start
330-
--whitelist-function lock_animation_stop
331-
--whitelist-function delay_us
328+
--allowlist-var XPUB_ENCODED_LEN
329+
--allowlist-function lock_animation_start
330+
--allowlist-function lock_animation_stop
331+
--allowlist-function delay_us
332332
--rustified-enum keystore_error_t
333333
--rustified-enum keystore_secp256k1_pubkey_format
334-
--whitelist-function keystore_secp256k1_schnorr_bip86_pubkey
335-
--whitelist-function util_format_datetime
336-
--whitelist-type buffer_t
337-
--whitelist-function delay_ms
338-
--whitelist-function UG_PutString
339-
--whitelist-function UG_FontSelect
340-
--whitelist-function UG_ClearBuffer
341-
--whitelist-function UG_SendBuffer
342-
--whitelist-function screen_print_debug
343-
--whitelist-function ui_screen_stack_push
344-
--whitelist-function ui_screen_stack_pop
345-
--whitelist-function ui_screen_stack_pop_all
346-
--whitelist-function screen_process
347-
--whitelist-function label_create
348-
--whitelist-function confirm_create
349-
--whitelist-function status_create
350-
--whitelist-function sdcard_create
351-
--whitelist-function menu_create
352-
--whitelist-function trinary_choice_create
334+
--allowlist-function keystore_secp256k1_schnorr_bip86_pubkey
335+
--allowlist-function util_format_datetime
336+
--allowlist-type buffer_t
337+
--allowlist-function delay_ms
338+
--allowlist-function UG_PutString
339+
--allowlist-function UG_FontSelect
340+
--allowlist-function UG_ClearBuffer
341+
--allowlist-function UG_SendBuffer
342+
--allowlist-function screen_print_debug
343+
--allowlist-function ui_screen_stack_push
344+
--allowlist-function ui_screen_stack_pop
345+
--allowlist-function ui_screen_stack_pop_all
346+
--allowlist-function screen_process
347+
--allowlist-function label_create
348+
--allowlist-function confirm_create
349+
--allowlist-function status_create
350+
--allowlist-function sdcard_create
351+
--allowlist-function menu_create
352+
--allowlist-function trinary_choice_create
353353
--rustified-enum trinary_choice_t
354-
--whitelist-var BASE58_CHECKSUM_LEN
355-
--whitelist-function random_32_bytes_mcu
356-
--whitelist-function random_mock_reset
357-
--whitelist-type component_t
358-
--whitelist-type confirm_params_t
359-
--whitelist-var MAX_LABEL_SIZE
360-
--whitelist-var font_font_a_9X9
361-
--whitelist-var font_font_a_11X10
362-
--whitelist-var font_monogram_5X9
363-
--whitelist-var font_password_11X12
364-
--whitelist-type trinary_input_string_params_t
365-
--whitelist-var INPUT_STRING_MAX_SIZE
366-
--whitelist-function trinary_input_string_create
367-
--whitelist-function trinary_input_string_set_input
368-
--whitelist-function confirm_transaction_address_create
369-
--whitelist-function confirm_transaction_fee_create
370-
--whitelist-function progress_create
371-
--whitelist-function progress_set
372-
--whitelist-function empty_create
373-
--whitelist-function reset_reset
374-
--whitelist-function sd_card_inserted
375-
--whitelist-function sd_format
376-
--whitelist-function sd_list_subdir
377-
--whitelist-function sd_erase_file_in_subdir
378-
--whitelist-function sd_load_bin
379-
--whitelist-function sd_write_bin
380-
--whitelist-var SD_MAX_FILE_SIZE
381-
--whitelist-function sd_free_list
382-
--whitelist-var BIP39_WORDLIST_LEN
383-
--whitelist-function app_eth_erc20_params_get
354+
--allowlist-var BASE58_CHECKSUM_LEN
355+
--allowlist-function random_32_bytes_mcu
356+
--allowlist-function random_mock_reset
357+
--allowlist-type component_t
358+
--allowlist-type confirm_params_t
359+
--allowlist-var MAX_LABEL_SIZE
360+
--allowlist-var font_font_a_9X9
361+
--allowlist-var font_font_a_11X10
362+
--allowlist-var font_monogram_5X9
363+
--allowlist-var font_password_11X12
364+
--allowlist-type trinary_input_string_params_t
365+
--allowlist-var INPUT_STRING_MAX_SIZE
366+
--allowlist-function trinary_input_string_create
367+
--allowlist-function trinary_input_string_set_input
368+
--allowlist-function confirm_transaction_address_create
369+
--allowlist-function confirm_transaction_fee_create
370+
--allowlist-function progress_create
371+
--allowlist-function progress_set
372+
--allowlist-function empty_create
373+
--allowlist-function reset_reset
374+
--allowlist-function sd_card_inserted
375+
--allowlist-function sd_format
376+
--allowlist-function sd_list_subdir
377+
--allowlist-function sd_erase_file_in_subdir
378+
--allowlist-function sd_load_bin
379+
--allowlist-function sd_write_bin
380+
--allowlist-var SD_MAX_FILE_SIZE
381+
--allowlist-function sd_free_list
382+
--allowlist-var BIP39_WORDLIST_LEN
383+
--allowlist-function app_eth_erc20_params_get
384384
--rustified-enum simple_type_t
385385
--rustified-enum multisig_script_type_t
386386
--rustified-enum output_type_t
387-
--whitelist-function btc_common_pkscript_from_payload
388-
--whitelist-function btc_common_pkscript_from_multisig
389-
--whitelist-var MAX_VARINT_SIZE
390-
--whitelist-var MAX_PK_SCRIPT_SIZE
391-
--whitelist-function reboot
392-
--whitelist-function secp256k1_ecdsa_anti_exfil_host_commit
393-
--whitelist-function wally_get_secp_context
394-
--whitelist-function wally_hash160
387+
--allowlist-function btc_common_pkscript_from_payload
388+
--allowlist-function btc_common_pkscript_from_multisig
389+
--allowlist-var MAX_VARINT_SIZE
390+
--allowlist-var MAX_PK_SCRIPT_SIZE
391+
--allowlist-function reboot
392+
--allowlist-function secp256k1_ecdsa_anti_exfil_host_commit
393+
--allowlist-function wally_get_secp_context
394+
--allowlist-function wally_hash160
395395
${CMAKE_CURRENT_SOURCE_DIR}/rust/bitbox02-sys/wrapper.h --
396396
-DPB_NO_PACKED_STRUCTS=1 -DPB_FIELD_16BIT=1 -fshort-enums ${RUST_BINDGEN_FLAGS} ${RUST_INCLUDES}
397397
COMMAND
@@ -455,6 +455,7 @@ if(NOT CMAKE_CROSSCOMPILING)
455455
-A clippy::enum_variant_names
456456
-A clippy::derive_partial_eq_without_eq
457457
-A clippy::forget_non_drop
458+
-A clippy::needless_borrow
458459
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/rust/
459460
)
460461
add_dependencies(rust-clippy rust-bindgen generate-protobufs)

0 commit comments

Comments
 (0)