88 releases (50 stable)

new 2.10.0 Sep 17, 2021
2.9.12 Aug 24, 2021
2.9.9 Jul 20, 2021
2.7.1 Mar 30, 2021
0.5.1 May 18, 2020

#154 in Asynchronous

Download history 4789/week @ 2021-05-31 5620/week @ 2021-06-07 5544/week @ 2021-06-14 5619/week @ 2021-06-21 5936/week @ 2021-06-28 4831/week @ 2021-07-05 5087/week @ 2021-07-12 5260/week @ 2021-07-19 4986/week @ 2021-07-26 6399/week @ 2021-08-02 5257/week @ 2021-08-09 6339/week @ 2021-08-16 7945/week @ 2021-08-23 5814/week @ 2021-08-30 6744/week @ 2021-09-06 7475/week @ 2021-09-13

25,436 downloads per month
Used in 39 crates (8 directly)

MIT/Apache

150KB
4K 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

~2–2.9MB
~63K SLoC