Skip to main content

Crate nextrs

Crate nextrs 

Source

Re-exports§

pub use prefetch::Eagerness;
pub use prefetch::PrefetchConfig;
pub use prefetch::SpeculationMode;
pub use params::Params;
pub use params::search_params;
pub use seed::QuerySeed;
pub use seed::SeedEntry;
pub use seed::seed_key;
pub use axum;
pub use http;
pub use utoipa;
pub use serde_json;

Modules§

conventions
discovery
health
Unified start-temperature telemetry: GET /__nx/health.
openapi
Serving the OpenAPI document that the build-time codegen produces.
params
Matched route params for React pages (the [seg] directory convention).
prefetch
Speculative navigation — automatic prefetch/prerender via the browser’s native Speculation Rules API.
router
seed
Server-side React Query cache seeding (the prefetch.rs convention).

Attribute Macros§

api
#[nextrs::api(...)] — typed API handler with the OpenAPI path derived from the file location. See nextrs_macros::api. Annotate a route.rs method as a typed API endpoint, deriving the OpenAPI path from the file’s location under app/.