You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Provide a simple component that demonstrates common C module functionality #515
Ideally new Rust code should be written as components. Most code can be but may still need to install global structures like protocols or manipulate global stores like the PCD database. A simple component should demonstrate how to do these actions, so it is available as a reference to new component writers that also need their component to interact with C code.
In a meeting with an OEM today, it was mentioned they are on a path that requires a driver like this to showcase how to transition existing C code to Rust.
Once this is finished, they would like to explore on their own if it is feasible to use the new code in both a UEFI build using the Tiano C based core and a build based on the Patina core.
@rogurr I wrote some hob usage examples in #586. Most of this issue is currently blocked while #593 completes, as it is going to create a final user interface for these things.
I do want to say that all of this is currently possible by using the StandardRuntimeServices and StandardBootServices types in your component interface, which provides an API very similar to the current C implementation. I could theoretically write examples for of this right now. However, I would just re-write it once #593 completes. Here is a short example:
Activity
rogurr commentedon Jul 11, 2025
Can I request to bump up this task priority?
In a meeting with an OEM today, it was mentioned they are on a path that requires a driver like this to showcase how to transition existing C code to Rust.
Once this is finished, they would like to explore on their own if it is feasible to use the new code in both a UEFI build using the Tiano C based core and a build based on the Patina core.
Javagedes commentedon Jul 14, 2025
Hi @rogurr I'll write up some different monolithic component examples today to complete this :)
Javagedes commentedon Jul 21, 2025
@rogurr I wrote some hob usage examples in #586. Most of this issue is currently blocked while #593 completes, as it is going to create a final user interface for these things.
I do want to say that all of this is currently possible by using the
StandardRuntimeServicesandStandardBootServicestypes in your component interface, which provides an API very similar to the currentCimplementation. I could theoretically write examples for of this right now. However, I would just re-write it once #593 completes. Here is a short example:rogurr commentedon Aug 1, 2025
Copy of comment from #593
This enhancement is marked with urgency:medium and is blocked by #593 that is marked urgency:low. Can we proceed with this assuming the RFC is valid?
makubacki commentedon Aug 1, 2025
The RFC is in progress. Same reply from the other issue applies here.
makubacki commentedon Aug 13, 2026
Covered with sample components in #1743.