Go to file
Koxiaet 664f077be3 Update dependencies and make examples submodule 2020-10-15 20:48:06 +01:00
.github Fix release workflow 2020-10-15 17:47:47 +08:00
benchmark Update dependencies and make examples submodule 2020-10-15 20:48:06 +01:00
derive Update dependencies and make examples submodule 2020-10-15 20:48:06 +01:00
docs Fix can no longer derive Union for union types with lifetimes. #311 2020-10-15 08:53:17 +08:00
examples@cb33608473 Update dependencies and make examples submodule 2020-10-15 20:48:06 +01:00
integrations Update dependencies and make examples submodule 2020-10-15 20:48:06 +01:00
parser Release 2.0.3 2020-10-15 08:56:49 +08:00
src Require POST for GraphQL requests 2020-10-15 18:42:09 +01:00
tests Fix can no longer derive Union for union types with lifetimes. #311 2020-10-15 08:53:17 +08:00
value Release 2.0.3 2020-10-15 08:56:49 +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 Rustfmt and write ARCHITECTURE.md 2020-09-23 20:23:15 +01:00
Cargo.toml Update dependencies and make examples submodule 2020-10-15 20:48:06 +01: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 Fix can no longer derive Union for union types with lifetimes. #311 2020-10-15 08:53:17 +08: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

https://github.com/async-graphql/examples

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 !