gitdataai/libs/api/Cargo.toml
ZhenYi d593354ba9
Some checks are pending
CI / Rust Lint & Check (push) Waiting to run
CI / Rust Tests (push) Waiting to run
CI / Frontend Lint & Type Check (push) Waiting to run
CI / Frontend Build (push) Blocked by required conditions
feat: add sitemap index with static/users/projects/repos sub-sitemaps
- Main sitemap index at /sitemap.xml referencing 4 sub-sitemaps
- /sidemap/static: fixed routes (homepage, auth, marketing pages)
- /sidemap/users: public user profiles sorted alphabetically
- /sidemap/projects: public projects sorted alphabetically
- /sidemap/repos: public repos sorted alphabetically
- Redis cache with 8h TTL (no refresh on access), key: sidemap:{type}
- robots.txt Sitemap URL uses main_domain() with https:// forced
- All sitemap loc entries use https:// base URL
2026-04-26 00:06:18 +08:00

55 lines
1.6 KiB
TOML

[package]
name = "api"
version.workspace = true
edition.workspace = true
authors.workspace = true
description.workspace = true
repository.workspace = true
readme.workspace = true
homepage.workspace = true
license.workspace = true
keywords.workspace = true
categories.workspace = true
documentation.workspace = true
[lib]
path = "lib.rs"
name = "api"
[[bin]]
path = "gen_api.rs"
name = "gen_api"
[dependencies]
db = { workspace = true }
config = { workspace = true }
queue = { workspace = true }
email = { workspace = true }
tracing = { workspace = true }
service = { workspace = true }
session = { workspace = true }
git = { workspace = true }
frontend = { workspace = true }
models = { workspace = true }
room = { workspace = true }
serde = { workspace = true, features = ["derive"] }
utoipa = { workspace = true, features = ["actix_extras", "chrono", "uuid", "preserve_order", "macros", "time"] }
serde_json = { workspace = true }
actix-web = { workspace = true }
uuid = { workspace = true }
anyhow = { workspace = true }
actix-cors = { workspace = true }
base64 = { workspace = true }
actix-ws = { workspace = true, features = [] }
actix = { workspace = true, features = ["macros"] }
tokio-stream = { workspace = true, features = ["sync"] }
futures = { workspace = true }
futures-util = { workspace = true }
tokio = { workspace = true, features = ["sync", "rt"] }
chrono = { workspace = true }
mime_guess2 = { workspace = true, features = ["phf-map"] }
sea-orm = "2.0.0-rc.37"
rust_decimal = "1.40.0"
actix-multipart = { workspace = true, features = ["tempfile"] }
redis = { workspace = true }
[lints]
workspace = true