Fix minimal `Localize` implementation on errors
Dependencies
- [2]
CESJ4CTOMove macro-specific code into `macro_impl` module - [3]
OWXLFLRMMerge `cli_macros` shim into `fluent_embed` - [*]
O77KA6C4Create `fluent_embed` crate
Change contents
- replacement in fluent_embed_derive/src/lib.rs at line 30
// Generate a minimal `localize()` implementation so the error is self-contained// Generate a minimal `Localize` implementation so the error is self-contained - replacement in fluent_embed_derive/src/lib.rs at line 33
impl #ident {fn localize(&self) -> String {#original_itemimpl<W: ::std::io::Write> ::fluent_embed::Localize<W> for #ident {const CANONICAL_LOCALE: ::fluent_embed::icu_locale::LanguageIdentifier =::fluent_embed::icu_locale::langid!("en-US");fn available_locales(&self) -> Vec<::fluent_embed::icu_locale::LanguageIdentifier> {unimplemented!("Encountered error in derive macro")}fn message_for_locale(&self,writer: &mut W,locale: &::fluent_embed::icu_locale::LanguageIdentifier,) -> Result<(), ::fluent_embed::LocalizationError> { - edit in fluent_embed_derive/src/lib.rs at line 56[3.951]