aboutsummaryrefslogtreecommitdiff
path: root/embassy-boot/boot
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-11-25 13:12:24 +0000
committerGitHub <[email protected]>2022-11-25 13:12:24 +0000
commitc7be481190904da5da4d4ad665a644af5ce0dd4c (patch)
treed14237e406262134e3a8b8d2bdc41961ed181ea5 /embassy-boot/boot
parent758f5d7ea29f1df14d5ef59c82e4b7f22545d775 (diff)
parent89821846d77d85d940b87cfa4f62171bd532b27c (diff)
Merge #1075
1075: fix: add required metadata for embassy-boot r=lulf a=lulf Co-authored-by: Ulf Lilleengen <[email protected]>
Diffstat (limited to 'embassy-boot/boot')
-rw-r--r--embassy-boot/boot/Cargo.toml12
-rw-r--r--embassy-boot/boot/README.md30
-rw-r--r--embassy-boot/boot/src/lib.rs2
3 files changed, 42 insertions, 2 deletions
diff --git a/embassy-boot/boot/Cargo.toml b/embassy-boot/boot/Cargo.toml
index 54c67a375..0cc6a0584 100644
--- a/embassy-boot/boot/Cargo.toml
+++ b/embassy-boot/boot/Cargo.toml
@@ -2,13 +2,23 @@
2edition = "2021" 2edition = "2021"
3name = "embassy-boot" 3name = "embassy-boot"
4version = "0.1.0" 4version = "0.1.0"
5description = "Bootloader using Embassy" 5description = "A lightweight bootloader supporting firmware updates in a power-fail-safe way, with trial boots and rollbacks."
6license = "MIT OR Apache-2.0" 6license = "MIT OR Apache-2.0"
7repository = "https://github.com/embassy-rs/embassy"
8categories = [
9 "embedded",
10 "no-std",
11 "asynchronous",
12]
7 13
8[package.metadata.embassy_docs] 14[package.metadata.embassy_docs]
9src_base = "https://github.com/embassy-rs/embassy/blob/embassy-boot-v$VERSION/embassy-boot/boot/src/" 15src_base = "https://github.com/embassy-rs/embassy/blob/embassy-boot-v$VERSION/embassy-boot/boot/src/"
10src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-boot/boot/src/" 16src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-boot/boot/src/"
11target = "thumbv7em-none-eabi" 17target = "thumbv7em-none-eabi"
18features = ["defmt"]
19
20[package.metadata.docs.rs]
21features = ["defmt"]
12 22
13[lib] 23[lib]
14 24
diff --git a/embassy-boot/boot/README.md b/embassy-boot/boot/README.md
new file mode 100644
index 000000000..414405377
--- /dev/null
+++ b/embassy-boot/boot/README.md
@@ -0,0 +1,30 @@
1# embassy-boot
2
3An [Embassy](https://embassy.dev) project.
4
5A lightweight bootloader supporting firmware updates in a power-fail-safe way, with trial boots and rollbacks.
6
7The bootloader can be used either as a library or be flashed directly with the default configuration derived from linker scripts.
8
9By design, the bootloader does not provide any network capabilities. Networking capabilities for fetching new firmware can be provided by the user application, using the bootloader as a library for updating the firmware, or by using the bootloader as a library and adding this capability yourself.
10
11## Hardware support
12
13The bootloader supports different hardware in separate crates:
14
15* `embassy-boot-nrf` - for the nRF microcontrollers.
16* `embassy-boot-stm32` - for the STM32 microcontrollers.
17
18## Minimum supported Rust version (MSRV)
19
20`embassy-boot` requires Rust nightly to compile as it relies on async traits for interacting with the flash peripherals.
21
22## License
23
24This work is licensed under either of
25
26- Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or
27 <http://www.apache.org/licenses/LICENSE-2.0>)
28- MIT license ([LICENSE-MIT](LICENSE-MIT) or <http://opensource.org/licenses/MIT>)
29
30at your option.
diff --git a/embassy-boot/boot/src/lib.rs b/embassy-boot/boot/src/lib.rs
index 429323ec9..76b14bc8c 100644
--- a/embassy-boot/boot/src/lib.rs
+++ b/embassy-boot/boot/src/lib.rs
@@ -1,7 +1,7 @@
1#![feature(type_alias_impl_trait)] 1#![feature(type_alias_impl_trait)]
2#![no_std] 2#![no_std]
3#![warn(missing_docs)] 3#![warn(missing_docs)]
4#![doc = include_str!("../../README.md")] 4#![doc = include_str!("../README.md")]
5mod fmt; 5mod fmt;
6 6
7use embedded_storage::nor_flash::{ErrorType, NorFlash, NorFlashError, NorFlashErrorKind, ReadNorFlash}; 7use embedded_storage::nor_flash::{ErrorType, NorFlash, NorFlashError, NorFlashErrorKind, ReadNorFlash};