172 stable releases

new 2.10.0 Sep 17, 2021
2.9.12 Aug 24, 2021
2.9.9 Jul 20, 2021
2.7.2 Mar 31, 2021
1.16.10 Jul 17, 2020

#42 in Asynchronous

Download history 3318/week @ 2021-05-28 4352/week @ 2021-06-04 4021/week @ 2021-06-11 4064/week @ 2021-06-18 4678/week @ 2021-06-25 3368/week @ 2021-07-02 3407/week @ 2021-07-09 4739/week @ 2021-07-16 3269/week @ 2021-07-23 4189/week @ 2021-07-30 3419/week @ 2021-08-06 4333/week @ 2021-08-13 5607/week @ 2021-08-20 4309/week @ 2021-08-27 4696/week @ 2021-09-03 4440/week @ 2021-09-10

18,163 downloads per month
Used in 4 crates

MIT/Apache

675KB
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:

Apollo Studio

Apollo Studio is a cloud platform that helps you build, monitor, validate, and secure your organization's data graph. An existing extension is available for this crate here

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

Blog Posts

License

Licensed under either of

References

Contribute

Welcome to contribute !

Dependencies

~20MB
~479K SLoC