M Cargo.toml => Cargo.toml +6 -1
@@ 19,7 19,7 @@ include = [
]
[package.metadata.docs.rs]
-all-features = true
+features = ["docsrs"]
[features]
device-selected = []
@@ 52,6 52,11 @@ attiny88 = ["device-selected"]
attiny1614 = ["device-selected"]
rt = ["avr-device-macros"]
+# Unfortunately, we can only build documentation for a subset of the supported
+# MCUs on docs.rs. If you think a very popular chip is missing from the list,
+# feel free to add it here.
+docsrs = ["rt", "atmega328p", "atmega32u4", "atmega2560", "attiny85", "atmega4809"]
+
[dependencies]
bare-metal = "0.2.5"
vcell = "0.1.2"
M src/lib.rs => src/lib.rs +4 -0
@@ 28,6 28,10 @@
#![cfg_attr(feature = "attiny88", doc = "**attiny88**,")]
//! and a few things which apply to AVR microcontrollers generally.
//!
+#![cfg_attr(
+ feature = "docsrs",
+ doc = "**Warning**: The doc-build here on docs.rs is only for a subset of supported chips. Please build documentation locally if your MCU's registers are not documented here.\n\n"
+)]
//! Which chips the crate is built for depends on the feature flag used.
//! The following chips are available (using feature flags of the same name):
//! * `at90usb1286`