252 releases (stable)

Uses new Rust 2021

new 3.0.7 Nov 23, 2021
2.11.3 Nov 13, 2021
2.9.9 Jul 20, 2021
2.7.2 Mar 31, 2021
0.6.11 Mar 31, 2020

#314 in Asynchronous

Download history 775/week @ 2021-08-09 716/week @ 2021-08-16 681/week @ 2021-08-23 576/week @ 2021-08-30 752/week @ 2021-09-06 1055/week @ 2021-09-13 664/week @ 2021-09-20 991/week @ 2021-09-27 1047/week @ 2021-10-04 998/week @ 2021-10-11 946/week @ 2021-10-18 903/week @ 2021-10-25 570/week @ 2021-11-01 762/week @ 2021-11-08 810/week @ 2021-11-15 773/week @ 2021-11-22

3,499 downloads per month
Used in diana-actix-web

MIT/Apache

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

~22MB
~518K SLoC