diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index 712cfb56f..39b4cc598 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml @@ -17,6 +17,7 @@ flavors = [ [package.metadata.docs.rs] features = ["nrf52840", "time", "defmt", "unstable-pac", "gpiote", "time-driver-rtc1"] +rustdoc-args = ["--cfg", "docsrs"] [features] default = ["rt"] diff --git a/embassy-nrf/src/lib.rs b/embassy-nrf/src/lib.rs index 1510b7265..d9c92a76d 100644 --- a/embassy-nrf/src/lib.rs +++ b/embassy-nrf/src/lib.rs @@ -1,5 +1,9 @@ #![no_std] #![allow(async_fn_in_trait)] +#![cfg_attr( + docsrs, + doc = "
You might want to browse the `embassy-nrf` documentation on the Embassy website instead.
The documentation here on `docs.rs` is built for a single chip only (nRF52840 in particular), while on the Embassy website you can pick your exact chip from the top menu. Available peripherals and their APIs change depending on the chip.
You might want to browse the `embassy-stm32` documentation on the Embassy website instead.
The documentation here on `docs.rs` is built for a single chip only (STM32H755 in particular), while on the Embassy website you can pick your exact chip from the top menu. Available peripherals and their APIs change depending on the chip.