From 59d26277db252523f63a72d4c8e74a7647c2017f Mon Sep 17 00:00:00 2001 From: erik Date: Mon, 28 Jun 2021 14:35:18 +0000 Subject: [PATCH] Add offline feature to sqlx --- Cargo.lock | 7 +++++++ Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 01bd6d3..d7f3d09 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -423,6 +423,9 @@ name = "either" version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" +dependencies = [ + "serde", +] [[package]] name = "flate2" @@ -1871,6 +1874,7 @@ dependencies = [ "once_cell", "parking_lot", "percent-encoding", + "serde", "sha2", "smallvec", "sqlformat", @@ -1893,9 +1897,12 @@ dependencies = [ "either", "futures", "heck", + "hex", "once_cell", "proc-macro2", "quote", + "serde", + "serde_json", "sha2", "sqlx-core", "sqlx-rt", diff --git a/Cargo.toml b/Cargo.toml index b26278e..8a09112 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ edition = "2018" juniper = "^0.15" juniper_warp = "^0.6" juniper-from-schema = { git = "https://github.com/davidpdrsn/juniper-from-schema" } -sqlx = { version = "^0.5", features = ["runtime-tokio-native-tls", "uuid", "chrono", "macros"] } +sqlx = { version = "^0.5", features = ["runtime-tokio-native-tls", "uuid", "chrono", "macros", "offline"] } warp = { version = "^0.3", default-features = false, features = ["compression", "tls"] } structopt = { version = "^0.3", features = ["wrap_help"] } toml = "^0.5"