fn main() {
colog::init();
let mut cal = cfg_select! {
all(feature = "backend-libcrux", feature = "backend-rustcrypto") => {{
struct LibcruxConfig;
impl embedded_cal_libcrux::ExtenderConfig for LibcruxConfig {
type Base = embedded_cal_rustcrypto::Standalone;
}
embedded_cal_libcrux::Extender::<LibcruxConfig>::new(
embedded_cal_rustcrypto::Standalone::standalone()
)
}}
feature = "backend-rustcrypto" => {
embedded_cal_rustcrypto::Standalone::standalone()
}
feature = "backend-libcrux" => {
embedded_cal_libcrux::Standalone::standalone()
}
feature = "backend-empty" => {
embedded_cal::empty::EmptyCal
}
_ => const { panic!("No --features=backend-… option selected") },
};
embedded_cal_examples::show_examples(&mut cal);
}