Go to file
Sunli 03f6ed4ba2 Rename InputValueType to InputType and OutputValueType to OutputType. 2020-12-11 15:37:50 +08:00
.github Update release.yml 2020-10-17 08:19:26 +08:00
benchmark Release 2.0.4 2020-10-17 08:01:10 +08:00
derive Rename InputValueType to InputType and OutputValueType to OutputType. 2020-12-11 15:37:50 +08:00
docs Add Rocket integration to README and book 2020-10-26 08:35:31 +01:00
examples@b51536fb0a Add `WSSubscription::start_with_initializer` and update examples. 2020-12-04 12:35:35 +08:00
integrations Disable HTTP GET test for tide. 2020-12-05 09:49:50 +08:00
parser Release 2.1.2 2020-11-14 08:43:25 +08:00
src Rename InputValueType to InputType and OutputValueType to OutputType. 2020-12-11 15:37:50 +08:00
tests Add tests for `graphql-ws`. 2020-12-04 16:44:48 +08:00
value Release 2.0.5 2020-10-19 10:01:26 +08:00
.gitignore Moved benchmark from side repo 2020-06-01 21:05:37 +05:00
.gitmodules Update dependencies and make examples submodule 2020-10-15 20:48:06 +01:00
.rustfmt.toml Rustfmt 2020-06-06 15:48:21 +08:00
ARCHITECTURE.md Rename InputValueType to InputType and OutputValueType to OutputType. 2020-12-11 15:37:50 +08:00
Cargo.toml Release 2.1.7 2020-12-05 08:44:39 +08:00
LICENSE-APACHE add some files 2020-03-01 21:56:14 +08:00
LICENSE-MIT add some files 2020-03-01 21:56:14 +08:00
README.md Add "Unsafe Forbidden" Badge to the README 2020-11-05 13:50:43 -06:00
feature-comparison.md Update docs. 2020-09-30 11:55:56 +08:00

README.md

A GraphQL server library implemented in Rust

Async-graphql is a high-performance server-side library that supports all GraphQL specifications.

Safety

This crate uses #![forbid(unsafe_code)] to ensure everything is implemented in 100% Safe Rust.

Features

  • Fully supports async/await
  • Type safety
  • Rustfmt friendly (Procedural Macro)
  • Custom scalars
  • Minimal overhead
  • Easy integration (actix_web, tide, warp, rocket ...)
  • Upload files (Multipart request)
  • Subscriptions (WebSocket transport)
  • Custom extensions
  • Apollo Tracing extension
  • Limit query complexity/depth
  • Error Extensions
  • Apollo Federation
  • Batch Queries
  • Apollo Persisted Queries

Examples

All examples are in the sub-repository, located in the examples directory.

Run an example:

git submodule update # update the examples repo
cd examples && cargo run --bin [name]

Benchmark

Ensure that there is no CPU-heavy process in background!

cd benchmark

#measure all with system malloc
cargo bench

#measure only chat run
cargo bench -- "chat run"

#measure all with jemalloc
cargo bench --features jemalloc

#measure only simple run with jemalloc
cargo bench --features jemalloc -- "simple run"

Now HTML report is available at benchmark/target/criterion/report

Read more here: https://bheisler.github.io/criterion.rs/book/criterion_rs.html

Integrations

License

Licensed under either of

References

Contribute

Welcome to contribute !