29 stable releases

new 2.10.5 Oct 23, 2021
2.10.2 Sep 29, 2021
2.9.9 Jul 20, 2021
2.6.5 Mar 24, 2021
2.0.5 Oct 19, 2020

#124 in Asynchronous

Download history 4673/week @ 2021-07-03 5044/week @ 2021-07-10 5130/week @ 2021-07-17 4749/week @ 2021-07-24 5499/week @ 2021-07-31 5819/week @ 2021-08-07 6092/week @ 2021-08-14 8027/week @ 2021-08-21 5639/week @ 2021-08-28 6279/week @ 2021-09-04 8056/week @ 2021-09-11 8940/week @ 2021-09-18 8367/week @ 2021-09-25 8715/week @ 2021-10-02 7690/week @ 2021-10-09 8179/week @ 2021-10-16

30,618 downloads per month
Used in 39 crates (7 directly)

MIT/Apache

67KB
2K 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

~1–1.8MB
~40K SLoC