Something went wrong. Try again.
A human-friendly DSL for ATProto Lexicons forked from stavola.xyz/mlf
Something went wrong. Try again.
662 B · 24 lines
Rust
at main
12345678910111213141516171819202122232425use mlf_codegen::plugin;
fn main() { println!("Testing MLF Plugin System\n");
// List all registered generators println!("Registered generators:"); for generator in plugin::generators() { println!( " - {} ({}): {}", generator.name(), generator.file_extension(), generator.description() ); }
// Try to find the JSON generator println!("\nLooking for 'json' generator..."); if let Some(generator) = plugin::find_generator("json") { println!("Found: {} - {}", generator.name(), generator.description()); } else { println!("Not found!"); }}