diff --git a/Cargo.toml b/Cargo.toml index f311e6a..787fc87 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,6 +4,7 @@ version = "0.1.0" edition = "2021" [dependencies] +rusqlite = "0.28.0" [dependencies.rocket] version = "0.5.0-rc.2" diff --git a/src/main.rs b/src/main.rs index a822350..9e84e3d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,7 +7,6 @@ fn test() -> String { format!("Hello world") } - #[derive(Deserialize)] #[serde(crate = "rocket::serde")] struct PostTest<'r> { @@ -34,7 +33,6 @@ fn post_test(test: Json>) { test.accuracy, test.user_id ) - } #[launch] diff --git a/src/sql.rs b/src/sql.rs new file mode 100644 index 0000000..25d574e --- /dev/null +++ b/src/sql.rs @@ -0,0 +1 @@ +use rusqlite::{params, Connection, Result}; \ No newline at end of file