We want to expose linux-only functionality at the highest abstraction level. For example, the File struct probably exposes several linux-only features.
While this remains the case, porting parts of lrs to an operating system written in rust would be a very exciting project. The author of redox, @jackpot51, said on reddit
There is a degree of posix support, we are using a hand-crafted libstd that directly calls the Redox syscalls, many of which are ABI-compatible with Linux.
It's not clear how much work this would be and I don't really want to clutter the code with #[cfg(not(redox))]. This probably also depends on improving the no_libc mode of lrs.
There are two reasons that lrs is linux-only:
While this remains the case, porting parts of lrs to an operating system written in rust would be a very exciting project. The author of redox, @jackpot51, said on reddit
It's not clear how much work this would be and I don't really want to clutter the code with
#[cfg(not(redox))]
. This probably also depends on improving the no_libc mode of lrs.