rtic/rtic-monotonics/Cargo.toml
datdenkikniet 002d0b0d16 Make embedded-hal-async dependency optional for better compatibility with HALs
Some hals implement traits for embedded-hal version `=1.0.0.alpha.<not 9>`, which is
explicitly incompatible with the version `=1.0.0.alpha.9` which embedded-hal-async
depends on. Making the dependency optional allows downstream projects to include
rtic-monotonic without requiring that all of their other libraries also implement
that specific version of embedded-hal 1.0
2023-03-01 00:35:19 +01:00

38 lines
1.1 KiB
TOML

[package]
name = "rtic-monotonics"
version = "1.0.0-alpha.0"
edition = "2021"
authors = [
"The Real-Time Interrupt-driven Concurrency developers",
"Emil Fresk <emil.fresk@gmail.com>",
"Henrik Tjäder <henrik@tjaders.com>",
"Jorge Aparicio <jorge@japaric.io>",
"Per Lindgren <per.lindgren@ltu.se>",
]
categories = ["concurrency", "embedded", "no-std", "asynchronous"]
description = "rtic-monotonics lib TODO"
license = "MIT OR Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
rtic-time = { version = "1.0.0-alpha.0", path = "../rtic-time" }
embedded-hal-async = { version = "0.2.0-alpha.0", optional = true }
fugit = { version = "0.3.6" }
atomic-polyfill = "1"
cfg-if = "1.0.0"
cortex-m = { version = "0.7.6", optional = true }
rp2040-pac = { version = ">=0.2.0,<0.5", optional = true }
[features]
default = []
defmt = ["fugit/defmt"]
# Systick on Cortex-M, default 1 kHz
cortex_m_systick = ["dep:cortex-m"]
systick_100hz = []
systick_10khz = []
# Timer peripheral on the RP2040
rp2040 = ["dep:rp2040-pac"]