diff --git a/.github/workflows/rustdoc.yml b/.github/workflows/rustdoc.yml index cef117665..c4b46425e 100644 --- a/.github/workflows/rustdoc.yml +++ b/.github/workflows/rustdoc.yml @@ -14,4 +14,5 @@ jobs: - uses: dtolnay/rust-toolchain@master with: toolchain: nightly-2023-10-14 - - run: RUSTDOCFLAGS="--deny=warnings --cfg=docsrs" cargo doc --all-features + # tokio/net required to workaround https://github.com/tokio-rs/tokio/issues/6165 + - run: RUSTDOCFLAGS="--deny=warnings --cfg=docsrs" cargo doc --all-features --features tokio/net diff --git a/embedded-hal/Cargo.toml b/embedded-hal/Cargo.toml index 396cf972b..b67a46680 100644 --- a/embedded-hal/Cargo.toml +++ b/embedded-hal/Cargo.toml @@ -15,5 +15,8 @@ readme = "README.md" repository = "https://github.com/rust-embedded/embedded-hal" version = "1.0.0-rc.1" +[features] +defmt-03 = ["dep:defmt-03"] + [dependencies] defmt-03 = { package = "defmt", version = "0.3", optional = true }