Committing to Rust for kernel code
Committing to Rust for kernel code
Posted Nov 25, 2023 16:58 UTC (Sat) by ojeda (subscriber, #143370)In reply to: Committing to Rust for kernel code by Conan_Kudo
Parent article: Committing to Rust for kernel code
> Most of the problems are in the forked "alloc" crate that's in-tree, not in the Asahi DRM driver code.
Glad to hear that; then if you take the upgrades we do, most of your problems should go away.
> The website also says not to send patches for making the tree compatible with newer Rust compilers, so we don't. Instead, we have patches downstream in the Asahi tree to make adjustments to fix it for newer Rust versions. (...) you don't want fixes for newer Rust versions
The website asks not to send upgrades to newer versions because we are handling those on our side already. What we recommend is that users take the upgrades that we put upstream, and then you do not need to deal with alloc anymore.
> you don't want fixes for newer Rust versions (...) But I'm still not happy about the fact you do not accept patches for fixing the code to work on newer Rust versions.
Again, we support a single compiler version for the moment, and we are already upgrading to newer versions if there are no blockers. Thus there are no "fixes" needed (modulo mistakes in the upgrade, of course).
I suspect you may be talking about supporting multiple versions and wanting to add workarounds for that, but that is a different discussion/approach altogether, and I don't recall you suggesting that? In fact, in that GitHub issue, you said:
"I think that as long as you use unstable features, you should be tracking the latest Rust compiler at their lifecycle. Once you're not using unstable features anymore, then widening the range of compilers supported is a reasonable conversation to have."