Rocket JSON isn't contrib anymore. Duh.

This commit is contained in:
Alex Wright 2021-07-11 15:30:55 +00:00
parent 9cca533a8c
commit b8b8533f18
3 changed files with 4 additions and 8 deletions

View File

@ -8,11 +8,9 @@ edition = "2018"
[dependencies] [dependencies]
juniper_rocket = "0.8.0" juniper_rocket = "0.8.0"
juniper = "0.15.7" juniper = "0.15.7"
rocket = "0.5.0-rc.1"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0" serde_json = "1.0"
[dependencies.rocket_contrib] [dependencies.rocket]
version = "0.4.10" version = "0.5.0-rc.1"
default-features = false
features = ["json"] features = ["json"]

View File

@ -1,5 +1,3 @@
extern crate rocket;
use rocket::Rocket; use rocket::Rocket;
use model::Database; use model::Database;

View File

@ -1,6 +1,6 @@
use rocket::fairing::AdHoc; use rocket::fairing::AdHoc;
use rocket::serde::json::Json;
use rocket::State; use rocket::State;
use rocket_contrib::json::Json;
use crate::model::{ use crate::model::{
Database, Database,
Person, Person,