diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3384a52dd..7b0be0c01 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -141,7 +141,7 @@ jobs: args: --verbose --locked --features no-boards -p riot-rs -p riot-rs-boards -p riot-rs-chips -p riot-rs-debug -p riot-rs-embassy -p riot-rs-macros -p riot-rs-random -p riot-rs-rt -p riot-rs-threads -p riot-rs-utils - name: rustdoc - run: RUSTDOCFLAGS='-D warnings' cargo doc -p riot-rs --features no-boards,bench,external-interrupts,threading,random,csprng,hwrng,coap + run: RUSTDOCFLAGS='-D warnings' cargo doc -p riot-rs --features no-boards,bench,external-interrupts,threading,random,csprng,hwrng,coap,net,usb-ethernet - name: rustfmt run: cargo fmt --check --all diff --git a/src/riot-rs-coap/Cargo.toml b/src/riot-rs-coap/Cargo.toml index 349548b4d..879925744 100644 --- a/src/riot-rs-coap/Cargo.toml +++ b/src/riot-rs-coap/Cargo.toml @@ -8,7 +8,7 @@ repository.workspace = true [dependencies] coapcore.path = "../lib/coapcore" riot-rs-random = { path = "../riot-rs-random", features = ["csprng"] } -riot-rs-embassy.path = "../riot-rs-embassy" +riot-rs-embassy = { path = "../riot-rs-embassy", features = ["udp"] } # actually patched with https://github.com/smoltcp-rs/smoltcp/pull/904 but # patch.crates-io takes care of that diff --git a/src/riot-rs-embassy/Cargo.toml b/src/riot-rs-embassy/Cargo.toml index 5fe769e15..8d834e4f9 100644 --- a/src/riot-rs-embassy/Cargo.toml +++ b/src/riot-rs-embassy/Cargo.toml @@ -166,3 +166,7 @@ defmt = [ # usb peripheral support. stm32-usb = [] stm32-usb-synopsis = [] + +# Made available so that downsteram crates such as riot-rs-coap don't need to +# pull in embassy-net just to enable a feature they use through a pub-use. +udp = ["net", "embassy-net/udp"]