ページ内ナビ
概要
async-graphqlはRust向けGraphQL server libraryです。static/dynamic schema、async resolver、subscription、file upload、DataLoader、Apollo Federationなどを提供し、Poem・Axum・Actix WebなどのHTTP serverへ接続できます。
特徴と向いている用途
公式資料に基づく紹介・実機未検証 · 内容確認日:
主な特徴
Rust型とmacroからGraphQL Schemaとresolverを定義する
Objectなどのprocedural macroを使ってRustの型・methodをGraphQL objectとfieldへ対応させます。static schemaだけでなくdynamic schemaも提供し、async/awaitでresolverを実装できます。
出典:[2]
subscription・DataLoader・Federationまでserver機能を拡張する
WebSocket subscription、batch query、DataLoader、persisted query、Apollo Federation v2、custom extensionなどをfeatureとして組み合わせられます。Web frameworkとの接続はintegration crateで分離されています。
出典:[2]
向いている用途
GraphQL APIをRust backendへ組み込みたいserviceに向く
Poem、Axum、Actix Web、Warp、Rocketなど既存HTTP stackへGraphQL execution layerを追加したい場合に適します。schema typeとresolver implementationをRust側で一体管理できます。
出典:[2]
導入前の確認
参考にした公式資料
- [1]async-graphql/async-graphql — GitHub repository(2026-10-06)
- [2]async-graphql 7.2.1 — README(2026-10-06)
- [3]async-graphql 7.2.1 — Cargo.toml(2026-10-06)
- [4]async-graphql — current development branch(2026-10-06)
編集部からの補足
SchemaをRust型とprocedural macroで表現し、Poem・Axumなどへintegration crateで接続する構成です。productionではquery depth・complexity・directive数の上限を明示し、公開APIの計算量を無制限にしない設計が重要です。
3ステップで試す
- 1
安定版7.2.1のsourceとexampleを取得する
crates.ioの7.2.1 packageに対応するcommitへ固定し、同時点の公式examples submoduleを取得します。
git clone https://github.com/async-graphql/async-graphql.git && cd async-graphql && git checkout 86a19327ec14e20b702de79b5a761fb735ac2428 && git submodule update --init - 2
libraryをbuildする
stable 7.2.1 sourceをbuildし、Rust toolchainとdependencyが揃っていることを確認します。
cargo build - 3
Axum Star Wars exampleを起動する
公式examples repositoryのAxum integrationを実行し、GraphQL schemaとHTTP server integrationを確認します。
cd examples && cargo run --bin axum-starwars
成長
成長の推移 · 直近30日
3,682 Stars
推移データを蓄積中です。
Built with
カテゴリとタグ
GitHubデータ
GitHubのデータGitHubの詳細データを見る
GitHub Topics
- async-await
- graphql
- hacktoberfest
- rust
- rust-crate
- rust-lang
- server
- Stars
- 3,682
- Forks
- 536
- Watchers
- 28
- Open Issues
- 255
- Contributors
- 254
- 所有者種別
- Organization
- 主要言語
- Rust
- ライセンス
- Apache-2.0
- リポジトリ最終更新
- 2026/04/21
関連情報
関連記事を投稿するこのOSSの使い方や活用事例をMarkdownで投稿できます。管理者が承認した後に公開されます。
あわせて探訪
- ASP.NET Core38,465 Stars
共通タグ 2件 · 共通カテゴリ 3件
cross-platform .NET runtime上でWeb app・HTTP API・mobile backendを構築するmodular web framework
C# - Eclipse Vert.x14,689 Stars
共通タグ 2件 · 共通カテゴリ 3件
event loopとnon-blocking I/OでHTTP/TCPを扱うJVM向けreactive toolkit
Java - Dropwizard8,582 Stars
共通タグ 2件 · 共通カテゴリ 3件
Jetty・Jersey・Jackson・Metricsをまとめてproduction-readyなJava REST serviceを構築する
Java - FastAPI102,814 Stars
共通タグ 2件 · 共通カテゴリ 2件
Pythonの型宣言から入力検証・依存注入・OpenAPIを一体化するAPI framework
Python - Flask74,897 Stars
共通タグ 2件 · 共通カテゴリ 2件
PythonでURLルーティング・request処理・Jinja templateを組み立てる軽量WSGIフレームワーク
Python - Fiber40,204 Stars
共通タグ 2件 · 共通カテゴリ 2件
fasthttp上でExpress風Routing・Binding・MiddlewareをまとめるGo Web Framework
Go
情報の誤りを報告
掲載内容に誤りや古い情報があればお知らせください。