64 lines
2.0 KiB
TOML
64 lines
2.0 KiB
TOML
[package]
|
|
name = "ox_speak_server"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
|
|
[lib]
|
|
# The `_lib` suffix may seem redundant but it is necessary
|
|
# to make the lib name unique and wouldn't conflict with the bin name.
|
|
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
|
name = "ox_speak_server_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[workspace]
|
|
members = [".", "migration"]
|
|
|
|
[profile.release]
|
|
#debug = true
|
|
# poid minimal, rapidité baissé
|
|
#strip = true # Retire les symboles
|
|
#lto = true # Link Time Optimization
|
|
#codegen-units = 1 # Meilleure optimisation
|
|
#opt-level = "z" # Optimise pour la taille
|
|
|
|
# poid élevé, vitesse maximal
|
|
strip = true # Retire les symboles
|
|
lto = "thin" # LTO "léger", bon compromis vitesse/taille
|
|
codegen-units = 16 # Parallélise la compilation (défaut), plus rapide à compiler
|
|
opt-level = 3 # Optimisation maximale pour la vitesse
|
|
#panic = "abort" # Réduit la taille ET améliore légèrement les perfs
|
|
|
|
[dependencies]
|
|
# Async
|
|
tokio = {version = "1.48", features = ["full"]}
|
|
|
|
# HTTP
|
|
#actix-web = "4.12"
|
|
#poem = "3.1"
|
|
#poem-openapi = { version="5.1", features = ["swagger-ui", "url", "chrono"]}
|
|
axum = { version = "0.8", features = ["macros", "ws"] }
|
|
#utoipa = "5.4"
|
|
#utoipa-swagger-ui = { version = "9.0", features = ["axum"] }
|
|
#tower = "0.5"
|
|
#tower-http = { version = "0.6", features = ["trace", "cors", "timeout"] }
|
|
|
|
# UDP
|
|
socket2 = "0.6"
|
|
|
|
# db
|
|
sea-orm = { version = "2.0.0-rc", features = ["sqlx-sqlite", "sqlx-postgres", "sqlx-mysql", "runtime-tokio", "with-chrono", "with-uuid", "with-json", "schema-sync"] }
|
|
migration = { path = "migration" }
|
|
|
|
# logs
|
|
log = "0.4.28"
|
|
env_logger = "0.11.8"
|
|
|
|
# utils
|
|
chrono = "0.4"
|
|
parking_lot = "0.12"
|
|
serde = { version = "1.0", features = ["default", "derive"] }
|
|
serde_json = { version = "1.0.145", features = ["default"]}
|
|
toml = "0.9"
|
|
validator = { version = "0.20", features = ["derive"] }
|
|
uuid = {version = "1", features = ["v4", "v7", "fast-rng", "serde"]}
|