add anki_i18n and locale_config crates to launcher

This commit is contained in:
llama 2025-09-24 01:02:45 +08:00
parent 04a0b10a15
commit 0b6bea19b5
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3
4 changed files with 40 additions and 2 deletions

35
Cargo.lock generated
View file

@ -3555,6 +3555,7 @@ dependencies = [
name = "launcher" name = "launcher"
version = "1.0.0" version = "1.0.0"
dependencies = [ dependencies = [
"anki_i18n",
"anki_io", "anki_io",
"anki_process", "anki_process",
"anyhow", "anyhow",
@ -3563,6 +3564,7 @@ dependencies = [
"embed-resource", "embed-resource",
"libc", "libc",
"libc-stdhandle", "libc-stdhandle",
"locale_config",
"serde_json", "serde_json",
"widestring", "widestring",
"windows 0.61.3", "windows 0.61.3",
@ -3702,6 +3704,19 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f5e54036fe321fd421e10d732f155734c4e4afd610dd556d9a82833ab3ee0bed" checksum = "f5e54036fe321fd421e10d732f155734c4e4afd610dd556d9a82833ab3ee0bed"
[[package]]
name = "locale_config"
version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d2c35b16f4483f6c26f0e4e9550717a2f6575bcd6f12a53ff0c490a94a6934"
dependencies = [
"lazy_static",
"objc",
"objc-foundation",
"regex",
"winapi",
]
[[package]] [[package]]
name = "lock_api" name = "lock_api"
version = "0.4.13" version = "0.4.13"
@ -4380,6 +4395,26 @@ dependencies = [
"malloc_buf", "malloc_buf",
] ]
[[package]]
name = "objc-foundation"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
dependencies = [
"block",
"objc",
"objc_id",
]
[[package]]
name = "objc_id"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"
dependencies = [
"objc",
]
[[package]] [[package]]
name = "object" name = "object"
version = "0.36.7" version = "0.36.7"

View file

@ -92,6 +92,7 @@ itertools = "0.14.0"
junction = "1.2.0" junction = "1.2.0"
libc = "0.2" libc = "0.2"
libc-stdhandle = "0.1" libc-stdhandle = "0.1"
locale_config = "0.3.0"
maplit = "1.0.2" maplit = "1.0.2"
nom = "8.0.0" nom = "8.0.0"
num-format = "0.4.4" num-format = "0.4.4"

View file

@ -2226,7 +2226,7 @@
{ {
"authors": "Ibraheem Ahmed <ibraheem@ibraheem.ca>", "authors": "Ibraheem Ahmed <ibraheem@ibraheem.ca>",
"description": "A high performance, zero-copy URL router.", "description": "A high performance, zero-copy URL router.",
"license": "MIT AND BSD-3-Clause", "license": "BSD-3-Clause AND MIT",
"license_file": null, "license_file": null,
"name": "matchit", "name": "matchit",
"repository": "https://github.com/ibraheemdev/matchit" "repository": "https://github.com/ibraheemdev/matchit"
@ -4154,7 +4154,7 @@
{ {
"authors": "David Tolnay <dtolnay@gmail.com>", "authors": "David Tolnay <dtolnay@gmail.com>",
"description": "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31", "description": "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31",
"license": "(MIT OR Apache-2.0) AND Unicode-3.0", "license": "(Apache-2.0 OR MIT) AND Unicode-3.0",
"license_file": null, "license_file": null,
"name": "unicode-ident", "name": "unicode-ident",
"repository": "https://github.com/dtolnay/unicode-ident" "repository": "https://github.com/dtolnay/unicode-ident"

View file

@ -8,11 +8,13 @@ publish = false
rust-version.workspace = true rust-version.workspace = true
[dependencies] [dependencies]
anki_i18n.workspace = true
anki_io.workspace = true anki_io.workspace = true
anki_process.workspace = true anki_process.workspace = true
anyhow.workspace = true anyhow.workspace = true
camino.workspace = true camino.workspace = true
dirs.workspace = true dirs.workspace = true
locale_config.workspace = true
serde_json.workspace = true serde_json.workspace = true
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies] [target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]