added more functionality

This commit is contained in:
Arlo Filley 2022-09-29 13:00:13 +01:00
parent 94904481a6
commit cb31082580
3 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@ version = "0.1.0"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
rusqlite = "0.28.0"
[dependencies.rocket] [dependencies.rocket]
version = "0.5.0-rc.2" version = "0.5.0-rc.2"

View File

@ -7,7 +7,6 @@ fn test() -> String {
format!("Hello world") format!("Hello world")
} }
#[derive(Deserialize)] #[derive(Deserialize)]
#[serde(crate = "rocket::serde")] #[serde(crate = "rocket::serde")]
struct PostTest<'r> { struct PostTest<'r> {
@ -34,7 +33,6 @@ fn post_test(test: Json<PostTest<'_>>) {
test.accuracy, test.accuracy,
test.user_id test.user_id
) )
} }
#[launch] #[launch]

1
src/sql.rs Normal file
View File

@ -0,0 +1 @@
use rusqlite::{params, Connection, Result};