#[ allow( unused_imports ) ]
use strs_tools :: *;
fn main()
{
println!( "Testing compile-time pattern optimization..." );
#[ cfg( all( feature = "compile_time_optimizations", feature = "string_split", not( feature = "no_std" ) ) ) ]
{
use strs_tools ::string ::split ::split;
let input = "a,b,c";
let result: Vec< _ > = split()
.src( input )
.delimeter( "," )
.perform()
.map( |s| s.string.to_string() )
.collect();
println!( "Split result: {:?}", result );
println!( "ℹ️ Compile-time optimization macros are prototype features" );
println!( " The optimize_split! macro is not yet fully implemented" );
}
#[ cfg( not( all( feature = "compile_time_optimizations", feature = "string_split" ) ) ) ]
{
println!( "Compile-time optimizations or string_split feature not enabled" );
println!( "Enable with: --features compile_time_optimizations,string_split" );
}
}