1 2 3 4 5 6 7 8 9 10 11 12
use cfg_aliases::cfg_aliases; fn main() { cfg_aliases! { noctime: { any( target_os = "freebsd", target_os = "openbsd", target_vendor = "apple" ) }, solarish: { any(target_os = "illumos", target_os = "solaris") }, } }