aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMelody Horn / boringcactus <melody@boringcactus.com>2021-06-13 10:42:17 -0600
committerMelody Horn / boringcactus <melody@boringcactus.com>2021-06-13 10:42:17 -0600
commit7447a411f0dc4c9eff4cfaf28c1171ca1b4be707 (patch)
tree125b36165e8010b95aa97aa70bfc088dc370b3ac /src
parent109966b7e365423bce83b78004eb1c21b7892940 (diff)
downloadtosin-7447a411f0dc4c9eff4cfaf28c1171ca1b4be707.tar.gz
tosin-7447a411f0dc4c9eff4cfaf28c1171ca1b4be707.zip
add structure for settings
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs17
-rw-r--r--src/settings.rs10
2 files changed, 26 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index b9cf73d..112ed57 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,6 +1,21 @@
pub mod contrib;
pub mod http;
pub mod server;
+pub mod settings;
pub mod urls;
-pub use server::run_server;
+pub use settings::Settings;
+pub use urls::UrlMap;
+
+pub fn main(urls: UrlMap, settings: Settings) {
+ todo!()
+}
+
+#[macro_export]
+macro_rules! main {
+ ($urls:expr, $settings:expr) => {
+ fn main() {
+ tosin::main($urls, $settings);
+ }
+ };
+}
diff --git a/src/settings.rs b/src/settings.rs
new file mode 100644
index 0000000..9d29cfe
--- /dev/null
+++ b/src/settings.rs
@@ -0,0 +1,10 @@
+pub struct Settings {
+}
+
+impl Default for Settings {
+ fn default() -> Self {
+ Self {
+
+ }
+ }
+}