Add simple `attribute_path` function
Dependencies
- [2]
XGNME3WRMove `Group::derive_enum` to new `crate::parse_macro` module - [3]
UOMQT7LTAdd support for cardinal CLDR plural selectors - [4]
5TEX4MNUSplit `fluent_embed` into `group` and `parse` modules - [*]
O77KA6C4Create `fluent_embed` crate
Change contents
- edit in fluent_embed/src/parse_macro.rs at line 1
use std::path::PathBuf; - edit in fluent_embed/src/parse_macro.rs at line 49
}}}pub fn attribute_path(attribute: syn::Attribute) -> PathBuf {match attribute.meta {syn::Meta::List(list_data) => {let path_literal: syn::LitStr = syn::parse2(list_data.tokens).unwrap();let supplied_path = PathBuf::from(path_literal.value());// TODO: path should be relative to source file, not working directorysupplied_path.canonicalize().unwrap() - edit in fluent_embed/src/parse_macro.rs at line 62
syn::Meta::Path(_) => todo!(),syn::Meta::NameValue(_) => todo!(), - replacement in fluent_embed/src/lib.rs at line 6
pub use parse_macro::derive_enum;[3.3509]pub use parse_macro::{attribute_path, derive_enum};