---
title: "ESP-IDF Rust binding compatibility"
description: "What ESP-IDF Rust bindings taught me about making compatibility claims precise across SDK versions, component settings, and chip capabilities."
url: https://mh0pe.github.io/blog/support-is-a-matrix/
author: "Madison Hope Steiner"
published: 2026-11-21
modified: 2026-11-21
---

[← All writing](https://mh0pe.github.io/blog/)

# Support is a matrix, not a version number.

**The chip changes the answer** Even with the newer SDK and camera enabled, the CSI check depends on the chip. A passing build applies to the combination tested; it isn’t a test of the physical camera.

What I learned making Rust bindings reflect both the SDK someone installs and the chip they build for.

[esp-idf-sys #409: ESP-IDF binding support across releases and targets](https://github.com/esp-rs/esp-idf-sys/pull/409)

By [Madison Hope Steiner](https://mh0pe.github.io/about/)

ESP-IDF Rust bindings Infrastructure

**In this article**

A compatibility matrix

At a glance

A Rust binding may depend on the SDK version, a component setting, and a feature of the actual chip.

If I say a Rust binding supports a new version of a C SDK, what should someone with an older board expect? The new version can know about the board without the board having every peripheral the SDK describes. A version number gets me to the right shelf. It doesn't tell me which parts are in the box.

That was the problem behind a change I worked on in esp-idf-sys, which exposes Espressif's C interfaces to Rust. I carried forward drinkcat's work and added changes in the review. What interested me was how to keep the bindings honest when a header moved, a component might be off, or one chip had a capability the next chip did not.

## A version answers only one question.

When a new SDK changes the set of headers, a binding generator needs to know where an interface lives. The USB CDC console header in this change is a useful example. It had been pulled in through the older VFS grouping before version 6. The change ties the include to the console component when it's enabled, rather than assuming a sufficiently new SDK is enough.

The first column gives the SDK release for each illustrated build.

**SDK version is one column.**

The SDK version describes the headers available to the build, not every capability of its target.

**Diagram key**

**Top row: Older SDK**
The top example uses the older release.

**Lower two rows: Newer SDK**
They have the same release but different target capabilities.

- [esp-idf-sys #409: ESP-IDF binding support across releases and targets](https://github.com/esp-rs/esp-idf-sys/pull/409)

That matters at the point a developer uses the binding. A missing or invalid declaration may otherwise look like a Rust problem, even when the real question is what the C SDK makes available in that configuration.

**Name each condition where it matters.**

1. Find the header in the right release
2. Check that the configuration includes the component
3. Check the chip capability for target-specific interfaces

Individual headers have different conditions. The three questions aren't one blanket guard.

## A component can exist without a particular peripheral.

The camera controller makes the distinction visible. The controller header is conditional on enabling its component. The CSI camera interface is separately guarded by a chip capability. Turning on the camera component doesn't make a chip grow a MIPI CSI interface. The JPEG paths give another example: encoding and decoding each have their own capability check.

The camera setting and the chip capability are two separate columns.

**The component and the chip both matter.**

The camera component can be on even when the chip doesn't have the CSI peripheral.

**Same SDK and component** ** Different board capability**

Compare the two newer-SDK rows. The camera component is on in both, but only one chip has CSI, and this example checks that row. Not tested is not failed; compiling is not running on the board.

**Diagram key**

**Component column: Camera on**
All three examples enable the camera component.

**Middle row: CSI available**
Only this example target has the separate interface.

- [esp-idf-sys #409: ESP-IDF binding support across releases and targets](https://github.com/esp-rs/esp-idf-sys/pull/409)

I prefer these checks close to the header they protect. One broad condition at the top is shorter, but it can smuggle in the assumption that everything below it shares the same support boundary. That assumption tends to surface later as a broken build on a configuration the author didn't use.

I ran into the same shape in Nix's Windows support, where [Windows paths need more than separator replacement](https://www.linkedin.com/pulse/windows-paths-need-more-than-separator-replacement-steiner-cissp-7ogdf/). A drive, a UNC share and a device root are different capabilities, not different spellings.

## A build matrix is a useful, bounded promise.

The pull request lists coverage from ESP-IDF v4.4.8 through v6.0, with explicit target exclusions. A build matrix makes those choices reviewable. A missing cell can mean the pairing is intentionally outside the check. That is a different statement from a green build and a different statement from a broken one.

The right column records which example checks the CSI build path.

**Say which builds the check covers.**

A dashed cell marks a combination the example does not check for CSI.

**Diagram key**

**Middle row: Included**
This combination is eligible for a CSI build check.

**Dashed cells: No CSI check**
Outside this check, not a failed build.

- [esp-idf-sys #409: ESP-IDF binding support across releases and targets](https://github.com/esp-rs/esp-idf-sys/pull/409)

The matrix checks compilation for the combinations it covers. It can't tell me whether a camera is wired correctly, what the device will do under load, or whether every board marketed with a given chip behaves the same way. Those need different evidence. I want the support statement to say where the build check stops.

The test I use for a compatibility claim is simple: could someone point to their own version, target, and configuration and tell which parts of that claim apply to them?

While the change was in review I put it this way on LinkedIn: [A compatibility matrix is not paperwork](https://www.linkedin.com/feed/update/urn:li:activity:7499873619230146560/).

**For a closer technical look**

- The contributed change builds on earlier commits by drinkcat, preserved in the review.
- The PR's matrix and exclusions describe the build configurations exercised, not field or hardware certification.

## What I take from it

State support at the version, component, and chip boundary. A green build is evidence for that combination, not a hardware test.

## Code and further reading

- [esp-idf-sys #409: ESP-IDF binding support across releases and targets](https://github.com/esp-rs/esp-idf-sys/pull/409)

Covers work from March 2026 Posted November 21, 2026

Also on

- On DEV from Dec 4
- [Hashnode](https://mh0pe.hashnode.dev/support-is-a-matrix)
- In editorial review at HackerNoon
- On daily.dev from Dec 4

- [Rust](https://mh0pe.github.io/blog/?tag=Rust#topic-infrastructure)
- [Compatibility](https://mh0pe.github.io/blog/?tag=Compatibility#topic-infrastructure)
- [Build systems](https://mh0pe.github.io/blog/?tag=Build%20systems#topic-infrastructure)

[Browse all four projects](https://mh0pe.github.io/work/)

## Read next.

Infrastructure

### [Make the build prove what it loaded.](https://mh0pe.github.io/blog/integrity-bound-yarn-pnp-for-bazel/)

Bringing a project's own Yarn Plug'n'Play state into Bazel with an explicit integrity boundary.
