1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use colored::*; use std::process::exit; fn main() { if cfg!(not(feature = "cli")) { error(String::from( "You Must Enable The `cli` Feature To Use The CLI", )) } } fn error(message: String) { println!("{} - {}", "ERROR".red(), message); exit(1); }