Support native Rust applets #31
Labels
for:footprint
Reduces firmware footprint
for:performance
Improves firmware performance
lang:rust
Modifies the Rust prelude
needs:design
Needs design to make progress
prio:high
Helps an important use case
When the applet is written in Rust and it is not a security problem for the applet to be compiled as a native static library and linked with the platform (for example if the applet doesn't use unsafe and is cooperative), then users should be able to do so for performance, footprint, or other reasons.
A possible idea to do so would be to require the applet to be async. When a host function is called, the following would happen:
Scheduling between applets and threads can only be done when applets call a host function. But given that this feature should be used when the applet is somehow trusted, it seems reasonable that it is also well-behaving and yielding regularly enough.
The text was updated successfully, but these errors were encountered: