158 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
1.16.10 Jul 17, 2020

#42 in Asynchronous

Download history 1690/week @ 2021-02-21 2195/week @ 2021-02-28 2524/week @ 2021-03-07 2563/week @ 2021-03-14 2930/week @ 2021-03-21 3118/week @ 2021-03-28 3557/week @ 2021-04-04 3166/week @ 2021-04-11 3916/week @ 2021-04-18 3454/week @ 2021-04-25 3890/week @ 2021-05-02 3228/week @ 2021-05-09 4126/week @ 2021-05-16 3488/week @ 2021-05-23 3637/week @ 2021-05-30 4129/week @ 2021-06-06

14,637 downloads per month
Used in 4 crates

MIT/Apache

650KB
17K 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

~20MB
~477K SLoC