diff --git a/Cargo.toml b/Cargo.toml index 7638abe..f36424a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "json-gettext" -version = "4.0.9" +version = "4.0.10" authors = ["Magic Len "] edition = "2021" rust-version = "1.69" @@ -17,7 +17,6 @@ serde = "1" serde_json = "1" regex = "1" unic-langid = { version = "0.9", features = ["macros"], optional = true } -unic-langid-macros = { version = "0.9", optional = true } manifest-dir-macros = { version = "0.1.6", features = ["tuple"] } rocket = { version = "0.5", optional = true } @@ -25,7 +24,7 @@ rocket-accept-language = { version = "0.8", optional = true } [features] rocketly = ["rocket"] -langid = ["unic-langid", "unic-langid-macros"] +langid = ["unic-langid"] language_region_pair = ["langid"] language = ["langid"] region = ["langid"] diff --git a/src/key_copy/keys/language.rs b/src/key_copy/keys/language.rs index 10c5a2b..6f14a3c 100644 --- a/src/key_copy/keys/language.rs +++ b/src/key_copy/keys/language.rs @@ -74,6 +74,6 @@ assert_eq!(Key(Language::from_str("us").unwrap()), key); #[macro_export] macro_rules! key { ($key:expr) => {{ - $crate::Key($crate::unic_langid_macros::lang!($key)) + $crate::Key($crate::unic_langid::lang!($key)) }}; } diff --git a/src/key_copy/keys/region.rs b/src/key_copy/keys/region.rs index 06351cf..f8838ee 100644 --- a/src/key_copy/keys/region.rs +++ b/src/key_copy/keys/region.rs @@ -74,6 +74,6 @@ assert_eq!(Key(Region::from_str("us").unwrap()), key); #[macro_export] macro_rules! key { ($key:expr) => {{ - $crate::Key($crate::unic_langid_macros::region!($key)) + $crate::Key($crate::unic_langid::region!($key)) }}; } diff --git a/src/lib.rs b/src/lib.rs index 9f70c7c..55bc8a0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -122,9 +122,6 @@ pub extern crate serde_json; #[cfg(feature = "langid")] pub extern crate unic_langid; -#[cfg(feature = "langid")] -pub extern crate unic_langid_macros; - #[doc(hidden)] pub extern crate manifest_dir_macros;