Registry / web-framework / juniper

juniper

JSON →
library0.17.1rscratesunverified

GraphQL server library for Rust, enabling schema definition and query execution.

# Cargo.toml [dependencies] juniper = "0.17.1"
INSTALL
IMPORT
SIG · JUNIPER
J
juniper
web-frameworkrustv0.17.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.

GraphQLObject
use juniper::GraphQLObject;

Defines a GraphQL object type using Juniper's derive macro.

use juniper::GraphQLObject; #[derive(GraphQLObject)] struct User { name: String, age: i32, } fn main() { let user = User { name: "Alice".into(), age: 30 }; println!("{:?}", user); }
Debug
Known issues
gotchaRequires async runtime (e.g., Tokio) for execution; not compatible with sync-only contexts.
fix
Add tokio or async-std as a dependency and use an async runtime.
affects: >=0.15.0
Upgrade
Version history
0.17.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
juniper — cargo add juniper · libregistry