fn validate_lib_name(
    target: &TomlTarget,
    warnings: &mut Vec<String>
) -> CargoResult<()>