Re: [PATCH v4 10/22] lib: rspdm: Initial commit of Rust SPDM
From: Miguel Ojeda
Date: Tue Oct 27 2026 - 09:20:31 EST
On Tue, Oct 27, 2026 at 5:19 AM Alistair Francis <alistair23@xxxxxxxxx> wrote:
>
> That was kind of the goal with `SpdmState`. The issue is all of the
> drivers calling this (PCIe, NVMe, SATA and SCSI) are C drivers and
> won't be Rust for the foreseeable future. So there aren't any Rust
> users.
>
> I have improved things a lot with v5, let me know if you still want a
> Rust API. It just feels a bit silly to add one that will probably
> never be used.
I mean, it is true that we don't want dead code, but in general we
would also want more Rust callers in the future -- so I guess it
depends on that "probably" you mention, i.e. how likely it is. So
could you please elaborate? i.e. why is it that you don't expect
future Rust callers? Would the NVMe Rust driver want to use this
eventually if merged? (Cc'ing Andreas)
Cheers,
Miguel