These are chat archives for rust-lang/rust

Jul 2016
Daniel Collin
Jul 16 2016 10:43
So I need to have two diffrent impls of a function, one for unix and one for mac/windows. the way I do this is to do #[ctg(any(target_os=“linux, target_os=“freebsd”, etc Is there a better way to do this? like #[cfg(unix) ?