From 53049943639d4493a49b0de408c653a0124ca61e Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Thu, 11 Jan 2024 23:16:28 +0100 Subject: [PATCH] Add docs.rs metadata to all crates. --- cyw43/Cargo.toml | 3 +++ embassy-embedded-hal/Cargo.toml | 3 +++ embassy-net-adin1110/Cargo.toml | 3 +++ embassy-net-enc28j60/Cargo.toml | 4 ++++ embassy-net-esp-hosted/Cargo.toml | 3 +++ embassy-net-ppp/Cargo.toml | 3 +++ embassy-net-wiznet/Cargo.toml | 3 +++ embassy-nrf/Cargo.toml | 3 +++ embassy-rp/Cargo.toml | 3 +++ embassy-stm32-wpan/Cargo.toml | 3 +++ embassy-stm32/Cargo.toml | 3 +++ embassy-usb-driver/Cargo.toml | 3 +++ embassy-usb/Cargo.toml | 3 +++ 13 files changed, 40 insertions(+) diff --git a/cyw43/Cargo.toml b/cyw43/Cargo.toml index ac3122d41..20bb039a9 100644 --- a/cyw43/Cargo.toml +++ b/cyw43/Cargo.toml @@ -31,3 +31,6 @@ src_base = "https://github.com/embassy-rs/embassy/blob/cyw43-v$VERSION/cyw43/src src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/cyw43/src/" target = "thumbv6m-none-eabi" features = ["defmt", "firmware-logs"] + +[package.metadata.docs.rs] +features = ["defmt", "firmware-logs"] diff --git a/embassy-embedded-hal/Cargo.toml b/embassy-embedded-hal/Cargo.toml index 4c3d677be..c525f13fc 100644 --- a/embassy-embedded-hal/Cargo.toml +++ b/embassy-embedded-hal/Cargo.toml @@ -11,6 +11,9 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-embed features = ["std"] target = "x86_64-unknown-linux-gnu" +[package.metadata.docs.rs] +features = ["std"] + [features] std = [] time = ["dep:embassy-time"] diff --git a/embassy-net-adin1110/Cargo.toml b/embassy-net-adin1110/Cargo.toml index 9b298beb9..e007e48cd 100644 --- a/embassy-net-adin1110/Cargo.toml +++ b/embassy-net-adin1110/Cargo.toml @@ -37,3 +37,6 @@ src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-adin1110-v$VE src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-adin1110/src/" target = "thumbv7em-none-eabi" features = ["defmt"] + +[package.metadata.docs.rs] +features = ["defmt"] diff --git a/embassy-net-enc28j60/Cargo.toml b/embassy-net-enc28j60/Cargo.toml index 9cfb30e3f..92d18e38f 100644 --- a/embassy-net-enc28j60/Cargo.toml +++ b/embassy-net-enc28j60/Cargo.toml @@ -21,3 +21,7 @@ log = { version = "0.4.14", optional = true } src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-enc28j60-v$VERSION/embassy-net-enc28j60/src/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-enc28j60/src/" target = "thumbv7em-none-eabi" +features = ["defmt"] + +[package.metadata.docs.rs] +features = ["defmt"] diff --git a/embassy-net-esp-hosted/Cargo.toml b/embassy-net-esp-hosted/Cargo.toml index ff7c43023..7d268a8bb 100644 --- a/embassy-net-esp-hosted/Cargo.toml +++ b/embassy-net-esp-hosted/Cargo.toml @@ -27,3 +27,6 @@ src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-esp-hosted-v$ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-esp-hosted/src/" target = "thumbv7em-none-eabi" features = ["defmt"] + +[package.metadata.docs.rs] +features = ["defmt"] diff --git a/embassy-net-ppp/Cargo.toml b/embassy-net-ppp/Cargo.toml index 33e05227d..1ec8410c8 100644 --- a/embassy-net-ppp/Cargo.toml +++ b/embassy-net-ppp/Cargo.toml @@ -26,3 +26,6 @@ src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-ppp-v$VERSION src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-ppp/src/" target = "thumbv7em-none-eabi" features = ["defmt"] + +[package.metadata.docs.rs] +features = ["defmt"] diff --git a/embassy-net-wiznet/Cargo.toml b/embassy-net-wiznet/Cargo.toml index 8157bf115..4c1447508 100644 --- a/embassy-net-wiznet/Cargo.toml +++ b/embassy-net-wiznet/Cargo.toml @@ -21,3 +21,6 @@ src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-wiznet-v$VERS src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-wiznet/src/" target = "thumbv7em-none-eabi" features = ["defmt"] + +[package.metadata.docs.rs] +features = ["defmt"] diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index 0be514e79..712cfb56f 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml @@ -15,6 +15,9 @@ flavors = [ { regex_feature = "nrf91.*", target = "thumbv8m.main-none-eabihf" }, ] +[package.metadata.docs.rs] +features = ["nrf52840", "time", "defmt", "unstable-pac", "gpiote", "time-driver-rtc1"] + [features] default = ["rt"] ## Cortex-M runtime (enabled by default) diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index 2cc62e314..16d55182a 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml @@ -12,6 +12,9 @@ flavors = [ { name = "rp2040", target = "thumbv6m-none-eabi" }, ] +[package.metadata.docs.rs] +features = ["defmt", "unstable-pac", "time-driver"] + [features] default = [ "rt" ] ## Enable the RP runtime. diff --git a/embassy-stm32-wpan/Cargo.toml b/embassy-stm32-wpan/Cargo.toml index 1f699141f..143eea019 100644 --- a/embassy-stm32-wpan/Cargo.toml +++ b/embassy-stm32-wpan/Cargo.toml @@ -10,6 +10,9 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-stm32 target = "thumbv7em-none-eabihf" features = ["stm32wb55rg"] +[package.metadata.docs.rs] +features = ["stm32wb55rg"] + [dependencies] embassy-stm32 = { version = "0.1.0", path = "../embassy-stm32" } embassy-sync = { version = "0.5.0", path = "../embassy-sync" } diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index 171b1d477..98292af79 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml @@ -31,6 +31,9 @@ flavors = [ { regex_feature = "stm32wl.*", target = "thumbv7em-none-eabi" }, ] +[package.metadata.docs.rs] +features = ["defmt", "unstable-pac", "exti", "time-driver-any", "time", "stm32h755zi-cm7"] + [dependencies] embassy-sync = { version = "0.5.0", path = "../embassy-sync" } embassy-time = { version = "0.3.0", path = "../embassy-time", optional = true } diff --git a/embassy-usb-driver/Cargo.toml b/embassy-usb-driver/Cargo.toml index d658f9ec7..460cb306a 100644 --- a/embassy-usb-driver/Cargo.toml +++ b/embassy-usb-driver/Cargo.toml @@ -12,5 +12,8 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-d features = ["defmt"] target = "thumbv7em-none-eabi" +[package.metadata.docs.rs] +features = ["defmt"] + [dependencies] defmt = { version = "0.3", optional = true } diff --git a/embassy-usb/Cargo.toml b/embassy-usb/Cargo.toml index e6e6b1954..029754e73 100644 --- a/embassy-usb/Cargo.toml +++ b/embassy-usb/Cargo.toml @@ -10,6 +10,9 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb/s features = ["defmt", "usbd-hid"] target = "thumbv7em-none-eabi" +[package.metadata.docs.rs] +features = ["defmt", "usbd-hid"] + [features] defmt = ["dep:defmt", "embassy-usb-driver/defmt"] usbd-hid = ["dep:usbd-hid", "dep:ssmarshal"]