Linux 6.19 Will Allow You To Write I2C Drivers In Rust
- Reference: 0001595884
- News link: https://www.phoronix.com/news/Linux-6.19-I2C-Drivers-Rust
- Source link:
Queued in the past two weeks to the [2]driver-core.git's driver-core-next Git branch are the patches enabling the Rust I2C bindings as well as sample drivers. Thus with the Linux 6.19 merge window expected to open as soon as tonight, Rust I2C drivers will become a possibility once the driver-core code gets submitted and merged.
This code coming for Linux 6.19 adds all the groundwork for writing Linux I2C drivers in Rust, including the core abstractions, an API for registering I2C devices, and then sample I2C driver code.
Beyond the Rust I2C sample driver code, for Linux 6.19 there doesn't appear to be any actual Rust I2C hardware drivers in tow at this point.
[1] https://www.phoronix.com/search/Linux+6.19
[2] https://git.kernel.org/pub/scm/linux/kernel/git/driver-core/driver-core.git/log/?h=driver-core-next