Files
ssw-jnpf-lite-rust/Cargo.toml
T
adminandClaude Code 5c33f82a8e chore(schema): 补官方 4 个索引 + 声明 rust-version
- schema.sql 追加官方 JNPF-PostgreSQL.sql 第 12538/12542/12550/12554 行的索引
  (i_ba_foi / i_brr_fri / i_bu_fa / i_bur_fui,全部非唯一 ⇒ 账号唯一性仍靠应用层)
- 7 张 base_* 的 CREATE TABLE 块与 docs/ddl/base_ddl_raw.sql 仍逐字相同
- 根 Cargo.toml 加 rust-version = 1.85(pglite-rs 0.2.7 的下限)

Co-Authored-By: Claude Code <[email protected]>
2026-10-25 17:33:52 +08:00

45 lines
1.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# tds-lite-rs —— cargo workspace 根
#
# 这里只放「跨成员共享」的配置:成员列表、依赖版本、release profile。
# 成员 crate(src/backend)不得再写 [profile.*],否则 cargo 直接报错。
[workspace]
members = ["src/backend"]
resolver = "2"
[workspace.package]
version = "0.1.0"
edition = "2021"
# pglite-rs 0.2.7 要求 Rust ≥ 1.85(edition 2024 家族)。本机实测 rustc 1.95.0。
rust-version = "1.85"
# 依赖版本集中在此,成员 crate 一律用 `xxx = { workspace = true }` 继承。
#
# ⚠️ 版本锁死说明(不要随意升级):
# - aes 0.8 + ecb 0.1 属于 cipher **0.4** 家族;aes 0.9 / ecb 0.2 是 cipher 0.5,
# 泛型不通用,混用编译不过。
# - md-5 0.10 的 crate 名是 `md5`(`use md5::{Digest, Md5};`)。
# - pglite-rs 0.2 的 **lib 名是 `pglite`**(`use pglite::PGlite;`),
# 且 0.2.7 没有 `memory://` 模式,`PGlite::open()` 只接受路径。
[workspace.dependencies]
axum = "0.8"
tokio = { version = "1", features = ["full"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_urlencoded = "0.7"
aes = "0.8"
ecb = "0.1"
md-5 = "0.10"
rand = "0.8"
uuid = { version = "1", features = ["v4"] }
hex = "0.4"
pglite-rs = "0.2"
chrono = "0.4"
[profile.release]
opt-level = 2
lto = "thin"
strip = "symbols"
panic = "abort"
codegen-units = 16