Registry / web-framework / async-graphql-axum

async-graphql-axum

JSON →
library7.2.1rscratesunverified

Integration layer for using async-graphql with the Axum web framework.

# Cargo.toml [dependencies] async-graphql-axum = "7.2.1"
INSTALL
IMPORT
SIG · ASYNC-GRAPHQL-AXUM
A
async-graphql-axum
web-frameworkrustv7.2.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GraphQL
use async_graphql_axum::GraphQL;

Sets up a GraphQL endpoint with Axum.

use async_graphql_axum::GraphQL; use axum::Router; fn main() { let app = Router::new().route("/graphql", axum::routing::post(GraphQL::new(schema))); }
Debug
Known issues
gotchaRequires the axum feature of async-graphql to be enabled.
fix
Add async-graphql = { features = ["axum"] } to Cargo.toml.
affects: >=0.0.0
Upgrade
Version history
7.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources
async-graphql-axum — cargo add async-graphql-axum · libregistry