Merge branch 'master' into rework-core-traits

This commit is contained in:
tyranron 2022-05-17 16:00:36 +02:00
commit e381602d5a
No known key found for this signature in database
GPG key ID: 762E144FB230A4F0
2 changed files with 4 additions and 2 deletions

View file

@ -48,7 +48,7 @@ graphql-parser = { version = "0.4", optional = true }
indexmap = { version = "1.0", features = ["serde-1"] } indexmap = { version = "1.0", features = ["serde-1"] }
juniper_codegen = { version = "0.16.0-dev", path = "../juniper_codegen" } juniper_codegen = { version = "0.16.0-dev", path = "../juniper_codegen" }
rust_decimal = { version = "1.0", default-features = false, optional = true } rust_decimal = { version = "1.0", default-features = false, optional = true }
serde = { version = "1.0.8", features = ["derive"], default-features = false } serde = { version = "1.0.8", features = ["derive"] }
serde_json = { version = "1.0.2", default-features = false, optional = true } serde_json = { version = "1.0.2", default-features = false, optional = true }
smartstring = "1.0" smartstring = "1.0"
static_assertions = "1.1" static_assertions = "1.1"
@ -63,6 +63,7 @@ uuid_08 = { version = "0.8", package = "uuid", default-features = false, feature
[dev-dependencies] [dev-dependencies]
bencher = "0.1.2" bencher = "0.1.2"
chrono = { version = "0.4", features = ["alloc"], default-features = false }
pretty_assertions = "1.0.0" pretty_assertions = "1.0.0"
serde_json = "1.0.2" serde_json = "1.0.2"
tokio = { version = "1.0", features = ["macros", "time", "rt-multi-thread"] } tokio = { version = "1.0", features = ["macros", "time", "rt-multi-thread"] }

View file

@ -44,7 +44,6 @@ mod utc_date_time {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use bson::{oid::ObjectId, DateTime as UtcDateTime}; use bson::{oid::ObjectId, DateTime as UtcDateTime};
use chrono::{DateTime, Utc};
use crate::{graphql_input_value, FromInputValue, InputValue}; use crate::{graphql_input_value, FromInputValue, InputValue};
@ -61,6 +60,8 @@ mod test {
#[test] #[test]
fn utcdatetime_from_input() { fn utcdatetime_from_input() {
use chrono::{DateTime, Utc};
let raw = "2020-03-23T17:38:32.446+00:00"; let raw = "2020-03-23T17:38:32.446+00:00";
let input: InputValue = graphql_input_value!((raw)); let input: InputValue = graphql_input_value!((raw));