Remix.run Logo
jenadine 3 hours ago

And yet, the Linux kernel's Rust code uses unstable features only available on a nightly compiler.

Not optimal for ease of compilation and building old versions of the Kernel. (You need a specific version of the nightly compiler to build a specific version of the Kernel)

johncolanduoni 2 hours ago | parent | next [-]

What if I told you… there was a simple, constant environment variable you could set to make the stable compiler forget it isn’t a nightly?

nialv7 16 minutes ago | parent [-]

the point is unstable features aren't guaranteed to not break after a compiler update. hence the specific version thing.

hmry 2 hours ago | parent | prev | next [-]

luckily downloading a specific nightly version is only a single rustup command

hulitu 2 hours ago | parent [-]

Besides supply chain attacks, what could go wrong ? /s

abhinavk 2 hours ago | parent [-]

Kernel doesn't use Cargo.

flanked-evergl 3 hours ago | parent | prev [-]

Can you please share more details about this?

jenadine 3 hours ago | parent [-]

https://rust-for-linux.com/unstable-features#unstable-featur...

an hour ago | parent [-]
[deleted]