docs: add metadata.embassy_docs to cargo tomls.

This commit is contained in:
Dario Nieuwenhuis
2022-03-04 17:45:01 +01:00
parent 7b2a255872
commit 44096358a2
4 changed files with 66 additions and 0 deletions

View File

@ -4,6 +4,14 @@ version = "0.1.0"
authors = ["Dario Nieuwenhuis <dirbaio@dirbaio.net>"]
edition = "2018"
[package.metadata.embassy_docs]
features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "gpiote", "time-driver-rtc1"]
flavors = [
{ regex_feature = "nrf52.*", target = "thumbv7em-none-eabihf" },
{ regex_feature = "nrf53.*", target = "thumbv8m.main-none-eabihf" },
{ regex_feature = "nrf91.*", target = "thumbv8m.main-none-eabihf" },
]
[features]
# Enable nightly-only features