♻️ (minimal): Incorpora paste! a las utilidades
This commit is contained in:
parent
6c024da51e
commit
a46cf35fee
7 changed files with 42 additions and 14 deletions
|
|
@ -15,9 +15,6 @@ pub use pagetop_statics::ResourceFiles;
|
|||
#[doc(hidden)]
|
||||
pub use actix_web::test;
|
||||
|
||||
#[doc(hidden)]
|
||||
pub use paste::paste;
|
||||
|
||||
/// Configura un servicio web para publicar archivos estáticos.
|
||||
///
|
||||
/// La macro ofrece tres modos para configurar el servicio:
|
||||
|
|
@ -75,7 +72,7 @@ macro_rules! static_files_service {
|
|||
}
|
||||
}
|
||||
if serve_embedded {
|
||||
$crate::service::paste! {
|
||||
$crate::util::paste! {
|
||||
mod [<static_files_ $bundle>] {
|
||||
include!(concat!(env!("OUT_DIR"), "/", stringify!($bundle), ".rs"));
|
||||
}
|
||||
|
|
@ -95,7 +92,7 @@ macro_rules! static_files_service {
|
|||
route = $route,
|
||||
);
|
||||
let _ = span.in_scope(|| {
|
||||
$crate::service::paste! {
|
||||
$crate::util::paste! {
|
||||
mod [<static_files_ $bundle>] {
|
||||
include!(concat!(env!("OUT_DIR"), "/", stringify!($bundle), ".rs"));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue