A GraphQL server library implemented in Rust

Crates.io version Download docs.rs docs Unsafe Rust forbidden

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

Examples

All examples are in the sub-repository, located in the examples directory.

Run an example:

shell git submodule update # update the examples repo cd examples && cargo run --bin [name]

Benchmark

Ensure that there is no CPU-heavy process in background!

```shell script cd benchmark

measure all with system malloc

cargo bench

measure only chat run

cargo bench -- "chat run"

measure all with jemalloc

cargo bench --features jemalloc

measure only simple run with jemalloc

cargo bench --features jemalloc -- "simple run" ```

Now HTML report is available at benchmark/target/criterion/report

Read more here: https://bheisler.github.io/criterion.rs/book/criterion_rs.html

Integrations

License

Licensed under either of

References

Contribute

Welcome to contribute !