cargo-i18n icon indicating copy to clipboard operation
cargo-i18n copied to clipboard

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

Open Umio-Yasuno opened this issue 1 year ago • 0 comments

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

Umio-Yasuno avatar Apr 22 '24 14:04 Umio-Yasuno