rosetta_build/
lib.rs

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