🚚 Refactor modules to packages to avoid Rust clash

This commit is contained in:
Manuel Cillero 2024-01-07 00:18:54 +01:00
parent 98fa367ebc
commit 89f78a1aff
35 changed files with 125 additions and 123 deletions

View file

@ -7,13 +7,13 @@ static_files!(homedemo);
#[derive(AssignHandle)]
pub struct HomeDemo;
impl ModuleTrait for HomeDemo {
impl PackageTrait for HomeDemo {
fn name(&self) -> L10n {
L10n::t("module_name", &LOCALES_HOMEDEMO)
L10n::t("package_name", &LOCALES_HOMEDEMO)
}
fn description(&self) -> L10n {
L10n::t("module_description", &LOCALES_HOMEDEMO)
L10n::t("package_description", &LOCALES_HOMEDEMO)
}
fn configure_service(&self, scfg: &mut service::web::ServiceConfig) {