From aee19185b7cf34466f7941784b55e639c925fae4 Mon Sep 17 00:00:00 2001 From: Dario Nieuwenhuis Date: Tue, 5 Apr 2022 21:05:09 +0200 Subject: [PATCH] Add more docserver metadata. --- embassy-lora/Cargo.toml | 9 +++++++++ embassy-net/Cargo.toml | 9 +++++++++ embassy-nrf/Cargo.toml | 3 +++ embassy-rp/Cargo.toml | 8 ++++++++ embassy-stm32/Cargo.toml | 3 +++ embassy/Cargo.toml | 2 ++ 6 files changed, 34 insertions(+) diff --git a/embassy-lora/Cargo.toml b/embassy-lora/Cargo.toml index dfd262548..7966e6d4c 100644 --- a/embassy-lora/Cargo.toml +++ b/embassy-lora/Cargo.toml @@ -4,6 +4,15 @@ version = "0.1.0" authors = ["Ulf Lilleengen "] edition = "2018" +[package.metadata.embassy_docs] +src_base = "https://github.com/embassy-rs/embassy/blob/embassy-lora-v$VERSION/embassy-lora/src/" +src_base_git = "https://github.com/embassy-rs/embassy/blob/master/embassy-lora/src/" +features = ["time", "defmt"] +flavors = [ + { name = "sx127x", target = "thumbv7em-none-eabihf", features = ["sx127x", "embassy-stm32/stm32wl55jc-cm4", "embassy-stm32/time-driver-any"] }, + { name = "stm32wl", target = "thumbv7em-none-eabihf", features = ["stm32wl", "embassy-stm32/stm32wl55jc-cm4", "embassy-stm32/time-driver-any"] }, +] + [lib] [features] diff --git a/embassy-net/Cargo.toml b/embassy-net/Cargo.toml index 01862b6ec..a85eea0cb 100644 --- a/embassy-net/Cargo.toml +++ b/embassy-net/Cargo.toml @@ -4,6 +4,15 @@ version = "0.1.0" authors = ["Dario Nieuwenhuis "] edition = "2018" + +[package.metadata.embassy_docs] +src_base = "https://github.com/embassy-rs/embassy/blob/embassy-net-v$VERSION/embassy-net/src/" +src_base_git = "https://github.com/embassy-rs/embassy/blob/master/embassy-net/src/" +features = [ "tcp", "dhcpv4", "medium-ethernet", "medium-ip", "embassy/time", "embassy/time-tick-1mhz"] +flavors = [ + { name = "default", target = "thumbv7em-none-eabihf" }, +] + [features] default = ["pool-4"] std = [] diff --git a/embassy-nrf/Cargo.toml b/embassy-nrf/Cargo.toml index 5c0450ebf..5e69a8878 100644 --- a/embassy-nrf/Cargo.toml +++ b/embassy-nrf/Cargo.toml @@ -5,6 +5,9 @@ authors = ["Dario Nieuwenhuis "] edition = "2018" [package.metadata.embassy_docs] +src_base = "https://github.com/embassy-rs/embassy/blob/embassy-nrf-v$VERSION/embassy-nrf/src/" +src_base_git = "https://github.com/embassy-rs/embassy/blob/master/embassy-nrf/src/" + features = ["nightly", "defmt", "unstable-pac", "unstable-traits", "gpiote", "time-driver-rtc1"] flavors = [ { regex_feature = "nrf52.*", target = "thumbv7em-none-eabihf" }, diff --git a/embassy-rp/Cargo.toml b/embassy-rp/Cargo.toml index 37cd77f8b..deed88730 100644 --- a/embassy-rp/Cargo.toml +++ b/embassy-rp/Cargo.toml @@ -4,6 +4,14 @@ version = "0.1.0" authors = ["Dario Nieuwenhuis "] edition = "2018" +[package.metadata.embassy_docs] +src_base = "https://github.com/embassy-rs/embassy/blob/embassy-rp-v$VERSION/embassy-rp/src/" +src_base_git = "https://github.com/embassy-rs/embassy/blob/master/embassy-rp/src/" +features = ["nightly", "defmt", "unstable-pac", "unstable-traits"] +flavors = [ + { name = "rp2040", target = "thumbv6m-none-eabi" }, +] + [features] # Reexport the PAC for the currently enabled chip at `embassy_rp::pac`. diff --git a/embassy-stm32/Cargo.toml b/embassy-stm32/Cargo.toml index 8efa9a810..991558acb 100644 --- a/embassy-stm32/Cargo.toml +++ b/embassy-stm32/Cargo.toml @@ -6,6 +6,9 @@ edition = "2018" resolver = "2" [package.metadata.embassy_docs] +src_base = "https://github.com/embassy-rs/embassy/blob/embassy-stm32-v$VERSION/embassy-stm32/src/" +src_base_git = "https://github.com/embassy-rs/embassy/blob/master/embassy-stm32/src/" + # TODO: sdmmc # TODO: net # TODO: subghz diff --git a/embassy/Cargo.toml b/embassy/Cargo.toml index 902a3bcb7..7753c3b05 100644 --- a/embassy/Cargo.toml +++ b/embassy/Cargo.toml @@ -6,6 +6,8 @@ edition = "2018" resolver = "2" [package.metadata.embassy_docs] +src_base = "https://github.com/embassy-rs/embassy/blob/embassy-v$VERSION/embassy/src/" +src_base_git = "https://github.com/embassy-rs/embassy/blob/master/embassy/src/" features = ["nightly", "defmt", "unstable-traits", "time", "time-tick-1mhz"] flavors = [ { name = "std", target = "x86_64-unknown-linux-gnu", features = ["std"] },