From b8b8533f1843c60a05bf80715f7f7e5fdcbcb9fd Mon Sep 17 00:00:00 2001 From: Alex Wright Date: Sun, 11 Jul 2021 15:30:55 +0000 Subject: [PATCH] Rocket JSON isn't contrib anymore. Duh. --- Cargo.toml | 8 +++----- src/main.rs | 2 -- src/rest.rs | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index d112906..1b83e43 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,11 +8,9 @@ edition = "2018" [dependencies] juniper_rocket = "0.8.0" juniper = "0.15.7" -rocket = "0.5.0-rc.1" serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" -[dependencies.rocket_contrib] -version = "0.4.10" -default-features = false -features = ["json"] \ No newline at end of file +[dependencies.rocket] +version = "0.5.0-rc.1" +features = ["json"] diff --git a/src/main.rs b/src/main.rs index 23a8af9..93fa51d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,3 @@ -extern crate rocket; - use rocket::Rocket; use model::Database; diff --git a/src/rest.rs b/src/rest.rs index 0c80dcf..5c70bda 100644 --- a/src/rest.rs +++ b/src/rest.rs @@ -1,6 +1,6 @@ use rocket::fairing::AdHoc; +use rocket::serde::json::Json; use rocket::State; -use rocket_contrib::json::Json; use crate::model::{ Database, Person,