244 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 28, 2020
0.10.8 Mar 10, 2020

#8 in #graphql

Download history 4891/week @ 2021-04-05 4789/week @ 2021-04-12 4922/week @ 2021-04-19 4600/week @ 2021-04-26 5044/week @ 2021-05-03 4738/week @ 2021-05-10 5493/week @ 2021-05-17 4804/week @ 2021-05-24 4735/week @ 2021-05-31 5670/week @ 2021-06-07 5467/week @ 2021-06-14 5545/week @ 2021-06-21 5803/week @ 2021-06-28 4627/week @ 2021-07-05 4904/week @ 2021-07-12 5639/week @ 2021-07-19

21,820 downloads per month
Used in 28 crates (via async-graphql)

MIT/Apache

265KB
6K 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

~3.5MB
~81K SLoC