[package]
name = "todo_baggins"
version = "0.1.0"
authors = ["Matouš Volf <git@matousvolf.cz>"]
edition = "2024"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
chrono = { version = "0.4.43", features = ["serde", "unstable-locales"] }
# Remember to update the CLI as well.
dioxus = { git = "https://github.com/matous-volf/dioxus", rev = "627d5ca5b80aeed57c23e253024665f103117f5e", features = ["fullstack", "router"] }
# TODO: Remove this once https://github.com/DioxusLabs/dioxus/issues/4765 is resolved.
dioxus-html = { git = "https://github.com/matous-volf/dioxus", rev = "627d5ca5b80aeed57c23e253024665f103117f5e", features = ["serialize"] }
feruca = { version = "0.11.5" }
serde = { version = "1.0.228" }
serde_json = { version = "1.0.149" }
serde_with = { version = "3.16.1", features = ["chrono_0_4"] }
tracing = "0.1.44"
unic-langid-impl = { version = "0.9.6", features = ["serde"] }
validator = { version = "0.20.0", features = ["derive"] }

# Remember to update the CLI as well.
diesel = { version = "2.3.6", features = [
    "chrono",
    "postgres",
    "postgres_backend",
    "serde_json",
], optional = true }
diesel_migrations = { version = "2.3.1", features = [
    "postgres",
], optional = true }
rand = { version = "0.9.2", optional = true }
time = { version = "0.3.45", optional = true }
tokio = { version = "1.49.0", optional = true }

async-std = { version = "1.13.2", optional = true }
dioxus-i18n = { path = "dioxus-i18n" }
voca_rs = "1.15.2"
load-dotenv = "0.1.2"
# TODO: Switch to upstream once it merges the changes.
dioxus-free-icons = { path = "dioxus-free-icons/packages/lib", features = [
    "font-awesome-regular",
    "font-awesome-solid",
] }

[features]
default = ["web"]
web = ["dioxus/web", "dep:async-std"]
mobile = ["dioxus/mobile", "dep:async-std"]
desktop = ["dioxus/desktop"]
server = [
    "dioxus/server",
    "dep:diesel",
    "dep:diesel_migrations",
    "dep:rand",
    "dep:time",
    "dep:tokio",
]

[profile]

[profile.wasm-dev]
inherits = "dev"
opt-level = 1

[profile.server-dev]
inherits = "dev"

[profile.android-dev]
inherits = "dev"
