Do not compile if the platform is not redox
Created by: P-E-Meunier
So, I wrote an alternative build system for Rust, based on Nix, to reduce compilation times when deploying using NixOps. See https://nest.pijul.com/pmeunier/nix-rust
It works fine, except for one thing: the
time crate depends on
redox-syscall only on when the platform is Redox. Unfortunately, that information is not written to
Cargo.lock (for a good reason: portability of
So, I'd love it if this entire crate could compile on all platforms, but just compile nothing on non-Redox platforms.