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"
[dependencies]
rusqlite = "0.28.0"
[dependencies.rocket]
version = "0.5.0-rc.2"

View File

@ -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<PostTest<'_>>) {
test.accuracy,
test.user_id
)
}
#[launch]

1
src/sql.rs Normal file
View File

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