Add docs.rs metadata to all crates.

This commit is contained in:
Dario Nieuwenhuis 2024-01-11 23:16:28 +01:00
parent 22197320ff
commit 5304994363
13 changed files with 40 additions and 0 deletions

View File

@ -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/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/cyw43/src/"
target = "thumbv6m-none-eabi" target = "thumbv6m-none-eabi"
features = ["defmt", "firmware-logs"] features = ["defmt", "firmware-logs"]
[package.metadata.docs.rs]
features = ["defmt", "firmware-logs"]

View File

@ -11,6 +11,9 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-embed
features = ["std"] features = ["std"]
target = "x86_64-unknown-linux-gnu" target = "x86_64-unknown-linux-gnu"
[package.metadata.docs.rs]
features = ["std"]
[features] [features]
std = [] std = []
time = ["dep:embassy-time"] time = ["dep:embassy-time"]

View File

@ -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/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-adin1110/src/"
target = "thumbv7em-none-eabi" target = "thumbv7em-none-eabi"
features = ["defmt"] features = ["defmt"]
[package.metadata.docs.rs]
features = ["defmt"]

View File

@ -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 = "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/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-enc28j60/src/"
target = "thumbv7em-none-eabi" target = "thumbv7em-none-eabi"
features = ["defmt"]
[package.metadata.docs.rs]
features = ["defmt"]

View File

@ -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/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-esp-hosted/src/"
target = "thumbv7em-none-eabi" target = "thumbv7em-none-eabi"
features = ["defmt"] features = ["defmt"]
[package.metadata.docs.rs]
features = ["defmt"]

View File

@ -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/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-ppp/src/"
target = "thumbv7em-none-eabi" target = "thumbv7em-none-eabi"
features = ["defmt"] features = ["defmt"]
[package.metadata.docs.rs]
features = ["defmt"]

View File

@ -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/" src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-net-wiznet/src/"
target = "thumbv7em-none-eabi" target = "thumbv7em-none-eabi"
features = ["defmt"] features = ["defmt"]
[package.metadata.docs.rs]
features = ["defmt"]

View File

@ -15,6 +15,9 @@ flavors = [
{ regex_feature = "nrf91.*", target = "thumbv8m.main-none-eabihf" }, { regex_feature = "nrf91.*", target = "thumbv8m.main-none-eabihf" },
] ]
[package.metadata.docs.rs]
features = ["nrf52840", "time", "defmt", "unstable-pac", "gpiote", "time-driver-rtc1"]
[features] [features]
default = ["rt"] default = ["rt"]
## Cortex-M runtime (enabled by default) ## Cortex-M runtime (enabled by default)

View File

@ -12,6 +12,9 @@ flavors = [
{ name = "rp2040", target = "thumbv6m-none-eabi" }, { name = "rp2040", target = "thumbv6m-none-eabi" },
] ]
[package.metadata.docs.rs]
features = ["defmt", "unstable-pac", "time-driver"]
[features] [features]
default = [ "rt" ] default = [ "rt" ]
## Enable the RP runtime. ## Enable the RP runtime.

View File

@ -10,6 +10,9 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-stm32
target = "thumbv7em-none-eabihf" target = "thumbv7em-none-eabihf"
features = ["stm32wb55rg"] features = ["stm32wb55rg"]
[package.metadata.docs.rs]
features = ["stm32wb55rg"]
[dependencies] [dependencies]
embassy-stm32 = { version = "0.1.0", path = "../embassy-stm32" } embassy-stm32 = { version = "0.1.0", path = "../embassy-stm32" }
embassy-sync = { version = "0.5.0", path = "../embassy-sync" } embassy-sync = { version = "0.5.0", path = "../embassy-sync" }

View File

@ -31,6 +31,9 @@ flavors = [
{ regex_feature = "stm32wl.*", target = "thumbv7em-none-eabi" }, { regex_feature = "stm32wl.*", target = "thumbv7em-none-eabi" },
] ]
[package.metadata.docs.rs]
features = ["defmt", "unstable-pac", "exti", "time-driver-any", "time", "stm32h755zi-cm7"]
[dependencies] [dependencies]
embassy-sync = { version = "0.5.0", path = "../embassy-sync" } embassy-sync = { version = "0.5.0", path = "../embassy-sync" }
embassy-time = { version = "0.3.0", path = "../embassy-time", optional = true } embassy-time = { version = "0.3.0", path = "../embassy-time", optional = true }

View File

@ -12,5 +12,8 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb-d
features = ["defmt"] features = ["defmt"]
target = "thumbv7em-none-eabi" target = "thumbv7em-none-eabi"
[package.metadata.docs.rs]
features = ["defmt"]
[dependencies] [dependencies]
defmt = { version = "0.3", optional = true } defmt = { version = "0.3", optional = true }

View File

@ -10,6 +10,9 @@ src_base_git = "https://github.com/embassy-rs/embassy/blob/$COMMIT/embassy-usb/s
features = ["defmt", "usbd-hid"] features = ["defmt", "usbd-hid"]
target = "thumbv7em-none-eabi" target = "thumbv7em-none-eabi"
[package.metadata.docs.rs]
features = ["defmt", "usbd-hid"]
[features] [features]
defmt = ["dep:defmt", "embassy-usb-driver/defmt"] defmt = ["dep:defmt", "embassy-usb-driver/defmt"]
usbd-hid = ["dep:usbd-hid", "dep:ssmarshal"] usbd-hid = ["dep:usbd-hid", "dep:ssmarshal"]