diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2022-11-25 13:12:24 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-25 13:12:24 +0000 |
| commit | c7be481190904da5da4d4ad665a644af5ce0dd4c (patch) | |
| tree | d14237e406262134e3a8b8d2bdc41961ed181ea5 /embassy-boot/boot | |
| parent | 758f5d7ea29f1df14d5ef59c82e4b7f22545d775 (diff) | |
| parent | 89821846d77d85d940b87cfa4f62171bd532b27c (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.toml | 12 | ||||
| -rw-r--r-- | embassy-boot/boot/README.md | 30 | ||||
| -rw-r--r-- | embassy-boot/boot/src/lib.rs | 2 |
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 @@ | |||
| 2 | edition = "2021" | 2 | edition = "2021" |
| 3 | name = "embassy-boot" | 3 | name = "embassy-boot" |
| 4 | version = "0.1.0" | 4 | version = "0.1.0" |
| 5 | description = "Bootloader using Embassy" | 5 | description = "A lightweight bootloader supporting firmware updates in a power-fail-safe way, with trial boots and rollbacks." |
| 6 | license = "MIT OR Apache-2.0" | 6 | license = "MIT OR Apache-2.0" |
| 7 | repository = "https://github.com/embassy-rs/embassy" | ||
| 8 | categories = [ | ||
| 9 | "embedded", | ||
| 10 | "no-std", | ||
| 11 | "asynchronous", | ||
| 12 | ] | ||
| 7 | 13 | ||
| 8 | [package.metadata.embassy_docs] | 14 | [package.metadata.embassy_docs] |
| 9 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-boot-v$VERSION/embassy-boot/boot/src/" | 15 | src_base = "https://github.com/embassy-rs/embassy/blob/embassy-boot-v$VERSION/embassy-boot/boot/src/" |
| 10 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-boot/boot/src/" | 16 | src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-boot/boot/src/" |
| 11 | target = "thumbv7em-none-eabi" | 17 | target = "thumbv7em-none-eabi" |
| 18 | features = ["defmt"] | ||
| 19 | |||
| 20 | [package.metadata.docs.rs] | ||
| 21 | features = ["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 | |||
| 3 | An [Embassy](https://embassy.dev) project. | ||
| 4 | |||
| 5 | A lightweight bootloader supporting firmware updates in a power-fail-safe way, with trial boots and rollbacks. | ||
| 6 | |||
| 7 | The bootloader can be used either as a library or be flashed directly with the default configuration derived from linker scripts. | ||
| 8 | |||
| 9 | By 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 | |||
| 13 | The 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 | |||
| 24 | This 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 | |||
| 30 | at 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")] |
| 5 | mod fmt; | 5 | mod fmt; |
| 6 | 6 | ||
| 7 | use embedded_storage::nor_flash::{ErrorType, NorFlash, NorFlashError, NorFlashErrorKind, ReadNorFlash}; | 7 | use embedded_storage::nor_flash::{ErrorType, NorFlash, NorFlashError, NorFlashErrorKind, ReadNorFlash}; |
