From 319e06522e9cf0404f6d4e4388583d0277da5b11 Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 10 Jul 2026 11:42:36 +0800 Subject: [PATCH 1/2] mctp-linux: Depend on mctp "std" feature Wasn't caught by CI because that checks all crates together and mctp/std was pulled in by other crates. Fixes: e46166d748c0 ("Put more dependencies in the top-level `Cargo.toml`.") Signed-off-by: Matt Johnston --- mctp-linux/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mctp-linux/Cargo.toml b/mctp-linux/Cargo.toml index bf9ac79c..c45a1f0e 100644 --- a/mctp-linux/Cargo.toml +++ b/mctp-linux/Cargo.toml @@ -9,7 +9,7 @@ categories = ["network-programming", "embedded", "hardware-support", "os::linux- [dependencies] libc = "0.2" -mctp = { workspace = true } +mctp = { workspace = true, features = ["std"] } smol = { workspace = true } [[example]] From f8d9c5b26d563aea3da0a153392e4ccf6816e44e Mon Sep 17 00:00:00 2001 From: Matt Johnston Date: Fri, 10 Jul 2026 11:46:55 +0800 Subject: [PATCH 2/2] ci: Build crates individually Missing features such as mctp/std in mctp-linux weren't caught, since building all crates together uses features from the entire set. Signed-off-by: Matt Johnston --- ci/runtests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ci/runtests.sh b/ci/runtests.sh index 6243edd5..1a26e3a8 100755 --- a/ci/runtests.sh +++ b/ci/runtests.sh @@ -59,7 +59,7 @@ declare -a FEATURES=( "$FEATURES_ASYNC" ) -# mctp-estack, sync an async +# mctp-estack, sync and async ( cd mctp-estack for feature in "${FEATURES[@]}"; do @@ -67,6 +67,13 @@ for feature in "${FEATURES[@]}"; do done; ) +# Linux programs and examples +# Tested individually to ensure each defines necessary features itself +LINUX_PROGRAMS="mctp-linux pldm-platform-util pldm-fw-cli mctp-standalone pldm-file pldm-platform" +for c in $LINUX_PROGRAMS; do + cargo check -p $c --all-targets +done + # run cargo doc tests for feature in "${FEATURES[@]}"; do cargo doc --features="$feature"