Files

77 lines
2.1 KiB
TOML
Raw Permalink Normal View History

[package]
2024-10-19 18:10:02 +08:00
name = "easytier-web"
2025-09-26 00:08:23 +08:00
version = "2.4.5"
edition = "2021"
2024-12-21 01:27:39 +08:00
description = "Config server for easytier. easytier-core gets config from this and web frontend use it as restful api server."
[dependencies]
2024-10-26 00:04:22 +08:00
easytier = { path = "../easytier" }
tracing = { version = "0.1", features = ["log"] }
anyhow = { version = "1.0" }
thiserror = "1.0"
tokio = { version = "1", features = ["full"] }
dashmap = "6.1"
url = "2.2"
async-trait = "0.1"
2024-11-02 15:13:19 +08:00
2025-06-25 09:03:47 +08:00
maxminddb = "0.24"
once_cell = "1.18"
2024-10-26 00:04:22 +08:00
axum = { version = "0.7", features = ["macros"] }
2024-11-02 15:13:19 +08:00
axum-login = { version = "0.16" }
password-auth = { version = "1.0.0" }
axum-messages = "0.7.0"
2025-04-01 10:03:58 +08:00
axum-embed = { version = "0.1.0", optional = true }
2024-11-02 15:13:19 +08:00
tower-sessions-sqlx-store = { version = "0.14.1", features = ["sqlite"] }
tower-sessions = { version = "0.13.0", default-features = false, features = [
"signed",
] }
tower-http = { version = "0.6", features = ["cors", "compression-full"] }
2024-11-02 15:13:19 +08:00
sqlx = { version = "0.8", features = ["sqlite"] }
2025-03-17 21:37:00 +08:00
sea-orm = { version = "1.1", features = [
"sqlx-sqlite",
"runtime-tokio-rustls",
"macros",
] }
2024-11-02 15:13:19 +08:00
sea-orm-migration = { version = "1.1" }
# for captcha
2025-06-25 09:03:47 +08:00
rust-embed = { version = "8.5.0", features = ["debug-embed", "include-exclude"] }
2024-11-02 15:13:19 +08:00
base64 = "0.22"
rand = "0.8"
2025-03-17 21:37:00 +08:00
image = { version = "0.24", default-features = false, features = ["png"] }
2024-11-02 15:13:19 +08:00
rusttype = "0.9.3"
imageproc = "0.23.0"
2024-12-21 01:27:39 +08:00
rust-i18n = "3"
sys-locale = "0.3"
2024-10-26 00:04:22 +08:00
clap = { version = "4.4.8", features = [
"string",
"unicode",
"derive",
"wrap_help",
] }
serde = { version = "1.0", features = ["derive"] }
2024-11-10 11:06:58 +08:00
serde_json = "1.0"
2024-10-26 00:04:22 +08:00
uuid = { version = "1.5.0", features = [
"v4",
"fast-rng",
"macro-diagnostics",
"serde",
] }
chrono = { version = "0.4.37", features = ["serde"] }
2025-04-01 10:03:58 +08:00
[features]
default = []
2025-04-25 22:27:36 +08:00
embed = ["dep:axum-embed"]
# enable thunk-rs when compiling for x86_64 or i686 windows
[target.x86_64-pc-windows-msvc.build-dependencies]
thunk-rs = { git = "https://github.com/easytier/thunk.git", default-features = false, features = ["win7"] }
[target.i686-pc-windows-msvc.build-dependencies]
thunk-rs = { git = "https://github.com/easytier/thunk.git", default-features = false, features = ["win7"] }