[package]
name = "pagetop"
version = "0.0.48"
edition = "2021"

authors = [
    "Manuel Cillero <manuel@cillero.es>"
]
description = """\
    PageTop is an opinionated Rust web development framework to build secure and modular \
    Server-Side Rendering (SSR) web solutions.
"""
homepage = "https://pagetop.cillero.es"
repository = "https://github.com/manuelcillero/pagetop"
license = "Apache-2.0 OR MIT"

keywords = [
    "web", "cms", "framework", "frontend", "ssr"
]
categories = [
    "web-programming", "development-tools", "gui"
]

[lib]
name = "pagetop"

[features]
default  = []
database = ["futures", "sea-orm", "sea-schema"]
mysql    = ["database", "sea-orm/sqlx-mysql"]
postgres = ["database", "sea-orm/sqlx-postgres"]
sqlite   = ["database", "sea-orm/sqlx-sqlite"]

[dependencies]
async-trait   = "0.1.74"
chrono        = "0.4.31"
concat-string = "1.0.1"
figlet-rs     = "0.1.5"
itoa          = "1.0.9"
nom           = "7.1.3"
once_cell     = "1.18.0"
paste         = "1.0.14"
smart-default = "0.7.1"
substring     = "1.4.5"
term_size     = "0.3.2"
toml          = "0.8.8"
url           = "2.4.1"

tracing = "0.1.40"
tracing-appender = "0.2.3"
tracing-subscriber = { version = "0.3.18", features = ["json", "env-filter"] }
tracing-actix-web = "0.7.9"

fluent-templates = "0.8.0"
unic-langid = { version = "0.9.1", features = ["macros"] }

actix-web = "4"
actix-session = { version = "0.8.0", features = ["cookie-session"] }

actix-web-files = { package = "actix-files", version = "0.6.2" }
actix-web-static-files = "4.0.1"
static-files = "0.2.3"

pagetop-macros = { version = "0.0", path = "../pagetop-macros" }

serde = { version = "1.0", features = ["derive"] }

[dependencies.futures]
version = "0.3.29"
optional = true

[dependencies.sea-orm]
version = "0.11.3"
features = ["debug-print", "macros", "runtime-async-std-native-tls"]
default-features = false
optional = true

[dependencies.sea-schema]
version = "0.11.0"
optional = true

[build-dependencies]
pagetop-build = { version = "0.0", path = "../pagetop-build" }

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
