Add support for unit structs/variants
Dependencies
- [2]
YZ6PVVQCAdd error handling for common unsupported Rust code - [3]
QFPQZR4KRefactor `fluent_embed` - [4]
NO3PDO7PRefactor `fluent_embed` to support structs - [5]
CESJ4CTOMove macro-specific code into `macro_impl` module - [6]
F5LG7WENEmit compilation errors from Fluent source code - [7]
ROSR4HD5Parse captured glob as locale - [8]
JWZT34UCAdd `Localize`` trait bound for each field in the derived item - [*]
XGNME3WRMove `Group::derive_enum` to new `crate::parse_macro` module
Change contents
- replacement in fluent_embed_derive/src/macro_impl/mod.rs at line 116
_ => {syn::Fields::Unit => Vec::new(),syn::Fields::Unnamed(_unnamed_fields) => { - replacement in fluent_embed_derive/src/macro_impl/mod.rs at line 131
_ => Err(MacroError::Unsupported(UnsupportedError {span: variant.ident.clone(),reason: UnsupportedReason::UnnamedFields,})),syn::Fields::Unit => Ok(Vec::new()),syn::Fields::Unnamed(_unnamed_fields) => {Err(MacroError::Unsupported(UnsupportedError {span: variant.ident.clone(),reason: UnsupportedReason::UnnamedFields,}))} - replacement in fluent_embed_derive/src/macro_impl/derive.rs at line 101
_ => {syn::Fields::Unit => Context {reference_kind: ReferenceKind::StructField,valid_references: HashSet::new(),},syn::Fields::Unnamed(_unnamed_fields) => { - replacement in fluent_embed_derive/src/macro_impl/derive.rs at line 160
_ => {syn::Fields::Unit => quote!(#variant_pascal_case),syn::Fields::Unnamed(_unnamed_fields) => { - replacement in fluent_embed_derive/src/macro_impl/derive.rs at line 174
_ => {syn::Fields::Unit => Context {reference_kind: ReferenceKind::EnumField,valid_references: HashSet::new(),},syn::Fields::Unnamed(_unnamed_fields) => {