Files
httpserver/Cargo.toml
2026-04-14 16:11:04 +02:00

45 lines
1.9 KiB
TOML

[package]
name = "httpserver"
version = "0.1.0"
authors = ["tomoron <tomoron@student.42angouleme.fr>"]
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
axum-core = { version = "0.5.6", optional = true }
chrono = { version = "0.4.44", features = ["serde"] }
diesel = { version = "2.3.7", features = ["postgres", "r2d2"], optional = true }
dioxus = { version = "0.7.1", features = ["router", "fullstack"] }
dioxus-asset-resolver = "0.7.4"
dioxus-html = "0.7.3"
dioxus-primitives = { git = "https://github.com/DioxusLabs/components", version = "0.0.1", default-features = false }
futures = "0.3.32"
random-string = "1.1.0"
reqwest = { version = "0.13.2", features = ["stream"] }
serde = "1.0.228"
tokio = { version = "1.51.1", optional = true }
tokio-util = { version = "0.7.18", optional = true }
tracing = "0.1.44"
wasm-bindgen = "0.2.114"
web-sys = { version = "0.3.91", features = [ "Navigator", "Clipboard" ] }
[features]
default = ["web"]
# The feature that are only required for the web = ["dioxus/web"] build target should be optional and only enabled in the web = ["dioxus/web"] feature
web = ["dioxus/web"]
# The feature that are only required for the desktop = ["dioxus/desktop"] build target should be optional and only enabled in the desktop = ["dioxus/desktop"] feature
desktop = ["dioxus/desktop"]
# The feature that are only required for the mobile = ["dioxus/mobile"] build target should be optional and only enabled in the mobile = ["dioxus/mobile"] feature
mobile = ["dioxus/mobile"]
# The feature that are only required for the server = ["dioxus/server"] build target should be optional and only enabled in the server = ["dioxus/server"] feature
server = ["dioxus/server", "dep:diesel", "dep:tokio", "dep:tokio-util", "dep:axum-core"]
[profile.release]
opt-level = "z"
debug = false
lto = true
codegen-units = 1
panic = "abort"
incremental = false