From 24bb5ff61e11ca3ec6f5b81967344ba097ca996a Mon Sep 17 00:00:00 2001 From: Niklas Dusenlund Date: Mon, 2 Sep 2024 11:28:57 +0200 Subject: [PATCH] rust: Running `make generate-protobufs` in build dir It seems we have updated the protobuf generator without rerunning the generation of protobufs. --- .../src/shiftcrypto.bitbox02.backups.rs | 1 + .../bitbox02-rust/src/shiftcrypto.bitbox02.rs | 41 ++++++++++--------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/src/rust/bitbox02-rust/src/shiftcrypto.bitbox02.backups.rs b/src/rust/bitbox02-rust/src/shiftcrypto.bitbox02.backups.rs index 3f16d9e40..7361f250c 100644 --- a/src/rust/bitbox02-rust/src/shiftcrypto.bitbox02.backups.rs +++ b/src/rust/bitbox02-rust/src/shiftcrypto.bitbox02.backups.rs @@ -1,3 +1,4 @@ +// This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct BackupMetaData { diff --git a/src/rust/bitbox02-rust/src/shiftcrypto.bitbox02.rs b/src/rust/bitbox02-rust/src/shiftcrypto.bitbox02.rs index d791586d0..dfcf61dc3 100644 --- a/src/rust/bitbox02-rust/src/shiftcrypto.bitbox02.rs +++ b/src/rust/bitbox02-rust/src/shiftcrypto.bitbox02.rs @@ -1,3 +1,4 @@ +// This file is @generated by prost-build. #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] pub struct PubResponse { @@ -5,7 +6,7 @@ pub struct PubResponse { pub r#pub: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RootFingerprintRequest {} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -47,7 +48,7 @@ pub struct KeyOriginInfo { pub xpub: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckBackupRequest { #[prost(bool, tag = "1")] pub silent: bool, @@ -60,7 +61,7 @@ pub struct CheckBackupResponse { } /// Timestamp must be in UTC #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CreateBackupRequest { #[prost(uint32, tag = "1")] pub timestamp: u32, @@ -68,7 +69,7 @@ pub struct CreateBackupRequest { pub timezone_offset: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ListBackupsRequest {} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -98,16 +99,16 @@ pub struct RestoreBackupRequest { pub timezone_offset: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckSdCardRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct CheckSdCardResponse { #[prost(bool, tag = "1")] pub inserted: bool, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct DeviceInfoRequest {} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -127,7 +128,7 @@ pub struct DeviceInfoResponse { pub securechip_model: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct InsertRemoveSdCardRequest { #[prost(enumeration = "insert_remove_sd_card_request::SdCardAction", tag = "1")] pub action: i32, @@ -172,7 +173,7 @@ pub mod insert_remove_sd_card_request { } } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ResetRequest {} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -631,7 +632,7 @@ pub struct BtcScriptConfigRegistration { pub keypath: ::prost::alloc::vec::Vec, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BtcSuccess {} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -640,7 +641,7 @@ pub struct BtcIsScriptConfigRegisteredRequest { pub registration: ::core::option::Option, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BtcIsScriptConfigRegisteredResponse { #[prost(bool, tag = "1")] pub is_registered: bool, @@ -698,7 +699,7 @@ pub mod btc_register_script_config_request { } } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct BtcPrevTxInitRequest { #[prost(uint32, tag = "1")] pub version: u32, @@ -1589,7 +1590,7 @@ pub struct ElectrumEncryptionKeyResponse { pub key: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Bip85Request { #[prost(oneof = "bip85_request::App", tags = "1, 2")] pub app: ::core::option::Option, @@ -1597,13 +1598,13 @@ pub struct Bip85Request { /// Nested message and enum types in `BIP85Request`. pub mod bip85_request { #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Message)] + #[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct AppLn { #[prost(uint32, tag = "1")] pub account_number: u32, } #[allow(clippy::derive_partial_eq_without_eq)] - #[derive(Clone, PartialEq, ::prost::Oneof)] + #[derive(Clone, Copy, PartialEq, ::prost::Oneof)] pub enum App { #[prost(message, tag = "1")] Bip39(()), @@ -1629,10 +1630,10 @@ pub mod bip85_response { } } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct ShowMnemonicRequest {} #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RestoreFromMnemonicRequest { #[prost(uint32, tag = "1")] pub timestamp: u32, @@ -1640,13 +1641,13 @@ pub struct RestoreFromMnemonicRequest { pub timezone_offset: i32, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct SetMnemonicPassphraseEnabledRequest { #[prost(bool, tag = "1")] pub enabled: bool, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct RebootRequest { #[prost(enumeration = "reboot_request::Purpose", tag = "1")] pub purpose: i32, @@ -1722,7 +1723,7 @@ pub struct Error { pub message: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] -#[derive(Clone, PartialEq, ::prost::Message)] +#[derive(Clone, Copy, PartialEq, ::prost::Message)] pub struct Success {} #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)]