Mark async main function with #[pagetop::main]

Also, use #[pagetop::test] for test functions. Add actix-web to
Cargo.toml only when using Actix Web macros for service configuration.
This commit is contained in:
Manuel Cillero 2023-07-19 23:58:23 +02:00
parent 4ce59d6520
commit 05304f116a
12 changed files with 58 additions and 21 deletions

View file

@ -14,7 +14,6 @@ repository = "https://github.com/manuelcillero/pagetop"
license = "Apache-2.0 OR MIT"
[dependencies]
actix-web = "4"
pagetop = { version = "0.0", path = "../pagetop", features = ["mysql"], default-features = false }
# Themes.
pagetop-aliner = { version = "0.0", path = "../pagetop-aliner" }