Re: [PATCH v13 1/1] rust: interop: Add list module for C linked list interface
From: Danilo Krummrich
Date: Wed Mar 18 2026 - 10:46:58 EST
On Wed Mar 18, 2026 at 3:31 PM CET, Alice Ryhl wrote:
> On Wed, Mar 18, 2026 at 3:21 PM Miguel Ojeda
> <miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>> [*] I would have preferred a middle ground like modules being inside
>> but repeating the folder name, e.g. `.../pci/pci.rs`, but I doubt that
>> will ever be supported upstream since one probably wants to support
>> the other ways at the same time.
I very much like this, because, as you said, the pci/ vs. pci.rs completion
issue is indeed annoying me a bit. :)
> In principle this is possible using
>
> #[path = "pci/pci.rs"]
> pub mod pci;
Not exactly pretty, but if it works I think it's worth.