1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! Code generation for the Rosetta i18n library.
//!
//! # Usage
//! Code generation works within [build script]. You only need to configure source files and
//! the fallback language. Please read the [documentation] for more information.
//!
//! ```no_run
//! rosetta_build::config()
//!     .source("fr", "locales/fr.json")
//!     .source("en", "locales/en.json")
//!     .fallback("en")
//!     .generate();
//! ```
//!
//! [build script]: https://doc.rust-lang.org/cargo/reference/build-scripts.html
//! [documentation]: https://baptiste0928.github.io/rosetta/

pub mod error;

mod builder;
mod gen;
mod parser;

pub use crate::builder::{config, RosettaBuilder};