diff --git a/esp-lp-hal/Cargo.toml b/esp-lp-hal/Cargo.toml index 9bc6254d6..71c60139f 100644 --- a/esp-lp-hal/Cargo.toml +++ b/esp-lp-hal/Cargo.toml @@ -10,6 +10,11 @@ categories = ["embedded", "hardware-support", "no-std"] repository = "https://github.com/esp-rs/esp-hal" license = "MIT OR Apache-2.0" +[package.metadata.docs.rs] +default-target = "riscv32imac-unknown-none-elf" +features = ["esp32c6"] +rustdoc-args = ["--cfg", "docsrs"] + [lib] bench = false test = false diff --git a/esp-lp-hal/src/lib.rs b/esp-lp-hal/src/lib.rs index 235ca56f7..7f8c246e7 100644 --- a/esp-lp-hal/src/lib.rs +++ b/esp-lp-hal/src/lib.rs @@ -1,3 +1,7 @@ +#![cfg_attr( + all(docsrs, not(not_really_docsrs)), + doc = "
You might want to browse the esp-lp-hal
documentation on the esp-rs website instead.
The documentation here on docs.rs is built for a single chip only (ESP32-C6, in particular), while on the esp-rs website you can select your exact chip from the list of supported devices. Available peripherals and their APIs change depending on the chip.