[package]
edition = "2024"
name = "hazard3-boot"
version = "0.3.0"
build = false
exclude = [
"target/",
"Cargo.lock",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Power-fail-safe bootloader for RISC-V embedded firmware, with trial boots, updates, and rollback."
documentation = "https://docs.rs/hazard3-boot"
readme = "README.md"
categories = [
"embedded",
"no-std",
"asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/jorgeandrecastro/Hazard3"
[package.metadata.hazard3_docs]
src_base = "https://github.com/jorgeandrecastro/Hazard3/blob/main/hazard3-boot/src/"
src_base_git = "https://github.com/jorgeandrecastro/Hazard3/blob/$COMMIT/hazard3-boot/src/"
target = "thumbv7em-none-eabi"
features = ["defmt"]
[package.metadata.docs.rs]
features = ["defmt"]
[features]
defmt = [
"dep:defmt",
"hazard3-sync/defmt",
"hazard3-crypto/defmt",
]
flash-erase-zero = []
log = ["dep:log"]
[lib]
name = "hazard3_boot"
path = "src/lib.rs"
[[test]]
name = "power_fail"
path = "tests/power_fail.rs"
[dependencies.defmt]
version = "1.0.1"
optional = true
[dependencies.document-features]
version = "0.2.7"
[dependencies.embedded-storage]
version = "0.3.1"
[dependencies.embedded-storage-async]
version = "0.4.1"
[dependencies.hazard3-crypto]
version = "0.1.0"
[dependencies.hazard3-embedded-hal]
version = "0.5.0"
[dependencies.hazard3-sync]
version = "0.3.0"
[dependencies.log]
version = "0.4"
optional = true
[dev-dependencies.critical-section]
version = "1.1.1"
features = ["std"]
[dev-dependencies.hazard3-crypto-rand]
version = "0.1.0"
[dev-dependencies.hazard3-crypto-rustcrypto]
version = "0.1.0"
features = [
"hazard3-crypto-sha1",
"hazard3-crypto-sha512",
"hazard3-crypto-ed25519",
]
[dev-dependencies.hazard3-futures]
version = "0.1.0"
[dev-dependencies.log]
version = "0.4"