youtra_formats/lib.rs
1//! Format adapters for Youtra.
2//!
3//! Concrete adapters live in submodules. [`registry`] returns trait-object
4//! handles for every built-in format so the CLI can pick by extension or
5//! content sniff without naming concrete types.
6
7pub mod json;
8pub mod po;
9
10use youtra_core::Format;
11
12/// Registry of all built-in formats.
13pub fn registry() -> Vec<Box<dyn Format>> {
14 vec![Box::new(po::PoFormat), Box::new(json::JsonFormat)]
15}