253 stable releases

new 2.9.2 Jun 10, 2021
2.8.5 May 11, 2021
2.7.2 Mar 31, 2021
2.4.3 Dec 23, 2020
0.10.8 Mar 10, 2020

#10 in Asynchronous

Download history 2761/week @ 2021-02-24 3207/week @ 2021-03-03 3762/week @ 2021-03-10 3692/week @ 2021-03-17 4244/week @ 2021-03-24 4353/week @ 2021-03-31 5378/week @ 2021-04-07 4542/week @ 2021-04-14 4734/week @ 2021-04-21 5275/week @ 2021-04-28 4502/week @ 2021-05-05 5661/week @ 2021-05-12 4745/week @ 2021-05-19 4513/week @ 2021-05-26 5839/week @ 2021-06-02 4559/week @ 2021-06-09

20,097 downloads per month
Used in 22 crates (20 directly)

MIT/Apache

1MB
25K 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

~9–13MB
~323K SLoC