Skip to content

Introduction

NecrassRs is an SDL-first GraphQL server framework for Rust. Your schema defines the public API. Cargo generates Rust contracts and synchronizes resolver declarations. You implement the resolver bodies.

Follow the maintained quick start in the repository, or explore the Axum example and Actix Web example.

  1. Define your API in schema/**/*.graphql.
  2. Run cargo build to generate contracts and synchronize src/resolvers.rs.
  3. Implement new resolver bodies and run the server.

Retained fields keep their existing method bodies. New fields receive unimplemented!() stubs, which you must implement before calling them. Deleting or renaming a field removes its old resolver method, including its body. See source synchronization for the full ownership contract.

These pages follow the source checkout from which this site is built. Dates and implementation status in the migrated documents are retained; they do not describe a versioned release. Rust API references are available locally with cargo doc --workspace --no-deps --locked --open.