1 2 3 4 5 6 7 8
#![feature(link_cfg)] #![crate_type = "rlib"] #[link(name = "testb", cfg(foo))] extern "C" {} #[link(name = "testb", cfg(bar))] extern "C" {}