aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/src/lib.rs
diff options
context:
space:
mode:
authorRaul Alimbekov <[email protected]>2025-12-16 09:05:22 +0300
committerGitHub <[email protected]>2025-12-16 09:05:22 +0300
commitc9a04b4b732b7a3b696eb8223664c1a7942b1875 (patch)
tree6dbe5c02e66eed8d8762f13f95afd24f8db2b38c /embassy-boot/src/lib.rs
parentcde24a3ef1117653ba5ed4184102b33f745782fb (diff)
parent5ae6e060ec1c90561719aabdc29d5b6e7b8b0a82 (diff)
Merge branch 'main' into main
Diffstat (limited to 'embassy-boot/src/lib.rs')
-rw-r--r--embassy-boot/src/lib.rs19
1 files changed, 13 insertions, 6 deletions
diff --git a/embassy-boot/src/lib.rs b/embassy-boot/src/lib.rs
index e2c4cf771..3e61d6036 100644
--- a/embassy-boot/src/lib.rs
+++ b/embassy-boot/src/lib.rs
@@ -1,7 +1,12 @@
1#![no_std] 1#![no_std]
2#![allow(async_fn_in_trait)] 2#![allow(async_fn_in_trait)]
3#![allow(unsafe_op_in_unsafe_fn)]
3#![warn(missing_docs)] 4#![warn(missing_docs)]
4#![doc = include_str!("../README.md")] 5#![doc = include_str!("../README.md")]
6
7//! ## Feature flags
8#![doc = document_features::document_features!(feature_label = r#"<span class="stab portability"><code>{feature}</code></span>"#)]
9
5mod fmt; 10mod fmt;
6 11
7mod boot_loader; 12mod boot_loader;
@@ -341,11 +346,13 @@ mod tests {
341 &mut aligned, 346 &mut aligned,
342 ); 347 );
343 348
344 assert!(block_on(updater.verify_and_mark_updated( 349 assert!(
345 &public_key.to_bytes(), 350 block_on(updater.verify_and_mark_updated(
346 &signature.to_bytes(), 351 &public_key.to_bytes(),
347 firmware_len as u32, 352 &signature.to_bytes(),
348 )) 353 firmware_len as u32,
349 .is_ok()); 354 ))
355 .is_ok()
356 );
350 } 357 }
351} 358}