202 stable releases

Uses new Rust 2021

new 3.0.21 Jan 11, 2022
3.0.19 Dec 30, 2021
3.0.7 Nov 23, 2021
2.11.3 Nov 13, 2021
1.16.10 Jul 17, 2020

#565 in Asynchronous

Download history 5540/week @ 2021-09-27 6137/week @ 2021-10-04 4667/week @ 2021-10-11 5239/week @ 2021-10-18 5578/week @ 2021-10-25 3698/week @ 2021-11-01 3179/week @ 2021-11-08 4839/week @ 2021-11-15 3493/week @ 2021-11-22 4120/week @ 2021-11-29 4759/week @ 2021-12-06 5605/week @ 2021-12-13 2949/week @ 2021-12-20 2509/week @ 2021-12-27 3838/week @ 2022-01-03 4664/week @ 2022-01-10

14,045 downloads per month
Used in 4 crates

MIT/Apache

695KB
19K 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 (poem, 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

Who's using Async-graphql in production?

Community Showcase

  • rust-actix-graphql-sqlx-postgresql Using GraphQL with Rust and Apollo Federation
  • entity-rs A simplistic framework based on TAO, Facebook's distributed database for Social Graph.
  • vimwiki-server Provides graphql server to inspect and manipulate vimwiki files.
  • Diana Diana is a GraphQL system for Rust that's designed to work as simply as possible out of the box, without sacrificing configuration ability.
  • cindythink

Blog Posts

License

Licensed under either of

References

Contribute

Welcome to contribute !

Dependencies

~19MB
~461K SLoC

a