15 stable releases (6 major)

new 6.2.2 Dec 9, 2025
6.2.1 Nov 28, 2025
6.0.0 Oct 27, 2025
5.0.0 Oct 23, 2025
0.0.1 Sep 1, 2025

#1692 in HTTP server

22 downloads per month
Used in hive-router

MIT license

1.5MB
47K SLoC

Rust 39K SLoC // 0.0% comments GraphQL 9K SLoC // 0.0% comments

Hive-Router's Plan Executor (hive-router-plan-executor)

This crate is a standalone library for performing GraphQL execution for a Federation query plan.

Installation

Add this to your Cargo.toml:

[dependencies]
hive-router-plan-executor = "<...>"

Usage

Start by either producing a plan (using Hive Router query-planner), or by loading it from a file or any other source.

For usage example, please follow the router binary hotpath. The step involved parsing, processing, planning and preparing the incoming operation.

Once all information is collected, you can use it as follows:

use hive_router_plan_executor::execute_query_plan;
use hive_router_plan_executor::execution::plan::QueryPlanExecutionContext;

// Result is a Vec<u8> you can send as final response or make into a Bytes buffer.
let result = execute_query_plan(QueryPlanExecutionContext {
    query_plan: query_plan_payload,
    projection_plan: &normalized_payload.projection_plan,
    variable_values: &variable_payload.variables_map,
    extensions,
    introspection_context: &introspection_context,
    operation_type_name: normalized_payload.root_type_name,
    executors: &subgraph_executor_map,
})
.await;

Dependencies

~32–56MB
~1M SLoC