oxidecomputer / idolatry

An experimental IPC interface definition language for Hubris.
Mozilla Public License 2.0
17 stars 11 forks source link

Client support for non-u8 lease types. #27

Closed cbiffle closed 2 years ago

cbiffle commented 2 years ago

The server-side runtime support has attempted to allow non-u8 lease types since the beginning, but the client-side code generator is, uh, more grown than designed. :-) This alters it to pass leased buffers through zerocopy::AsBytes, allowing any type that implements the appropriate zerocopy traits to be used.

Thanks to Github user @pokeylope for pointing this out and sending an initial version of this commit.