diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/apps.rs | 3 | ||||
-rw-r--r-- | src/contrib/admin/mod.rs | 6 | ||||
-rw-r--r-- | src/contrib/admin/site/mod.rs | 2 | ||||
-rw-r--r-- | src/db/mod.rs | 1 | ||||
-rw-r--r-- | src/db/models/mod.rs | 3 | ||||
-rw-r--r-- | src/lib.rs | 2 | ||||
-rw-r--r-- | src/settings.rs | 5 |
7 files changed, 21 insertions, 1 deletions
diff --git a/src/apps.rs b/src/apps.rs new file mode 100644 index 0000000..26c6124 --- /dev/null +++ b/src/apps.rs @@ -0,0 +1,3 @@ +pub struct AppConfig { + +} diff --git a/src/contrib/admin/mod.rs b/src/contrib/admin/mod.rs index 4d481aa..0f7e880 100644 --- a/src/contrib/admin/mod.rs +++ b/src/contrib/admin/mod.rs @@ -1 +1,7 @@ +use crate::apps::AppConfig; + pub mod site; + +pub const APP: AppConfig = AppConfig { + +}; diff --git a/src/contrib/admin/site/mod.rs b/src/contrib/admin/site/mod.rs index c8faf42..8448370 100644 --- a/src/contrib/admin/site/mod.rs +++ b/src/contrib/admin/site/mod.rs @@ -1 +1,3 @@ pub mod urls; + +pub use urls::urls; diff --git a/src/db/mod.rs b/src/db/mod.rs new file mode 100644 index 0000000..c446ac8 --- /dev/null +++ b/src/db/mod.rs @@ -0,0 +1 @@ +pub mod models; diff --git a/src/db/models/mod.rs b/src/db/models/mod.rs new file mode 100644 index 0000000..5e59949 --- /dev/null +++ b/src/db/models/mod.rs @@ -0,0 +1,3 @@ +pub use tosin_macros::Model; + +pub type Id = usize; @@ -1,5 +1,7 @@ +pub mod apps; mod cli; pub mod contrib; +pub mod db; pub mod http; pub mod settings; pub mod urls; diff --git a/src/settings.rs b/src/settings.rs index 9d29cfe..9d34c0d 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -1,10 +1,13 @@ pub struct Settings { + pub installed_apps: &'static [&'static crate::apps::AppConfig], + pub database_url: &'static str, } impl Default for Settings { fn default() -> Self { Self { - + installed_apps: &[], + database_url: "", } } } |