Expand description
Rust bindings code generation for globetrotter translations.
Re-exports§
pub use config::OutputConfig;
Modules§
- config
- Rust code generation configuration types. Rust output configuration.
Structs§
- Duplicate
Field Error - A collision between translation arguments that map to one Rust field name.
- Duplicate
Identifier Error - A collision between translation keys that map to one Rust enum identifier.
Enums§
- Error
- Errors that can occur while generating Rust translation bindings.
Functions§
- generate_
translation_ enum - Generates a Rust
Translationenum for the given translations. - key_
to_ rust_ enum_ variant - The Rust enum variant identifier generated for a translation key, e.g.
translation.greetingbecomesTranslationGreeting. - preamble
- Common header inserted at the top of generated Rust files.