151 stable releases

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
1.16.12 Jul 20, 2020

#523 in Asynchronous

Download history 487/week @ 2021-04-04 427/week @ 2021-04-11 436/week @ 2021-04-18 136/week @ 2021-04-25 115/week @ 2021-05-02 315/week @ 2021-05-09 433/week @ 2021-05-16 85/week @ 2021-05-23 192/week @ 2021-05-30 474/week @ 2021-06-06 247/week @ 2021-06-13 197/week @ 2021-06-20 224/week @ 2021-06-27 246/week @ 2021-07-04 344/week @ 2021-07-11 1017/week @ 2021-07-18

1,182 downloads per month
Used in 2 crates

MIT/Apache

660KB
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

~19MB
~454K SLoC