224 releases (stable)

new 2.9.9 Jul 20, 2021
2.9.5 Jun 29, 2021
2.7.2 Mar 31, 2021
2.4.3 Dec 23, 2020
0.6.11 Mar 31, 2020

#474 in Asynchronous

Download history 813/week @ 2021-04-04 1031/week @ 2021-04-11 741/week @ 2021-04-18 762/week @ 2021-04-25 656/week @ 2021-05-02 819/week @ 2021-05-09 1074/week @ 2021-05-16 961/week @ 2021-05-23 802/week @ 2021-05-30 1051/week @ 2021-06-06 1050/week @ 2021-06-13 1048/week @ 2021-06-20 660/week @ 2021-06-27 730/week @ 2021-07-04 573/week @ 2021-07-11 1498/week @ 2021-07-18

3,708 downloads per month
Used in diana-actix-web

MIT/Apache

665KB
18K SLoC

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

Crate features

This crate offers the following features, all of which are not activated by default:

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]

Integrations

License

Licensed under either of

References

Contribute

Welcome to contribute !

Dependencies

~25MB
~572K SLoC