♻️ (pagetop): Migra de actix-web a Axum
Sustituye el módulo `service` por `web` y adapta toda la API al modelo de Axum: router inmutable, extractores via `FromRequestParts` y servicios Tower para archivos estáticos. - `HttpRequest` pasa a ser un tipo propio, mínimo y clonable. - `configure_services` pasa a `configure_routes`. - `EmbeddedFilesService` pasa a `ServeEmbedded`. - Elimina `session_lifetime` de `Server` (va a `pagetop-auth`). - Actualiza tests y ejemplos a la nueva API.
This commit is contained in:
parent
026448e511
commit
9c58d5e1d6
19 changed files with 612 additions and 390 deletions
|
|
@ -1,7 +1,6 @@
|
|||
[package]
|
||||
name = "pagetop-statics"
|
||||
version = "0.1.3"
|
||||
edition = "2021"
|
||||
|
||||
description = """
|
||||
Librería para automatizar la recopilación de recursos estáticos en PageTop.
|
||||
|
|
@ -11,6 +10,7 @@ keywords = ["pagetop", "build", "static", "resources", "file"]
|
|||
|
||||
repository.workspace = true
|
||||
homepage.workspace = true
|
||||
edition.workspace = true
|
||||
license.workspace = true
|
||||
authors.workspace = true
|
||||
|
||||
|
|
@ -19,15 +19,11 @@ default = ["change-detection"]
|
|||
sort = []
|
||||
|
||||
[dependencies]
|
||||
change-detection = { version = "1.2", optional = true }
|
||||
mime_guess = "2.0"
|
||||
path-slash = "0.2"
|
||||
|
||||
actix-web.workspace = true
|
||||
derive_more = "0.99.17"
|
||||
futures-util = { version = "0.3", default-features = false, features = ["std"] }
|
||||
change-detection = { workspace = true, optional = true }
|
||||
mime_guess.workspace = true
|
||||
path-slash.workspace = true
|
||||
|
||||
[build-dependencies]
|
||||
change-detection = { version = "1.2", optional = true }
|
||||
mime_guess = "2.0"
|
||||
path-slash = "0.2"
|
||||
change-detection = { workspace = true, optional = true }
|
||||
mime_guess.workspace = true
|
||||
path-slash.workspace = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue