本次提交旨在完成一次架构一致性重构,核心目标是使前端代码和相关文档完全符合“`data-persistence-service`是唯一数据库守门人”的设计原则。
主要变更包括:
1. **移除前端数据库直连**:
* 从`docker-compose.yml`中删除了`frontend`服务的`DATABASE_URL`。
* 彻底移除了`frontend`项目中的`Prisma`依赖、配置文件和客户端实例。
2. **清理前端UI**:
* 从配置页面中删除了所有与数据库设置相关的UI组件和业务逻辑。
3. **同步更新文档**:
* 更新了《用户使用文档》和《需求文档》,移除了所有提及或要求前端进行数据库配置的过时内容。
此次重构后,系统前端的数据交互已完全收敛至`api-gateway`,确保了架构的统一性、健壮性和高内聚。
52 lines
1.2 KiB
TOML
52 lines
1.2 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2024"
|
|
rust-version = "1.63"
|
|
name = "thread_local"
|
|
version = "1.1.9"
|
|
authors = ["Amanieu d'Antras <amanieu@gmail.com>"]
|
|
build = false
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Per-object thread-local storage"
|
|
documentation = "https://docs.rs/thread_local/"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"thread_local",
|
|
"concurrent",
|
|
"thread",
|
|
]
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/Amanieu/thread_local-rs"
|
|
|
|
[features]
|
|
nightly = []
|
|
|
|
[lib]
|
|
name = "thread_local"
|
|
path = "src/lib.rs"
|
|
|
|
[[bench]]
|
|
name = "thread_local"
|
|
path = "benches/thread_local.rs"
|
|
harness = false
|
|
|
|
[dependencies.cfg-if]
|
|
version = "1.0.0"
|
|
|
|
[dev-dependencies.criterion]
|
|
version = "0.5.1"
|