kellpossible / cargo-i18n

A Rust Cargo sub-command and libraries to extract and build localization resources to embed in your application/library
MIT License
120 stars 24 forks source link

fallback to `std::env::var("CARGO_PKG_NAME")` #122

Closed Umio-Yasuno closed 1 month ago

Umio-Yasuno commented 4 months ago

Currently find-crate does not support workspace version, which causes an error in Manifest::crate_package(), which causes a compiler error.
cargo-i18n uses Manifest::crate_package() to get the crate name only, so I think that std::env::var("CARGO_PKG_NAME") can be used as a substitute.

Fix #97

kellpossible commented 3 months ago

Hi @Umio-Yasuno sorry I didn't see this MR for a long time! I will make sure to review it soon