[package]
name = "lilos"
version = "0.3.6"
authors = ["Cliff L. Biffle <code@cliffle.com>"]
edition = "2021"
license = "MPL-2.0"
description = "A tiny embedded OS based around Futures and async."
repository = "https://github.com/cbiffle/lilos/"
keywords = ["async", "embedded", "realtime", "os"]
categories = ["embedded"]
readme = "README.mkdn"

[package.metadata.docs.rs]
default-target = "thumbv7em-none-eabihf"

[features]
default = ["mutex", "spsc", "handoff", "systick"]
mutex = ["scopeguard"]
spsc = []
systick = []
handoff = ["scopeguard"]

[dependencies]
cortex-m = {version = "0.7.4", features = ["inline-asm"]}
cortex-m-rt = "0.7.1"
pin-project-lite = "0.2.10"
scopeguard = { version = "1.1.0", default-features = false, optional = true }

[lib]
test = false
bench = false

[profile.release]
codegen-units = 1 # better optimizations
debug = true # symbols are nice and they don't increase the size on Flash
lto = true # better optimizations
opt-level = "z"
