3 ms·
Actually all of those crates could potentially be implemented in the kernel and be useful. The current implementations wouldn't work as-is, in many cases, but t
by roca 4y ago
Actually all of those crates could potentially be implemented in the kernel and be useful. The current implementations wouldn't work as-is, in many cases, but the APIs make sense and the crate could use conditional compilation to work in the kernel.
The most far-fetched crate there would be pin-project I think, because a lot of other work would have to be done to make Rust async code work in the kernel.
- Arnavion 4y ago>The most far-fetched crate there would be pin-project I think, because a lot of other work would have to be done to make Rust async code work in the kernel. Pin's usefulness is not limited to async. Any type that contains a pointer relative to itself benefits from being wrapped in it to avoid accidental misuse.