From 60013258070af67e7814195b1564dacee1263f19 Mon Sep 17 00:00:00 2001 From: Itsusinn Date: Mon, 25 Jul 2022 12:59:59 +0800 Subject: [PATCH] build: use rust-i18n fork --- .gitmodules | 3 +++ Cargo.lock | 10 +--------- Cargo.toml | 4 ++-- libs/rust-i18n | 1 + 4 files changed, 7 insertions(+), 11 deletions(-) create mode 100644 .gitmodules create mode 160000 libs/rust-i18n diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..20ee741 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "libs/rust-i18n"] + path = libs/rust-i18n + url = git@github.com:Itsusinn/rust-i18n.git diff --git a/Cargo.lock b/Cargo.lock index 37abe4f..e39c19f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2106,9 +2106,7 @@ dependencies = [ [[package]] name = "rust-i18n" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23355ba4db77e057f2a48a4edf15a01c0f914702ef8c47e91edfdde715782f04" +version = "0.6.2-alpha.0" dependencies = [ "anyhow", "clap", @@ -2127,8 +2125,6 @@ dependencies = [ [[package]] name = "rust-i18n-extract" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7fb5b67d1d524464f88971c489d3b9e0977e14d4d33de86137f082ffae92f5e" dependencies = [ "anyhow", "ignore", @@ -2145,8 +2141,6 @@ dependencies = [ [[package]] name = "rust-i18n-macro" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaebf89167a1d6483d77f316c49b21acd7b3e7cc8a9898c3ed7fe68975b7afca" dependencies = [ "glob", "once_cell", @@ -2162,8 +2156,6 @@ dependencies = [ [[package]] name = "rust-i18n-support" version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "821e80941e07163f29da56e77bf4107950e6215328cd40d4cb72974d4a82e08c" dependencies = [ "glob", "once_cell", diff --git a/Cargo.toml b/Cargo.toml index 9637ab6..b1a4314 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,8 +28,8 @@ tracing-subscriber = { version = "0.3.15", default-features = false, features = colored = "2.0.0" time = { version = "0.3.11", features = ["macros", "local-offset"] } chrono = "0.4.19" -rust-i18n = "0.6.1" - +# rust-i18n = "0.6.1" +rust-i18n = { path = "libs/rust-i18n" } # serialization serde = { version = "1.0.140", default-features = false, features = ["derive","rc"] } serde_json = "1.0.82" diff --git a/libs/rust-i18n b/libs/rust-i18n new file mode 160000 index 0000000..691b111 --- /dev/null +++ b/libs/rust-i18n @@ -0,0 +1 @@ +Subproject commit 691b111afee34883606eeba43c3582764b253238