summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-05 01:48:16 -0500
committerJesse Luehrs <doy@tozt.net>2018-11-05 01:48:16 -0500
commit93f6e7083af1db40b16db049b62025f8cdcbbc5a (patch)
tree5712629b46b4ce249f77b7d9a6472cf8cf0872af /src/main.rs
parent0206a6ebbb41050730697e0d658f7893e46dca03 (diff)
downloadlastfm-query-93f6e7083af1db40b16db049b62025f8cdcbbc5a.tar.gz
lastfm-query-93f6e7083af1db40b16db049b62025f8cdcbbc5a.zip
start sketching out some db stuff
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index e7a11a9..f1018d9 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1,3 +1,12 @@
+extern crate directories;
+extern crate failure;
+extern crate rusqlite;
+
+mod error;
+mod paths;
+mod db;
+
fn main() {
- println!("Hello, world!");
+ let db = db::DB::new(&paths::dbpath())
+ .expect("failed to create db");
}