mondeja / simple-icons-website-rs

http://wasm.simpleicons.org
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

`langid!()` macro not properly installed #137

Closed mondeja closed 10 months ago

mondeja commented 10 months ago

Currently, the i18n crate is building the LANGUAGES vector using indirectly the crate unic-langid. This functionality of the crate is reexported by fluent-templates. This, in a clean installation, gives me an error, maybe is because there is a change in a update of the library.

proc macro panicked
 --> /home/mondeja/.../languages.rs:1:54
  |
1 | pub static LANGUAGES: [Language; 2] = [Language {id: ::fluent_templates::loader::langid!("en-US"), name: "English"},Language {...
  |                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
message: Failed to find the crate in Cargo.toml: NotFound

Anyway, the proper usage of langid!() should be to declare their full path at build time with ::unic_langid::langid!("...") and adding the langid as dependency of the i18n crate.