Move project to async-graphql

This commit is contained in:
sunli 2020-04-28 15:41:31 +08:00
parent 495df5a9ab
commit aefe448ede
14 changed files with 27 additions and 27 deletions

View File

@ -7,8 +7,8 @@ description = "The GraphQL server library implemented by rust"
publish = true publish = true
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
documentation = "https://docs.rs/async-graphql/" documentation = "https://docs.rs/async-graphql/"
homepage = "https://github.com/sunli829/async-graphql" homepage = "https://github.com/async-graphql/async-graphql"
repository = "https://github.com/sunli829/async-graphql" repository = "https://github.com/async-graphql/async-graphql"
keywords = ["futures", "async", "graphql"] keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"] categories = ["network-programming", "asynchronous"]
readme = "README.md" readme = "README.md"

View File

@ -2,9 +2,9 @@
<div align="center"> <div align="center">
<!-- CI --> <!-- CI -->
<img src="https://github.com/sunli829/potatonet/workflows/CI/badge.svg" /> <img src="https://github.com/async-graphql/async-graphql/workflows/CI/badge.svg" />
<!-- codecov --> <!-- codecov -->
<img src="https://codecov.io/gh/sunli829/async-graphql/branch/master/graph/badge.svg" /> <img src="https://codecov.io/gh/async-graphql/async-graphql/branch/master/graph/badge.svg" />
<!-- Crates version --> <!-- Crates version -->
<a href="https://crates.io/crates/async-graphql"> <a href="https://crates.io/crates/async-graphql">
<img src="https://img.shields.io/crates/v/async-graphql.svg?style=flat-square" <img src="https://img.shields.io/crates/v/async-graphql.svg?style=flat-square"
@ -26,23 +26,23 @@
It supports all of the GraphQL specifications and is easy to integrate into existing web servers. It supports all of the GraphQL specifications and is easy to integrate into existing web servers.
* [Book(WIP)](https://sunli829.github.io/async-graphql/en/index.html) * [Book(WIP)](https://async-graphql.github.io/async-graphql/en/index.html)
* [中文文档](https://sunli829.github.io/async-graphql/zh-CN/index.html) * [中文文档](https://async-graphql.github.io/async-graphql/zh-CN/index.html)
* [Docs](https://docs.rs/async-graphql) * [Docs](https://docs.rs/async-graphql)
* [GitHub repository](https://github.com/sunli829/async-graphql) * [GitHub repository](https://github.com/async-graphql/async-graphql)
* [Cargo package](https://crates.io/crates/async-graphql) * [Cargo package](https://crates.io/crates/async-graphql)
* Minimum supported Rust version: 1.42 or later * Minimum supported Rust version: 1.42 or later
## Examples ## Examples
If you are just getting started, we recommend checking out our examples at: https://github.com/sunli829/async-graphql-examples If you are just getting started, we recommend checking out our examples at: https://github.com/async-graphql/examples
To see how you would create a Relay-compliant server using async-graphql, warp, diesel & postgesql, you can also check out a real-world example at: https://github.com/phated/twentyfive-stars To see how you would create a Relay-compliant server using async-graphql, warp, diesel & postgesql, you can also check out a real-world example at: https://github.com/phated/twentyfive-stars
## Benchmark ## Benchmark
```shell script ```shell script
git clone https://github.com/sunli829/graphql-benchmark git clone https://github.com/async-graphql/benchmark
cargo run --release cargo run --release
``` ```

View File

@ -7,8 +7,8 @@ description = "async-graphql for actix-web"
publish = true publish = true
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
documentation = "https://docs.rs/async-graphql/" documentation = "https://docs.rs/async-graphql/"
homepage = "https://github.com/sunli829/async-graphql" homepage = "https://github.com/async-graphql/async-graphql"
repository = "https://github.com/sunli829/async-graphql" repository = "https://github.com/async-graphql/async-graphql"
keywords = ["futures", "async", "graphql"] keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"] categories = ["network-programming", "asynchronous"]

View File

@ -7,8 +7,8 @@ description = "Macros for async-graphql"
publish = true publish = true
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
documentation = "https://docs.rs/async-graphql/" documentation = "https://docs.rs/async-graphql/"
homepage = "https://github.com/sunli829/async-graphql" homepage = "https://github.com/async-graphql/async-graphql"
repository = "https://github.com/sunli829/async-graphql" repository = "https://github.com/async-graphql/async-graphql"
keywords = ["futures", "async", "graphql"] keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"] categories = ["network-programming", "asynchronous"]

View File

@ -7,8 +7,8 @@ description = "async-graphql for tide"
publish = true publish = true
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
documentation = "https://docs.rs/async-graphql/" documentation = "https://docs.rs/async-graphql/"
homepage = "https://github.com/sunli829/async-graphql" homepage = "https://github.com/async-graphql/async-graphql"
repository = "https://github.com/sunli829/async-graphql" repository = "https://github.com/async-graphql/async-graphql"
keywords = ["futures", "async", "graphql"] keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"] categories = ["network-programming", "asynchronous"]

View File

@ -14,7 +14,7 @@ use tide::{http::headers, Request, Response, Status, StatusCode};
/// ///
/// ///
/// # Examples /// # Examples
/// *[Full Example](<https://github.com/sunli829/async-graphql-examples/blob/master/tide/starwars/src/main.rs>)* /// *[Full Example](<https://github.com/async-graphql/examples/blob/master/tide/starwars/src/main.rs>)*
/// ///
/// ```no_run /// ```no_run
/// use async_graphql::*; /// use async_graphql::*;

View File

@ -7,8 +7,8 @@ description = "async-graphql for warp"
publish = true publish = true
license = "MIT/Apache-2.0" license = "MIT/Apache-2.0"
documentation = "https://docs.rs/async-graphql/" documentation = "https://docs.rs/async-graphql/"
homepage = "https://github.com/sunli829/async-graphql" homepage = "https://github.com/async-graphql/async-graphql"
repository = "https://github.com/sunli829/async-graphql" repository = "https://github.com/async-graphql/async-graphql"
keywords = ["futures", "async", "graphql"] keywords = ["futures", "async", "graphql"]
categories = ["network-programming", "asynchronous"] categories = ["network-programming", "asynchronous"]

View File

@ -36,7 +36,7 @@ impl Reject for BadRequest {}
/// It outputs a tuple containing the `Schema` and `QuertBuilder`. /// It outputs a tuple containing the `Schema` and `QuertBuilder`.
/// ///
/// # Examples /// # Examples
/// *[Full Example](<https://github.com/sunli829/async-graphql-examples/blob/master/warp/starwars/src/main.rs>)* /// *[Full Example](<https://github.com/async-graphql/examples/blob/master/warp/starwars/src/main.rs>)*
/// ///
/// ```no_run /// ```no_run
/// ///

View File

@ -51,4 +51,4 @@ let json = serde_json::to_vec(async_graphql::http::GQLResponse(res));
## Web server integration ## Web server integration
Please refer to https://github.com/sunli829/async-graphql-examples. Please refer to https://github.com/async-graphql/examples.

View File

@ -38,4 +38,4 @@ type User @key(id: ID!) {
你必须在这个实体查找函数中根据key来创建对应的对象。 你必须在这个实体查找函数中根据key来创建对应的对象。
完整的例子请参考https://github.com/sunli829/async-graphql-examples/tree/master/federation 完整的例子请参考https://github.com/async-graphql/examples/tree/master/federation

View File

@ -4,4 +4,4 @@
只需要实现`async_graphql::Extension`就能够定义一个扩展对象,然后在创建`Schema`的时候调用`Schema::extension`应用扩展。 只需要实现`async_graphql::Extension`就能够定义一个扩展对象,然后在创建`Schema`的时候调用`Schema::extension`应用扩展。
你可以参考[Apollo tracing](https://github.com/sunli829/async-graphql/blob/master/src/extensions/tracing.rs)来实现自己的扩展类型。 你可以参考[Apollo tracing](https://github.com/async-graphql/async-graphql/blob/master/src/extensions/tracing.rs)来实现自己的扩展类型。

View File

@ -51,4 +51,4 @@ let json = serde_json::to_vec(async_graphql::http::GQLResponse(res));
## 和Web Server的集成 ## 和Web Server的集成
请参考https://github.com/sunli829/async-graphql-examples。 请参考https://github.com/async-graphql/examples。

View File

@ -2,9 +2,9 @@
//! //!
//! <div align="center"> //! <div align="center">
//! <!-- CI --> //! <!-- CI -->
//! <img src="https://github.com/sunli829/potatonet/workflows/CI/badge.svg" /> //! <img src="https://github.com/async-graphql/async-graphql/workflows/CI/badge.svg" />
//! <!-- codecov --> //! <!-- codecov -->
// <img src="https://codecov.io/gh/sunli829/async-graphql/branch/master/graph/badge.svg" /> // <img src="https://codecov.io/gh/async-graphql/async-graphql/branch/master/graph/badge.svg" />
//! <!-- Crates version --> //! <!-- Crates version -->
//! <a href="https://crates.io/crates/async-graphql"> //! <a href="https://crates.io/crates/async-graphql">
//! <img src="https://img.shields.io/crates/v/async-graphql.svg?style=flat-square" //! <img src="https://img.shields.io/crates/v/async-graphql.svg?style=flat-square"
@ -24,7 +24,7 @@
//! //!
//! ## Documentation //! ## Documentation
//! //!
//! * [GitHub repository](https://github.com/sunli829/async-graphql) //! * [GitHub repository](https://github.com/async-graphql/async-graphql)
//! * [Cargo package](https://crates.io/crates/async-graphql) //! * [Cargo package](https://crates.io/crates/async-graphql)
//! * Minimum supported Rust version: 1.42 or later //! * Minimum supported Rust version: 1.42 or later
//! //!

View File

@ -13,7 +13,7 @@ use std::path::PathBuf;
/// ///
/// ///
/// # Example /// # Example
/// *[Full Example](<https://github.com/sunli829/async-graphql-examples/blob/master/models/files/src/lib.rs>)* /// *[Full Example](<https://github.com/async-graphql/examples/blob/master/models/files/src/lib.rs>)*
/// ///
/// ``` /// ```
/// use async_graphql::Upload; /// use async_graphql::Upload;