[package]
name = "sa-token-plugin-rocket"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
keywords.workspace = true
categories.workspace = true
description = "Rocket framework integration for sa-token-rust - All-in-one package"

[dependencies]
# 核心依赖（重新导出给用户）
sa-token-core = { version = "0.1.10" }
sa-token-adapter = { version = "0.1.10" }
sa-token-macro = { version = "0.1.10" }

# 存储实现（可选，通过 feature 控制）
sa-token-storage-memory = { version = "0.1.10", optional = true }
sa-token-storage-redis = { version = "0.1.10", optional = true }
sa-token-storage-database = { version = "0.1.10", optional = true }

# Rocket 框架依赖
tokio = { workspace = true }
async-trait = { workspace = true }
rocket = "0.5"
serde = { workspace = true }
serde_json = { workspace = true }
urlencoding = "2.1.3"
tracing = { workspace = true }

[features]
default = ["memory"]
# 存储后端选择
memory = ["sa-token-storage-memory"]
redis = ["sa-token-storage-redis"]
database = ["sa-token-storage-database"]
# 包含所有存储后端
full = ["memory", "redis", "database"]
