Files
huike-back/Cargo.toml
T
weli d1f7db2ab7 ci: sibling 检出 AuthCore 以匹配 Cargo [patch] ../AuthCore
GHA 默认只检出 huike-back,导致 ../AuthCore 不存在。将本仓库检出到 huike-back/、AuthCore 检出到同级目录,并在子目录运行 cargo check;rust-cache 指向 huike-back workspace。

根 Cargo.toml 保留 ../AuthCore patch,避免把 AuthCore 嵌进本 workspace(否则会继承 huike-back 的 workspace.dependencies 而缺依赖)。

Made-with: Cursor
2026-04-24 08:07:30 +08:00

57 lines
1.9 KiB
TOML

[workspace]
members = [
"htyws",
"htyws_models",
"htykc_models",
"htykc",
"htyts_models",
"htyts",
"htyproc",
]
resolver = "2"
# Path must stay *outside* this workspace so patched crates keep AuthCore's own [workspace.dependencies].
# Clone/symlink: monorepo `AuthCore` as sibling `../AuthCore` (see `.github/workflows/ci.yml`).
[patch."https://github.com/alchemy-studio/AuthCore.git"]
htycommons = { path = "../AuthCore/htycommons" }
htyuc_models = { path = "../AuthCore/htyuc_models" }
htyuc_remote = { path = "../AuthCore/htyuc_remote" }
[workspace.package]
version = "0.1.0"
authors = ["阿男 <l.weinan@gmail.com>", "buddy"]
edition = "2021"
license = "MIT"
[workspace.dependencies]
htycommons = { git = "https://github.com/alchemy-studio/AuthCore.git" }
htyuc_models = { git = "https://github.com/alchemy-studio/AuthCore.git" }
htyuc_remote = { git = "https://github.com/alchemy-studio/AuthCore.git" }
anyhow = "^1.0"
axum = { version = "^0.8" }
axum-macros = "^0.5"
chrono = { version = "^0.4", features = ["serde"] }
diesel = { version = "^2.2", features = ["postgres", "r2d2", "serde_json", "chrono"] }
dotenv = "^0.15"
jsonwebtoken = { version = "^10.2", features = ["rust_crypto"] }
log = "^0.4"
log4rs = "^1.2"
rand = "^0.10"
reqwest = { version = "^0.13", features = ["blocking", "json"] }
ring = "^0.17"
rust-crypto = "*"
serde = { version = "^1.0", features = ["derive"] }
serde_derive = "^1.0"
serde_json = "^1.0"
thiserror = "^2.0"
time = { version = "^0.3", features = ["macros"] }
tokio = { version = "^1.47", features = ["full"] }
tower-http = { version = "^0.6", features = ["trace"] }
tracing = { version = "^0.1" }
tracing-appender = "^0.2"
tracing-subscriber = { version = "^0.3", features = ["env-filter", "local-time"] }
uuid = { version = "^1.22", features = ["serde", "v4"] }
url = "^2.5"
string-builder = "*"
redis = { version = "1.1", features = ["tokio-comp", "connection-manager"] }