From e19c4c6c48f50d75dd52dbc1963dcb95f0e977ca Mon Sep 17 00:00:00 2001 From: Jeff Baskin Date: Tue, 5 Jul 2022 17:29:10 -0400 Subject: [PATCH] Moved database into a module. --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c69281a..f6e8aad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1254,7 +1254,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" [[package]] -name = "morethantext" +name = "morethantext_web" version = "0.1.0" dependencies = [ "async-graphql", diff --git a/Cargo.toml b/Cargo.toml index ead48d7..24ca893 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "morethantext" +name = "morethantext_web" version = "0.1.0" edition = "2021" diff --git a/src/main.rs b/src/main.rs index 246e4ee..e5c1577 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,13 @@ -use morethantext::Database; use tide::{ http::StatusCode, sessions::{MemoryStore, SessionMiddleware}, Request, Response, }; +mod database; mod settings; +use database::Database; use settings::Settings; #[async_std::main]