223 stable releases

Uses new Rust 2021

4.0.4 Jun 25, 2022
4.0.1 May 24, 2022
3.0.38 Apr 9, 2022
3.0.37 Mar 30, 2022
1.16.10 Jul 17, 2020

#60 in Asynchronous

Download history 6112/week @ 2022-03-15 6637/week @ 2022-03-22 6074/week @ 2022-03-29 7380/week @ 2022-04-05 4310/week @ 2022-04-12 6084/week @ 2022-04-19 6598/week @ 2022-04-26 7956/week @ 2022-05-03 7992/week @ 2022-05-10 4458/week @ 2022-05-17 5035/week @ 2022-05-24 7053/week @ 2022-05-31 6463/week @ 2022-06-07 4186/week @ 2022-06-14 4529/week @ 2022-06-21 4359/week @ 2022-06-28

20,936 downloads per month
Used in fewer than 6 crates

MIT/Apache

735KB
20K 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
  • sudograph

Blog Posts

License

Licensed under either of

References

Contribute

Welcome to contribute !

Dependencies

~16–24MB
~538K SLoC