Skip to content

Commit 2a5ebed

Browse files
committed
rust: update toolchain to 1.68.0
Renamed our prost-build tool to prost-build-proto, as "prost-build" the binary tool crate, but also depends on a library crate by the same name, which confuses Rust 1.68.0. This rename disambiguates the two. types.rs change is fixing a new Clippy warning.
1 parent e4dbcbb commit 2a5ebed

File tree

10 files changed

+466
-353
lines changed

10 files changed

+466
-353
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:31
28+
CONTAINER=shiftcrypto/firmware_v2:32
2929

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

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ RUN rustup component add clippy
132132
RUN CARGO_HOME=/opt/cargo cargo install cbindgen --version 0.24.3
133133
RUN CARGO_HOME=/opt/cargo cargo install bindgen-cli --version 0.64.0
134134

135-
COPY tools/prost-build prost-build
136-
RUN CARGO_HOME=/opt/cargo cargo install --path prost-build --locked
135+
COPY tools/prost-build-proto prost-build-proto
136+
RUN CARGO_HOME=/opt/cargo cargo install --path prost-build-proto --locked
137137

138138
# Clean temporary files to reduce image size
139139
RUN rm -rf /var/lib/apt/lists/*

messages/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ foreach(i ${PROTO_FILES})
1919
list(APPEND PROTO_FILES_ABSOLUTE "${CMAKE_CURRENT_SOURCE_DIR}/${i}")
2020
endforeach()
2121

22-
find_program(PROST_BUILD prost-build)
22+
find_program(PROST_BUILD prost-build-proto)
2323

2424
set(OUTPUT_FILES
2525
${CMAKE_SOURCE_DIR}/src/rust/bitbox02-rust/src/shiftcrypto.bitbox02.rs

src/rust/bitbox02/src/ui/types.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ pub use bitbox02_sys::trinary_choice_t as TrinaryChoice;
2323
#[cfg_attr(feature = "testing", allow(dead_code))]
2424
pub(crate) const MAX_LABEL_SIZE: usize = bitbox02_sys::MAX_LABEL_SIZE as _;
2525

26+
#[derive(Default)]
2627
pub enum Font {
28+
#[default]
2729
Default,
2830
Password11X12,
2931
Monogram5X9,
@@ -40,12 +42,6 @@ impl Font {
4042
}
4143
}
4244

43-
impl Default for Font {
44-
fn default() -> Self {
45-
Font::Default
46-
}
47-
}
48-
4945
#[derive(Default)]
5046
pub struct ConfirmParams<'a> {
5147
/// The confirmation title of the screen. Max 200 chars, otherwise **panic**.

src/rust/rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.67.1
1+
1.68.0
File renamed without changes.

0 commit comments

Comments
 (0)