Release 4.0.0-alpha.1

async-graphql@4.0.0-alpha.1
async-graphql-actix-web@4.0.0-alpha.1
async-graphql-axum@4.0.0-alpha.1
async-graphql-derive@4.0.0-alpha.1
async-graphql-parser@4.0.0-alpha.1
async-graphql-poem@4.0.0-alpha.1
async-graphql-rocket@4.0.0-alpha.1
async-graphql-tide@4.0.0-alpha.1
async-graphql-value@4.0.0-alpha.1
async-graphql-warp@4.0.0-alpha.1

Generated by cargo-workspaces
This commit is contained in:
Sunli 2022-05-05 12:41:27 +08:00
parent fef97e7458
commit 7a365d5659
13 changed files with 77 additions and 32 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["sunli <scott_s829@163.com>", "Koxiaet"]
edition = "2021"
description = "A GraphQL server library implemented in Rust"
@ -27,9 +27,9 @@ password-strength-validator = ["zxcvbn"]
tokio-sync = ["tokio"]
[dependencies]
async-graphql-derive = { path = "derive", version = "4.0.0-alpha.0" }
async-graphql-value = { path = "value", version = "4.0.0-alpha.0" }
async-graphql-parser = { path = "parser", version = "4.0.0-alpha.0" }
async-graphql-derive = { path = "derive", version = "4.0.0-alpha.1" }
async-graphql-value = { path = "value", version = "4.0.0-alpha.1" }
async-graphql-parser = { path = "parser", version = "4.0.0-alpha.1" }
async-stream = "0.3.0"
async-trait = "0.1.48"

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-derive"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["sunli <scott_s829@163.com>", "Koxiaet"]
edition = "2021"
description = "Macros for async-graphql"
@ -15,9 +15,14 @@ categories = ["network-programming", "asynchronous"]
proc-macro = true
[dependencies]
async-graphql-parser = { path = "../parser", version = "4.0.0-alpha.0" }
async-graphql-parser = { path = "../parser", version = "4.0.0-alpha.1" }
proc-macro2 = "1.0.24"
syn = { version = "1.0.64", features = ["full", "extra-traits", "visit-mut", "visit"] }
syn = { version = "1.0.64", features = [
"full",
"extra-traits",
"visit-mut",
"visit",
] }
quote = "1.0.9"
Inflector = "0.11.4"
proc-macro-crate = "1.0.0"

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-actix-web"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["sunli <scott_s829@163.com>", "Koxiaet"]
edition = "2021"
description = "async-graphql for actix-web"
@ -12,7 +12,7 @@ keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"]
[dependencies]
async-graphql = { path = "../..", version = "4.0.0-alpha.0" }
async-graphql = { path = "../..", version = "4.0.0-alpha.1" }
actix = "0.13.0"
actix-http = "3.0.1"

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-axum"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["sunli <scott_s829@163.com>"]
edition = "2021"
description = "async-graphql for axum"
@ -12,7 +12,7 @@ keywords = ["futures", "async", "graphql", "axum"]
categories = ["network-programming", "asynchronous"]
[dependencies]
async-graphql = { path = "../..", version = "4.0.0-alpha.0" }
async-graphql = { path = "../..", version = "4.0.0-alpha.1" }
async-trait = "0.1.51"
axum = { version = "0.5.1", features = ["ws", "headers"] }

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-poem"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["sunli <scott_s829@163.com>"]
edition = "2021"
description = "async-graphql for poem"
@ -12,10 +12,9 @@ keywords = ["futures", "async", "graphql", "poem"]
categories = ["network-programming", "asynchronous"]
[dependencies]
async-graphql = { path = "../..", version = "4.0.0-alpha.0" }
async-graphql = { path = "../..", version = "4.0.0-alpha.1" }
poem = { version = "1.2.2", features = ["websocket"] }
futures-util = { version = "0.3.0", default-features = false }
serde_json = "1.0.66"
tokio-util = { version = "0.6.7", features = ["compat"] }

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-rocket"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["Daniel Wiesenberg <daniel@simplificAR.io>"]
edition = "2021"
description = "async-graphql for Rocket.rs"
@ -12,9 +12,11 @@ keywords = ["futures", "async", "graphql", "rocket"]
categories = ["network-programming", "asynchronous"]
[dependencies]
async-graphql = { path = "../..", version = "4.0.0-alpha.0" }
async-graphql = { path = "../..", version = "4.0.0-alpha.1" }
rocket = { version = "0.5.0-rc.1", default-features = false }
serde = "1.0.126"
serde_json = "1.0.64"
tokio-util = { version = "0.6.7", default-features = false, features = ["compat"] }
tokio-util = { version = "0.6.7", default-features = false, features = [
"compat",
] }

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-tide"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["vkill <vkill.net@gmail.com>", "sunli <scott_s829@163.com>"]
edition = "2021"
description = "async-graphql for tide"
@ -16,17 +16,22 @@ default = ["websocket"]
websocket = ["tide-websockets"]
[dependencies]
async-graphql = { path = "../..", version = "4.0.0-alpha.0" }
async-graphql = { path = "../..", version = "4.0.0-alpha.1" }
async-trait = "0.1.48"
futures-util = "0.3.0"
serde_json = "1.0.64"
tide = { version = "0.16.0", default-features = false, features = ["h1-server"] }
tide = { version = "0.16.0", default-features = false, features = [
"h1-server",
] }
tide-websockets = { version = "0.4.0", optional = true }
[dev-dependencies]
# Surf lacks multipart support
reqwest = { version = "0.11.2", default-features = false, features = ["json", "multipart"] }
reqwest = { version = "0.11.2", default-features = false, features = [
"json",
"multipart",
] }
async-std = { version = "1.9.0", features = ["attributes", "tokio1"] }
serde_json = "1.0.64"

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-warp"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["sunli <scott_s829@163.com>", "Koxiaet"]
edition = "2021"
description = "async-graphql for warp"
@ -12,12 +12,18 @@ keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"]
[dependencies]
async-graphql = { path = "../..", version = "4.0.0-alpha.0" }
async-graphql = { path = "../..", version = "4.0.0-alpha.1" }
warp = { version = "0.3.0", default-features = false, features = ["websocket"] }
futures-util = { version = "0.3.0", default-features = false, features = ["sink"] }
futures-util = { version = "0.3.0", default-features = false, features = [
"sink",
] }
serde_json = "1.0.64"
[dev-dependencies]
tokio = { version = "1.4.0", default-features = false, features = ["macros", "rt-multi-thread", "time"] }
tokio = { version = "1.4.0", default-features = false, features = [
"macros",
"rt-multi-thread",
"time",
] }
async-stream = "0.3.0"

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-parser"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["sunli <scott_s829@163.com>", "Koxiaet"]
edition = "2021"
description = "GraphQL query parser for async-graphql"
@ -12,7 +12,7 @@ keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"]
[dependencies]
async-graphql-value = { path = "../value", version = "4.0.0-alpha.0" }
async-graphql-value = { path = "../value", version = "4.0.0-alpha.1" }
pest = "2.1.3"
serde_json = "1.0.64"
serde = { version = "1.0.125", features = ["derive"] }

View File

@ -39,5 +39,7 @@ mod time_offset_date_time;
mod time_primitive_date_time;
#[cfg(feature = "url")]
mod url;
#[cfg(any(feature = "uuid", feature = "uuid08"))]
#[cfg(feature = "uuid")]
mod uuid;
#[cfg(feature = "uuid08")]
mod uuid08;

View File

@ -1,7 +1,4 @@
#[cfg(feature = "uuid")]
use uuid::Uuid;
#[cfg(feature = "uuid08")]
use uuid08::Uuid;
use crate::{InputValueError, InputValueResult, Scalar, ScalarType, Value};

29
src/types/external/uuid08.rs vendored Normal file
View File

@ -0,0 +1,29 @@
use uuid08::Uuid;
use crate::{InputValueError, InputValueResult, Scalar, ScalarType, Value};
#[Scalar(
internal,
name = "UUID",
specified_by_url = "http://tools.ietf.org/html/rfc4122"
)]
/// A UUID is a unique 128-bit number, stored as 16 octets. UUIDs are parsed as
/// Strings within GraphQL. UUIDs are used to assign unique identifiers to
/// entities without requiring a central allocating authority.
///
/// # References
///
/// * [Wikipedia: Universally Unique Identifier](http://en.wikipedia.org/wiki/Universally_unique_identifier)
/// * [RFC4122: A Universally Unique IDentifier (UUID) URN Namespace](http://tools.ietf.org/html/rfc4122)
impl ScalarType for Uuid {
fn parse(value: Value) -> InputValueResult<Self> {
match value {
Value::String(s) => Ok(Uuid::parse_str(&s)?),
_ => Err(InputValueError::expected_type(value)),
}
}
fn to_value(&self) -> Value {
Value::String(self.to_string())
}
}

View File

@ -1,6 +1,6 @@
[package]
name = "async-graphql-value"
version = "4.0.0-alpha.0"
version = "4.0.0-alpha.1"
authors = ["sunli <scott_s829@163.com>", "Koxiaet"]
edition = "2021"
description = "GraphQL value for async-graphql"